LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   add noatime to /etc/fstab (https://www.linuxquestions.org/questions/linux-general-1/add-noatime-to-etc-fstab-751122/)

theacerguy 08-29-2009 12:48 PM

add noatime to /etc/fstab
 
hi all,
i have 2 pen drive with full distros on one mandriva 2009.1 the other openSUSE 11.2 m4
i want to add noatime tomy fstab because it is flash memory and need to preserve it here is the fstab of my suse one i will get mandriva later
Code:

/dev/disk/by-id/usb-Lexar_USB_Flash_Drive_QS8AYQ1ENRP9ZB9SGLKC-0:0-part1 swap                swap      defaults              0 0
/dev/disk/by-id/usb-Lexar_USB_Flash_Drive_QS8AYQ1ENRP9ZB9SGLKC-0:0-part2 /                    ext4      acl,user_xattr        1 1
proc                /proc                proc      defaults              0 0
sysfs                /sys                sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0

can you post a updated entry for me please
thanks,
theacerguy

{BBI}Nexus{BBI} 08-29-2009 01:00 PM

Quote:

Originally Posted by theacerguy (Post 3662146)
hi all,
i have 2 pen drive with full distros on one mandriva 2009.1 the other openSUSE 11.2 m4
i want to add noatime tomy fstab because it is flash memory and need to preserve it here is the fstab of my suse one i will get mandriva later
Code:

/dev/disk/by-id/usb-Lexar_USB_Flash_Drive_QS8AYQ1ENRP9ZB9SGLKC-0:0-part1 swap                swap      defaults              0 0
/dev/disk/by-id/usb-Lexar_USB_Flash_Drive_QS8AYQ1ENRP9ZB9SGLKC-0:0-part2 /                    ext4      acl,user_xattr,noatime        1 1
proc                /proc                proc      defaults              0 0
sysfs                /sys                sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
devpts              /dev/pts            devpts    mode=0620,gid=5      0 0

can you post a updated entry for me please
thanks,
theacerguy

Amendment added in bold.

theacerguy 08-30-2009 02:14 AM

Quote:

Originally Posted by {BBI}Nexus{BBI} (Post 3662157)
Amendment added in bold.

thanks! here is my mandriva fstab:
Code:

# Entry for /dev/sda1 :
UUID=12ea5e5d-de8c-4b5f-91be-cce9949ab3ce / ext3 defaults 1 1
none /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=55e6f13c-d179-426b-8bb5-0805fc78c1d4 swap swap defaults  0 0


tredegar 08-30-2009 04:47 AM

If you compare your SUSE fstab before and after the modification suggested by {BBI}Nexus{BBI} with the fstab for mandriva, then I think you should be able to work out the answer all by yourself ;)

Wim Sturkenboom 08-30-2009 07:32 AM

Your motivation for noatime is correct, but why do you use a journalling filesystem in that case? Wouldn't it be better to use ext2?

theacerguy 08-31-2009 02:20 AM

true it probably would have been better to use ext2 rather than 3 and 4 (and no swap!) i think i might reinstall


All times are GMT -5. The time now is 11:59 PM.