Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Apple PPC Users
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Apple PPC Users
The place to discuss your Ubuntu Macintosh/Apple/PPC questions (including the Ibook, PowerBook).

 
Thread Tools Display Modes
Old February 9th, 2008   #1
stream303
Chocolate-Covered Ubuntu Beans
 
Join Date: Jan 2006
My beans are hidden!
Saving hard drive with noatime in fstab

I've been manually editing this option to my /etc/fstab for a long time now with no problems on PPC - even though this isn't a ppc-specific option.

I really run it just to save on hard drive writes, especially on my laptop. Adding noatime to fstab isn't a new idea, but just wanted to point out that I've been running it without any problems for those who may come across it. There are many articles about it, I started with this one:

http://kerneltrap.org/node/14148

UPDATE: Hardy now uses a newer version which only performs this function on a weekly basis with relatime, but not sure if this is available for pre-hardy installs.


Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/sda3
UUID=a5f25c82-3439-433e-9f11-4cfa49e770c8 /               ext3    defaults,errors=remount-ro,noatime  0       1
# /dev/sda4
UUID=f4d40c0a-c0a7-4857-a131-b81f1475f7cc none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto,exec 0       0
(Scroll right to see the ,noatime option)

Note that I did not change any default write-caching options for any sort of speed tweak - this was just to save a bit of head movement.

Unless you need forensic-type security of timestamps written when each file was read (!), this could speed up slow drives a little and save some wear and tear.
__________________
20" G5 iMac - AMD64 HP desktop
http://www.ppclinux.info/

Last edited by stream303; June 11th, 2008 at 01:20 AM.. Reason: remove nodiratime
stream303 is offline   Reply With Quote
Old April 13th, 2008   #2
stream303
Chocolate-Covered Ubuntu Beans
 
Join Date: Jan 2006
My beans are hidden!
Re: Saving hard drive with noatime in fstab

Hardy-Beta update:

While I liked to manually insert the noatime parameter into my /etc/fstab in the past, it caused problems only for the package statistics "popularity contest" if you decide to participate in that. (in your sources preferences)

Today, I took a look at my /etc/fstab in Hardy-Beta, and find that relatime has been used by default.

https://bugs.launchpad.net/ubuntu/+s...ux/+bug/199427

Interesting!
__________________
20" G5 iMac - AMD64 HP desktop
http://www.ppclinux.info/
stream303 is offline   Reply With Quote
Old April 13th, 2008   #3
slacka-vt
A Carafe of Ubuntu
 
Join Date: Feb 2008
Beans: 75
Ubuntu Jaunty Jackalope (testing)
Re: Saving hard drive with noatime in fstab

looks like you're rela-(head-of-your)-time !! Budda-Boom-Cha *crowd claps*

~s
slacka-vt is offline   Reply With Quote
Old May 27th, 2008   #4
Scientia
Just Give Me the Beans!
 
Scientia's Avatar
 
Join Date: May 2008
Beans: 56
Re: Saving hard drive with noatime in fstab

How exactly do you change the system to use noatime?
Sorry, but i'm floundering around in the Linux environment.
Scientia is offline   Reply With Quote
Old June 10th, 2008   #5
stream303
Chocolate-Covered Ubuntu Beans
 
Join Date: Jan 2006
My beans are hidden!
Re: Saving hard drive with noatime in fstab

Just use an editor, say nano:

Code:
sudo nano -w /etc/fstab
Ctrl-O to write out your changes, and Ctrl-X to exit nano.

Note the comma preceding noatime. Be careful if you are new to editing system files. In fact, back it up first so you can go back in with a rescue shell if you make a big mistake:

Code:
sudo cp /etc/fstab  /etc/fstab.bak
__________________
20" G5 iMac - AMD64 HP desktop
http://www.ppclinux.info/
stream303 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:26 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry