Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
oshoOffline
Post subject: [SOLVED] How to remove/uninstall/disable tmpfs (/tmp issue)?  PostPosted: 08.12.2011, 12:49



Joined: 2010-09-14
Posts: 2

Status: Offline
Hello All.

I have aptosid installation on one my old computer with only 1.5GB RAM:

# free
total used free shared buffers cached
Mem: 1545404 745348 800056 0 31192 456696
-/+ buffers/cache: 257460 1287944
Swap: 2047996 0 2047996
#


My problem is that tmpfs /tmp has only 302MB. And this is not enough and I need much more space (5-10GB).

# df -h
/dev/sda1 20G 2,9G 16G 16% /
tmpfs 5,0M 0 5,0M 0% /lib/init/rw
tmpfs 151M 264K 151M 1% /run
tmpfs 5,0M 0 5,0M 0% /run/lock
tmpfs 302M 100K 302M 1% /tmp
udev 750M 0 750M 0% /dev
tmpfs 302M 0 302M 0% /run/shm
/dev/sda3 163G 1,1G 153G 1% /home
#

# cat /etc/fstab
UUID=5afb6c4a-3957-4cdd-a7f7-32abf3ab05c6 / ext4 defaults,relatime,errors=remount-ro 0 1
UUID=3edb238a-787f-46a1-8ded-6098d682b5b9 none swap sw 0 0
UUID=130a0964-4964-4be2-9ce3-38d9d9e6c701 /home ext4 defaults,relatime,errors=remount-ro,user_xattr 0 2
#

# mount
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,commit=0)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,size=5242880,mode=755,size=5242880,mode=755)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=755,size=10%,mode=755)
tmpfs on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880,mode=1777,size=5242880,mode=1777)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,size=20%,mode=1777,size=20%,mode=1777)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,size=20%,mode=1777,size=20%,mode=1777)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620,gid=5,mode=620)
/dev/sda3 on /home type ext4 (rw,relatime,errors=remount-ro,user_xattr,commit=0)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
#



Could you please help me how to uninstall/remove/disable tmpfs from my system. I would like to mount /tmp directory to HDD filesystem (/). I was googling but I didnt find how to do this. I have read also official docs and there is nothing. Or this is not official documentation for tmpfs?

http://www.kernel.org/doc/Documentation ... /tmpfs.txt
http://www.mjmwired.net/kernel/Document ... mpfs.txt#1


Thanks in advance for any idea.


Last edited by osho on 08.12.2011, 13:33; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: How to remove/uninstall/disable tmpfs (/tmp issue)?  PostPosted: 08.12.2011, 13:13



Joined: 2010-08-25
Posts: 746

Status: Offline
      Code:
# sed -i "s/^\(RAMTMP\=\).*/\1no/" /etc/default/rcS
(handling /tmp/ is still in a state of flux in Debian and this setting might not work for all eternity (in favour of /etc/fstab.d/)).
 
 View user's profile Send private message  
Reply with quote Back to top
oshoOffline
Post subject: RE: How to remove/uninstall/disable tmpfs (/tmp issue)?  PostPosted: 08.12.2011, 13:31



Joined: 2010-09-14
Posts: 2

Status: Offline
It works! Thank you very much for your help. It`s ok now. Smile

# df -h
/dev/sda1 20G 2,9G 16G 16% /
tmpfs 5,0M 0 5,0M 0% /lib/init/rw
tmpfs 151M 264K 151M 1% /run
tmpfs 5,0M 0 5,0M 0% /run/lock
udev 750M 0 750M 0% /dev
tmpfs 302M 0 302M 0% /run/shm
/dev/sda3 163G 1,1G 153G 1% /home
#
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio