Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> partitions swap and /dev/shm, is /dev/shm a swap partition?
post Jan 10 2006, 05:34 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 4
Joined: 3-January 06
Member No.: 5,931

Simply; on doing df -mh what is ...
none 503M 0 503M 0% /dev/shm

I know it is tmpfs shared memory but is that the same as a swap partition?
Did the previous admin set this partition up or is it something standard and therefore automatic?
Is it even a partition?

I've got a webserver that was hacked and I'm going to wipe the drive and start again. I've been reading up on partitions ( and comparing the recommendations with the original set up. I know what changes I want to make to other partitions and I know I want a swap partition but I don't know if I can include this space in my partition size calculations.

Thanks for any help.
Go to the top of the page
+Quote Post
post Jan 10 2006, 06:12 AM
Post #2

Its GNU/

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069

Hello there,

read this

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).

Robert B

Robert Becskei
May the source be with us!
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 17th July 2018 - 06:30 PM