df: where is the root fs?

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.

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

Disk /dev/sdb: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0001771e

Device Boot Start End Blocks Id System /dev/sdb1 * 1 973 7815591 83 Linux /dev/sdb2 974 1216 1951897+ 83 Linux /dev/sdb3 1217 2919 13679347+ 83 Linux /dev/sdb4 2920 9729 54701325 5 Extended /dev/sdb5 2920 3892 7815591 83 Linux /dev/sdb6 3893 4865 7815591 83 Linux /dev/sdb7 4866 9729 39070048+ 83 Linux

Disk /dev/sdc: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0007c873

Device Boot Start End Blocks Id System /dev/sdc1 1 973 7815591 83 Linux /dev/sdc2 974 1946 7815622+ 83 Linux /dev/sdc3 1947 2919 7815622+ 83 Linux /dev/sdc4 2920 9729 54701325 5 Extended /dev/sdc5 * 2920 3892 7815591 83 Linux /dev/sdc6 3893 4865 7815591 83 Linux /dev/sdc7 4866 9729 39070048+ 83 Linux

So here it appears that root is sda6!

What other way is there other than df to find where the root fs is mounted?

Hugo

Leave a comment

1 Comments.

  1. Mike Bird wrote:

    But that does not have the device:

    rootfs / rootfs rw 0 0 none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 none /proc proc rw,nosuid,nodev,noexec,relatime 0 0 udev /dev tmpfs rw,relatime,size=10240k,mode=755 0 0 /dev/sda6 / ext2 rw,relatime,errors=remount-ro 0 0 tmpfs /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0 usbfs /proc/bus/usb usbfs rw,nosuid,nodev,noexec,relatime 0 0 tmpfs /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0 devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0 /dev/sdc7 /sda7 ext2 rw,relatime,errors=continue 0 0

    Hugo

Leave a Reply