LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Mounted Devices (https://www.linuxquestions.org/questions/linux-hardware-18/mounted-devices-71896/)

kbeaver 07-11-2003 12:54 PM

Mounted Devices
 
Quick questions:

How can I tell which devices are mounted?

How can I see the partitions of my hdd

Thanks

david_ross 07-11-2003 01:04 PM

What's mounted:
df
(use "df -h" to make sizes read easier)

Partitions:
fdisk -l /dev/hdX
(replace X with the correct letter for your drive)

kbeaver 07-11-2003 01:29 PM

Thanks David, that really help...
One more question...I have a disk/device called shm mounted under /dev that is 251 Mb but completely empty. What is that?

Filesystem Size Used Avail Use% Mounted on
/dev/hda5 8.6G 2.7G 5.5G 33% /
/dev/hda3 99M 14M 80M 15% /boot
none 251M 0 251M 0% /dev/shm <-----This one

david_ross 07-11-2003 01:44 PM

From a google search(explains it better that I could):
Quote:

It's a new thing in 2.4.x. From Documentation/filesystems/tmpfs:

2) glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
POSIX shared memory (shm_open, shm_unlink). Adding the following
line to /etc/fstab should take care of this:

tmpfs /dev/shm tmpfs defaults 0 0

Remember to create the directory that you intend to mount tmpfs on
if necessary (/dev/shm is automagically created if you use devfs).

This mount is _not_ needed for SYSV shared memory. The internal
mount is used for that. (In the 2.3 kernel versions it was
necessary to mount the predecessor of tmpfs (shm fs) to use SYSV
shared memory)

Red Hat adds the appropriate fstab entry for you (although they use
"none" for the first field, which I think is a bit more correct).


All times are GMT -5. The time now is 06:15 PM.