Andrew Clausen writes:
> 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.

Set CONFIG_DEVFS_FS=y. With devfs, /dev/root is a symlink to the real
inode. Make sure you read the documentation.

                                Regards,

                                        Richard....
Permanent: [EMAIL PROTECTED]
Current:   [EMAIL PROTECTED]

Reply via email to