Re: df: where is the root fs?
On Wed, Sep 1, 2010 at 2:45 PM, hugo vanwoerkom <hvw59601@care2.com> wrote:
> Hi,
>
> When I do 'df /' I get:
>
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/hda6 13456580 5923184 6849832 47% /
> tmpfs 253024 0 253024 0% /lib/init/rw
> udev 10240 900 9340 9% /dev
> tmpfs 253024 140 252884 1% /dev/shm
> /dev/sdc7 38456308 14630328 21872480 41% /sda7
>
> but when I do 'tune2fs -l /dev/hda6' I get:
>
> tune2fs 1.41.3 (12-Oct-2008)
> tune2fs: No such file or directory while trying to open /dev/hda6
> Couldn't find valid filesystem superblock.
That's because you have SATA drives according to fdisk below. These
show up as serial devices, which will be "sd[x][#]", with [x] being
your drive according to bios in alphabetical order, and the [#] being
the partition number in order according to your partition table. I do
not know why df is showing them as hda, but I know a few other
utilities don't make this distinction either. You just have to
remember.
> Then when I do: 'fdisk -l' I get:
>
> Disk /dev/sda: 60.0 GB, 60011642880 bytes
> 255 heads, 63 sectors/track, 7296 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0x34fe34fd
>
> Device Boot Start End Blocks Id System
> /dev/sda1 1 383 3076416 12 Compaq diagnostics
> /dev/sda2 * 384 3814 27559507+ c W95 FAT32 (LBA)
> /dev/sda3 3815 7296 27969165 f W95 Ext'd (LBA)
> /dev/sda5 3815 5471 13309821 b W95 FAT32
> /dev/sda6 5472 7173 13671283+ 83 Linux
> /dev/sda7 7174 7296 987966 82 Linux swap / Solaris
>
>[...]
>
> So here it appears that root is sda6!
>
It is. tune2fs -l /dev/sda6 should work fine.
> What other way is there other than df to find where the root fs is mounted?
>
Not sure, but if you just remember you are using sata drives, and they
show as sd[x][#]. Maybe fstab will help?
-Anticept
(if any of my information above is incorrect or misleading, please correct me!)
Reply to: