LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 07-06-2013, 05:31 PM   #1
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Rep: Reputation: 30
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!
 
Old 07-06-2013, 07:46 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, ro=readonly, noatime=no access time stamp.

I'm using ext4-fs for my /home/glenn/local/music partition.
 
Old 07-06-2013, 08:05 PM   #3
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by GlennsPref View Post
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?
 
Old 07-06-2013, 09:03 PM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Maybe, ...

Change it after the main write to disk.

man fstab
 
Old 07-08-2013, 07:13 PM   #5
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Original Poster
Rep: Reputation: 30
Thanks for the help.
 
Old 07-10-2013, 09:18 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
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.
 
Old 07-10-2013, 11:47 AM   #7
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by TobiSGD View Post
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.
 
  


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
What are the options "Nosuid" "mode" "size" in /etc/fstab? tuxfiles.org does not help pstein Linux - Newbie 1 11-16-2012 12:58 AM
[SOLVED] "data=writeback" in fstab mounts root partition as "read-only" holister Linux - General 7 11-28-2011 09:47 PM
Skip "Installation Method" and "Select Partition" screens using boot options tclappsdba Linux - Newbie 1 11-26-2010 05:31 AM
Edit "read-only" /etc/fstab from "System Recovery#" (without boot cd?) charlweed Linux - General 1 12-31-2006 05:57 PM
"block device /dev/sda2 is write-protected, mounting read-only" - fstab problem blanks77 Linux - Hardware 1 04-28-2006 06:09 PM


All times are GMT -5. The time now is 08:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration