About /proc/mounts
Now I am using Red Hat Enterprise Linux As 2.1.
I mounted some file systems. but "cat /proc/mounts" Result: value of /proc/mounts: /dev/root / ext3 rw 0 0 /proc /proc proc rw 0 0 usbdevfs /proc/bus/usb usbdevfs rw 0 0 none /dev/pts devpts rw 0 0 none /dev/shm tmpfs rw 0 0 /dev/sda /home/mnt01 ext2 rw 0 0 /dev/sdb /home/mnt02 ext2 rw 0 0 /dev/sdc /home/mnt03 ext2 rw 0 0 /dev/sdd /home/mnt04 ext2 rw 0 0 ...... # truncated. How to get all contents from /proc/mounts. Thanks |
Quote:
|
yes, don't show all mounts.
mount information is truncated. |
hmmmmmmmmm
that's odd try cat /etc/mtab that is sort of the same thing that must be a cat problem but it is hard to imagine what it is. you could try reading /proc/mounts or /etc/mtab programmatically with getmntent() lets see Code:
#include <mntent.h> |
All times are GMT -5. The time now is 05:03 PM. |