View previous topic :: View next topic |
Author |
Message |
irony Tux's lil' helper
Joined: 10 Jul 2002 Posts: 129 Location: CT
|
Posted: Wed Apr 09, 2003 1:57 am Post subject: same number of blocks != same number of gb? |
|
|
Code: | orpheus root # fdisk -l /dev/sdc
Disk /dev/sdc: 73.4 GB, 73443143680 bytes
255 heads, 63 sectors/track, 8928 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 17 136521 83 Linux
/dev/sdc2 18 1842 14659312+ 83 Linux
/dev/sdc3 1843 3667 14659312+ 83 Linux
/dev/sdc4 3668 8928 42258982+ 5 Extended
/dev/sdc5 3668 4033 2939863+ 83 Linux
/dev/sdc6 4034 4399 2939863+ 83 Linux
/dev/sdc7 4400 4431 257008+ 82 Linux swap
/dev/sdc8 4432 4463 257008+ 82 Linux swap
/dev/sdc9 4464 4495 257008+ 82 Linux swap
/dev/sdc10 4496 4527 257008+ 82 Linux swap
/dev/sdc11 4528 8928 35351001 83 Linux
orpheus root # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdc2 8.2G 2.1G 5.7G 27% /
tmpfs 2.0M 16K 2.0M 1% /mnt/.init.d
/dev/sdc3 14G 1.1G 13G 8% /opt
/dev/sdc5 2.8G 33M 2.6G 2% /tmp
/dev/sdc6 2.8G 92M 2.6G 4% /var
/dev/sdc11 34G 6.5G 26G 21% /home
orpheus root # |
sdc2 and sdc3 should be the same size, and according to fdisk, they are. Why does df show them as different sizes? _________________ "and if rain brings winds of change, let it rain on us forever..." |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Thu Apr 10, 2003 2:08 am Post subject: |
|
|
Did you maybe format sdc2 when it was a smaller partition, and then forget to reformat it when you increased the partition size? |
|
Back to top |
|
|
irony Tux's lil' helper
Joined: 10 Jul 2002 Posts: 129 Location: CT
|
Posted: Thu Apr 10, 2003 3:38 am Post subject: |
|
|
Nope...I formatted everything at the same time, right after I partitioned it, before I mounted it for the first time. The drive was new, so it wasn't like an old partition got mounted by mistake.
I backed up the drive, re-partitioned and reformatted, and the problem happened in exactly the same way. _________________ "and if rain brings winds of change, let it rain on us forever..." |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Thu Apr 10, 2003 12:54 pm Post subject: |
|
|
That's really strange... I don't know what to tell you. Does it do the same thing with different filesystems? |
|
Back to top |
|
|
irony Tux's lil' helper
Joined: 10 Jul 2002 Posts: 129 Location: CT
|
Posted: Thu Apr 10, 2003 1:31 pm Post subject: |
|
|
Don't know...I've tried it with ext3 and ext2. When I format, the two sets of format messages are the same, i.e., same number of superblocks, and so on. _________________ "and if rain brings winds of change, let it rain on us forever..." |
|
Back to top |
|
|
irony Tux's lil' helper
Joined: 10 Jul 2002 Posts: 129 Location: CT
|
Posted: Sat Apr 26, 2003 1:51 am Post subject: |
|
|
Figured it out, I think. It was somehow still using the partition on a different drive as home, but somehow using two different fstab files, depending on what stage of the boot it was in. I found this out when I formatted the other drive and everything borked. _________________ "and if rain brings winds of change, let it rain on us forever..." |
|
Back to top |
|
|
|