LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2014, 09:09 PM   #1
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 811

Rep: Reputation: 264Reputation: 264Reputation: 264
Reducing writes on Lubuntu installed on SSDs using RAMdisks, am I doing it right?


Hi!

I installed Lubuntu on a used netbook that I recently got. I would like to preserve the writes to the SSDs so I can (hopefuly ) get more mileage out of them. I did some Googling on it, and I think I have it set up correctly with all of the temporary directories mounted as RAMdisks by edint /etc/fstab. Is this the proper way to do it? Are there any directories that I'm missing?

Here is my fstab:
Code:
anthony@Anthony-Eee:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#

# <file system> <mount point>	<type>  <options>       <dump>  <pass>

# / was on /dev/sda1 during installation
UUID=d5d56d98-2343-48e5-8122-cddeb0b62c97 /               ext2    errors=remount-ro 0       1

# /home was on /dev/sdb2 during installation
UUID=d1a6abc4-aa5d-46e6-83d0-c2878fbf13bd /home           ext2    defaults        0       2

# /usr was on /dev/sdb1 during installation
UUID=c3923134-ccc4-448c-9cd5-6174347c58b9 /usr            ext2    defaults        0       2


#I added this
#It makes a ramdrive for temporary dirs
tmpfs		/tmp		tmpfs	rw,size=128M	0	0
tmpfs		/var/spool	tmpfs	rw,size=128M	0	0
tmpfs		/var/tmp	tmpfs	rw,size=128M	0	0
tmpfs		/var/log	tmpfs	rw,size=128M	0	0
tmpfs		/home/anthony/temp tmpfs	rw,size=512M	0	0
Thanks!
 
Old 03-18-2014, 08:35 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,216

Rep: Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696
/var/lock and /var/run are missing
/var/log should not be moved to tmpfs, you will loose all your logfiles during a reboot, that may cause problems.

Last edited by pan64; 03-18-2014 at 08:37 AM. Reason: additional tip
 
1 members found this post helpful.
Old 03-18-2014, 02:36 PM   #3
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 811

Original Poster
Rep: Reputation: 264Reputation: 264Reputation: 264
Thanks for the response!

I'll add those two, then remove /var/log

Thanks again!
 
Old 03-19-2014, 01:13 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,216

Rep: Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696Reputation: 2696
glad to help you.
If you really want to say thanks just press YES.
http://www.howtogeek.com/62761/how-t...r-performance/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installed Mate on Lubuntu; would like to disable everything else Changes Linux - General 2 11-24-2013 10:30 AM
[SOLVED] Lubuntu 12 no video dvd libdvdcss-1.2.11 installed zeelog Ubuntu 3 11-02-2012 08:44 AM
[SOLVED] Installed Lubuntu 12.04, not showing in boot menu cantab Ubuntu 1 03-10-2012 11:47 PM
Reducing writes to SSD: mounting /var (and others) on RAM disks (tmpfs). sysfce2 Slackware 7 08-26-2011 02:00 AM
Wireless card not installed in Lubuntu even after windows driver Arella71 Linux - Hardware 4 08-15-2010 01:53 AM


All times are GMT -5. The time now is 04:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration