Change directory to block system

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
aus-city
Forum Regular
Forum Regular
Posts: 685
Joined: Thu Oct 26, 2006 11:56 pm

Change directory to block system

Unread post by aus-city »

Help!
I upgraded my server. Did a clean install of plesk 8.1 It all runs fine but in watchdog / discs it complains about /dev/shm

I did a ls -ld /dev/shm and sure enough its a regular directory. However 'mount' shows its mounted just fine. Also shows max size and free space - what gives?
So how can I change it to a device block instead of a directory?
There must be a way...
Thanks David
aus-city
Forum Regular
Forum Regular
Posts: 685
Joined: Thu Oct 26, 2006 11:56 pm

Unread post by aus-city »

Here is more info:

[root@xx dev]# ls -ld /dev/sda1
brw-r----- 1 root disk 8, 1 Dec 12 09:56 /dev/sda1
[root@xx dev]# ls -ld /dev/shm
drwxrwxrwt 2 root root 40 Dec 12 22:38 /dev/shm

[root@xx dev]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 111461768 9474328 99686132 9% /
/dev/sda1 101086 16891 78976 18% /boot
/dev/shm 1029172 0 1029172 0% /dev/shm

vi of /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults,usrquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/sda2 swap swap defaults 0 0


I have searched and can't find out how to change it from directory to Block Special.

It used to be fine as plesk would let me report on /dev/shm

I dont want to have to redo this damn server again!

:(

Only thing remotely related is:
http://www.hostgeekz.com/guides/Securit ... drives.htm

And is this recommended? But as it says no to block device wont it be the same issue all over?
Post Reply