Hi all,

On my machine, this happens:

        satisfactory:~$ cat /proc/mounts
        /dev/root / ext2 rw 0 0
        /proc /proc proc rw 0 0
        none /dev/pts devpts rw 0 0
        /dev/hda1 /mnt/dosc vfat rw 0 0
        automount(pid216) /misc autofs rw 0 0

Is there any way to find out what /dev/root is?
(My motivation is to check if a partition is mounted)

I don't think checking /etc/fstab for "/" would be a
good solution.  If a user chroot's, to run Parted off
the hard disk (after booting off a floppy), /etc/fstab
wouldn't match.

Any ideas?

Andrew Clausen

Reply via email to