LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-11-2003, 12:54 PM   #1
kbeaver
Member
 
Registered: Jul 2003
Location: Lakewood, CO
Distribution: SuSE 8.2
Posts: 41

Rep: Reputation: 15
Mounted Devices


Quick questions:

How can I tell which devices are mounted?

How can I see the partitions of my hdd

Thanks
 
Old 07-11-2003, 01:04 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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)
 
Old 07-11-2003, 01:29 PM   #3
kbeaver
Member
 
Registered: Jul 2003
Location: Lakewood, CO
Distribution: SuSE 8.2
Posts: 41

Original Poster
Rep: Reputation: 15
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
 
Old 07-11-2003, 01:44 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mow many devices can be mounted d4d4n9 Mandriva 0 12-29-2004 01:35 AM
Trouble with mounted devices heatus Fedora 0 08-10-2004 01:19 AM
Mounted Devices On Desktop snt Mandriva 4 05-21-2004 10:52 AM
mounted devices/ filesystems ergo_sum Linux - Newbie 4 11-01-2003 05:43 AM
Mounted Devices natethebate Linux - General 6 08-29-2000 12:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration