Solved

shm filesystem

Posted on 2000-05-12
7
746 Views
Last Modified: 2013-12-15
Can someone tell me what I need to do to mount the shm filesystem at start up?   Certain programs require a shared memory segment at startup(so I'm told)and consequently won't run.    From the startup log the shm filesystem isn't being mounted.  
0
Comment
Question by:cliffhanger121599
  • 3
  • 3
7 Comments
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
"shm filesystem"? I've never heard of such a beast. However the SysV IPC facility does provide for shared memory regions and the shm*() funtions that manipulate it. The functionality must be enabled in the kernel. I believe that it's typically enabled in distributed kernels, but if you've built a custom kernel you might have it disabled.

0
 

Author Comment

by:cliffhanger121599
Comment Utility
Thanks.  I have the sysv IPC facility enabled in the kernel and then I thought my problem lay here with this piece of text from the kernel doc.

  Shared memory is now implemented using a new (minimal) virtual file
  system, which you need to mount before programs can use shared memory.
  To do this automatically at system startup just add the following line
  to your /etc/fstab:

  none      /var/shm      shm      defaults      0 0

When I added this to fsab I got the message at startup that the file does not exist.   Can you help me further?   I do have a file called shm, but it contains nothing!
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Can you give me more of a reference as to where you found that? I've searched the 2.2.12 & 2.2.14 kernel documention and don't see anything like that. Also what program(s) are you trying to use that's complaining?
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 3

Accepted Solution

by:
jyu_88 earned 50 total points
Comment Utility
you must have the new kernel which now treats shared memory as seperate file system. Your solution is right, just add that line to the /etc/fstab. However, since the mount point /var/shm is not there ( thus the complaint about the fiel doesot exist), you need to make sure the mount point, i.e., /var/shm, exists before attempt to mount it. Mount point will be a directory, do the following as root:
1) mkdir /var/shm
2) chmod 755 /var/shm
3) mount /var/shm
It will work from that point on.

been there done that, with 2.3.99pre5 kernel:-)
0
 

Author Comment

by:cliffhanger121599
Comment Utility
Thanks.  Your right, I'm running 2.3.99 pre3(and trying to run Midi Player, Hdparm etc.) and apart from this problem it has been fine.    When i read jyu 88's answer I thought , that's it  - but now I find that the 'chmon' command is not recognised on my system. i.e. it doesn't exist.    Where does this come from?   Incidentally, I do have a shm file at /proc/sysvipc, is this relevent?
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
I think the command you want is chmod, not chmon, and it's found in /bin.
0
 

Author Comment

by:cliffhanger121599
Comment Utility
Many thanks to jlevie for pointing out my error.    Full marks to jyu 88 though for excellent answer.   One last thing, what does the command 'chmod 755 /var/shm' do(I've just looked at the man file and it's as clear as mud!).
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now