Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get disk partitions path

Status
Not open for further replies.

ladmoni

Programmer
Aug 12, 2003
11
0
0
IL
Hi,
I need to know where can I read mount table (as /etc/mnttab in solaris) on linux?
Thanks Lital
 
/etc/fstab shows the partitions that are mounted at boot

Another way of querying partitions is to issue a df command...
Code:
# df -a
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdb2             12096756   8790924   2691348  77% /
none                         0         0         0   -  /proc
usbdevfs                     0         0         0   -  /proc/bus/usb
/dev/hdb1               101089     15198     80672  16% /boot
none                         0         0         0   -  /dev/pts
/dev/hdb5              4142800   1485692   2446660  38% /home
none                    111496         0    111496   0% /dev/shm

HTH

:)
 
Code:
cat /proc/mounts
will display all currently mounted filesystems.

//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top