| Linux - Kernel This forum is for all discussion relating to the Linux kernel. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-13-2012, 03:14 PM
|
#1
|
|
Member
Registered: Dec 2008
Distribution: slackware
Posts: 50
Rep:
|
tmpfs not being used?
One of my partitons is running out of space, I can't resize it right now, so I'm trying to mount one of the temp file directories on tmpfs.
Code:
/etc/fstab
...
/var/tmp/kdecache-user tmpfs tmpfs nodev,nosuid,size=512M 0 0
Reboot, and...
Code:
mount:
...
/var/tmp/kdecache-user on /tmpfs type tmpfs (rw,nodev,nosuid,size=512M)
Code:
df -h
...
Filesystem Size Used Avail Mounted on
/var/tmp/kdecache-user 512M 0 512M /tmpfs
ls shows that there are files in /var/tmp/kdecache-user, so why isn't this working?
|
|
|
|
05-13-2012, 03:19 PM
|
#2
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,160
|
To mount a directory to RAM should work like you want, but you have mixed up the order of the statements in your fstab, it should be
Code:
tmpfs /var/tmp/kdecache-user tmpfs nodev,nosuid,size=512M 0 0
|
|
|
|
05-13-2012, 06:33 PM
|
#3
|
|
Member
Registered: Dec 2008
Distribution: slackware
Posts: 50
Original Poster
Rep:
|
D'oh!
Ok, I fixed that part but it still doesn't work. I added the uid, gid, and mode options to the fstab entry, and set the permissions on the mount point, but KDE is just making another folder instead! I tried putting the mount point in /mnt and linking to it from /var/tmp, but I have the same issue. Any ideas as to how to trick KDE into using the tmpfs?
|
|
|
|
05-15-2012, 07:51 PM
|
#4
|
|
Member
Registered: Dec 2008
Distribution: slackware
Posts: 50
Original Poster
Rep:
|
I couldn't get just /var/tmp/kdecache into tmpfs, so I mounted on /var/tmp instead. Took off the uid, gid, and mode option from the mount entry, too.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:07 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|