-ray <ray@ops.selu.edu> writes:
You are indeed correct. I think "mount" is your best bet for
an authoritative answer on an unix-like OS.
$ cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/hda1 /boot ext3 rw 0 0
none /proc/bus/usb usbdevfs rw 0 0
$ cat /etc/mtab
/dev/hda2 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hda1 /boot ext3 rw 0 0
none /proc/bus/usb usbdevfs rw 0 0
$ mount
/dev/hda2 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /boot type ext3 (rw)
none on /proc/bus/usb type usbdevfs (rw)
attitude:/home/scotth/mp3 on /home/scotth/mp3 type nfs (rw,addr=192.168.2.4)
> On Tue, 25 Feb 2003, Scott Harney wrote:
>
>> mtab is autogenerated, by the way.
>>
>> You can also cat /proc/mounts though this would be Linux
>> specific. And you'll note it looks just like /etc/mtab.
>
> /etc/mtab contains a little more info than /proc/mounts (like mount
> options). From what i understand, mtab is maintained by mount/umount in
> userland, /proc/mounts is the kernel's idea of what is mounted.
>
> I'm pretty sure you can delete /etc/mtab and mount will still show what
> you want, so yea mount with no options is prolly your best bet.
>
> -ray
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Ray DeJean http://www.r-a-y.org
> Systems Engineer Southeastern Louisiana University
> IBM Certified Specialist AIX Administration, AIX Support
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
>
>
> ___________________
> Nolug mailing list
> nolug@nolug.org
-- Scott Harney<scotth@scottharney.com> "...and one script to rule them all." ___________________ Nolug mailing list nolug@nolug.orgReceived on 02/25/03
This archive was generated by hypermail 2.2.0 : 12/19/08 EST