OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: ulutte on July 31, 2007, 05:00:15 pm

Title: Pdaxii13 : Jff2 Is Not Noatime By Default
Post by: ulutte on July 31, 2007, 05:00:15 pm
Hi,

On the C1000 install, the root filesystem is not mounted with the "noatime" option by default. Since this makes periodic read/write accesses to the filesystem this could yield premature wearing of the NAND.

To avoid this, simply add the lines :

# Remounting root with noatime atribute
mount -o remount,noatime / 2>/dev/null >/dev/null

in "/etc/rc.d/rc.sysinit" just after :

if [ ! -f /etc/rc.d/rc.rofilesys -o ! -x /etc/rc.d/rc.rofilesys ];then  
    action "Mounting filesystem:" mount -o remount -w %root% / 2>/dev/null >/dev
/null
else
    #action "Starting filesystem:" /etc/rc.d/rc.rofilesys
    . /etc/rc.d/rc.rofilesys
fi

Best,
Ulutte