LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   fstab options for "write once, read many times" partition? (http://www.linuxquestions.org/questions/showthread.php?t=4175468723)

tigerflag 07-06-2013 05:31 PM

fstab options for "write once, read many times" partition?
 
Using a Samsung 830 SSD, are there any optimizations to put in fstab for an XFS formatted "write once, read many times" partition?

Basically, I'm transferring a lot of music CDs to a /music partition but won't be doing many writes or deletions once they're on there. This isn't a mission-critical server, just my home PC.

If there's an article or thread about this somewhere, it's eluded me.

Thanks!

GlennsPref 07-06-2013 07:46 PM

Hi, ro=readonly, noatime=no access time stamp.

I'm using ext4-fs for my /home/glenn/local/music partition.

tigerflag 07-06-2013 08:05 PM

Quote:

Originally Posted by GlennsPref (Post 4985413)
Hi, ro=readonly, noatime=no access time stamp.

I'm using ext4-fs for my /home/glenn/local/music partition.

Will ro prevent me from writing/transferring files to that drive?

GlennsPref 07-06-2013 09:03 PM

Maybe, ...

Change it after the main write to disk.

man fstab

tigerflag 07-08-2013 07:13 PM

Thanks for the help.

TobiSGD 07-10-2013 09:18 AM

If you just don't write to the disk you don't need extra mount options, mounting it read only brings no benefit if you don't write to it anyways, but can be annoying if you want to (like adding music in your case).
Just use the noatime option to reduce unnecessary writes and don't forget the discard option to activate the TRIM feature.

tigerflag 07-10-2013 11:47 AM

Quote:

Originally Posted by TobiSGD (Post 4987713)
If you just don't write to the disk you don't need extra mount options, mounting it read only brings no benefit if you don't write to it anyways, but can be annoying if you want to (like adding music in your case).
Just use the noatime option to reduce unnecessary writes and don't forget the discard option to activate the TRIM feature.

Thanks, Tobi. That was my thinking as well, so that's how I did it.


All times are GMT -5. The time now is 05:17 AM.