fdisk then mkfs.reiserfs Now df reports wrong disk size
Mates, I needed to wipe /dev/hdb and start over. What I did was to: umount /data fdisk /dev/hdb (delete old partitions and added new partition to use whole disk) mkfs.reiserfs then rebooted Now df reports: skyline:~ # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda2 19526404 8610112 10916292 45% / tmpfs 127948 0 127948 0% /dev/shm /dev/hdb1 514028 32840 481188 7% /data The weird part is hda and hdb are exactly the same size. Where did I go wrong?? Do I need to fdisk, then reboot, then mkfs.reiserfs?? Does it make a difference?? fstab is as follows: skyline:~ # cat /etc/fstab /dev/hda2 / reiserfs defaults 1 1 /dev/hda1 swap swap pri=42 0 0 #/dev/hdb1 /data reiserfs defaults 1 2 devpts /dev/pts devpts mode=0620,gid=5 0 0 proc /proc proc defaults 0 0 /dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0 -- David C. Rankin, J.D., P.E. RANKIN LAW FIRM, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankin-bertin.com --
Mates,
Here is a little more information. Parted says the OS sees the wrong
disk geometry:
skyline:~ # parted -i /dev/hdb
GNU Parted 1.6.6
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
Inc.
This program is free software, covered by the GNU General Public License.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
Using /dev/hdb
Information: The operating system thinks the geometry on /dev/hdb is
2491/255/63. Therefore, cylinder 1024 ends at 8032.499M.
(parted)
What gives??
(parted) print
Disk geometry for /dev/hdb: 0.000-19541.812 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 19539.997 primary reiserfs type=83
What do I need to do to have the OS see the right geometry??
--
David C. Rankin, J.D., P.E.
RANKIN LAW FIRM, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
(936) 715-9333
(936) 715-9339 fax
www.rankin-bertin.com
--
----- Original Message -----
From: "david rankin"
Mates,
I needed to wipe /dev/hdb and start over. What I did was to:
umount /data fdisk /dev/hdb (delete old partitions and added new partition to use whole disk) mkfs.reiserfs
then rebooted
Now df reports:
skyline:~ # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda2 19526404 8610112 10916292 45% / tmpfs 127948 0 127948 0% /dev/shm /dev/hdb1 514028 32840 481188 7% /data
The weird part is hda and hdb are exactly the same size. Where did I go wrong?? Do I need to fdisk, then reboot, then mkfs.reiserfs?? Does it make a difference?? fstab is as follows:
skyline:~ # cat /etc/fstab /dev/hda2 / reiserfs defaults 1 1 /dev/hda1 swap swap pri=42 0 0 #/dev/hdb1 /data reiserfs defaults 1 2 devpts /dev/pts devpts mode=0620,gid=5 0 0 proc /proc proc defaults 0 0 /dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0
-- David C. Rankin, J.D., P.E. RANKIN LAW FIRM, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankin-bertin.com --
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Mates,
Here is a little more information. Parted says the OS sees the wrong disk geometry:
skyline:~ # parted -i /dev/hdb GNU Parted 1.6.6 Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This program is free software, covered by the GNU General Public License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Using /dev/hdb Information: The operating system thinks the geometry on /dev/hdb is 2491/255/63. Therefore, cylinder 1024 ends at 8032.499M. (parted)
What gives??
(parted) print Disk geometry for /dev/hdb: 0.000-19541.812 megabytes Disk label type: msdos Minor Start End Type Filesystem Flags 1 0.031 19539.997 primary reiserfs type=83
What do I need to do to have the OS see the right geometry??
-- David C. Rankin, J.D., P.E. RANKIN LAW FIRM, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankin-bertin.com -- ----- Original Message ----- From: "david rankin"
To: "Suse Linux" Sent: Wednesday, December 22, 2004 9:01 PM Subject: [SLE] fdisk then mkfs.reiserfs Now df reports wrong disk size Mates,
I needed to wipe /dev/hdb and start over. What I did was to:
umount /data fdisk /dev/hdb (delete old partitions and added new partition to use whole disk) mkfs.reiserfs
then rebooted
Now df reports:
skyline:~ # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda2 19526404 8610112 10916292 45% / tmpfs 127948 0 127948 0% /dev/shm /dev/hdb1 514028 32840 481188 7% /data
The weird part is hda and hdb are exactly the same size. Where did I go wrong?? Do I need to fdisk, then reboot, then mkfs.reiserfs?? Does it make a difference?? fstab is as follows:
skyline:~ # cat /etc/fstab /dev/hda2 / reiserfs defaults 1 1 /dev/hda1 swap swap pri=42 0 0 #/dev/hdb1 /data reiserfs defaults 1 2 devpts /dev/pts devpts mode=0620,gid=5 0 0 proc /proc proc defaults 0 0 /dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0
I take it you need only 1 partition on hdb. fdisk /dev/hdb
david rankin wrote: print the partition table (p) delete each partition (d) set up new primary partition (n) 1 set up the type (t) 83 for linux. write it away (w) mkreiserfs /dev/hdb1 Regards Sid. -- Sid Boyce .... Hamradio G3VBV and keen Flyer =====LINUX ONLY USED HERE=====
On Wednesday 22 December 2004 22:01, david rankin wrote:
Mates,
I needed to wipe /dev/hdb and start over. What I did was to:
umount /data fdisk /dev/hdb (delete old partitions and added new partition to use whole disk) mkfs.reiserfs
then rebooted First, you do not need to reboot. While this is generally the correct way to proceed, you could use QTParted or YaSt to do this with out rebooting. First, unmount the existing /dev/hdb* file systems. Second, run the YaST partitioner, delete all partitions on /dev/hdb Then set up the file system, click on the format flag. Set the mount point. YaST will update your /etc/fstab. Then click on apply. YaST will complete the operation for you,
Once you complete this, do a df on /data and see if things show up
correctly. Please note that QTParted will delete the partitions and
reformat the new one to ReiserFS, but will not edit the /etc/fstab file for
you. There could possibly be a bug in fdisk.
--
Jerry Feldman
participants (3)
-
david rankin
-
Jerry Feldman
-
Sid Boyce