Paleskin
September 8th, 2012, 06:48 PM
I installed ubuntu, as full install into usb flash drive
In order to longer my flash drive lifetime, and to increase performance, these are what I already did :
tune2fs -o journal_data_writeback /dev/sda1
tune2fs -O ^has_journal /dev/sda1
e2fsck -f /dev/sda1
And I verify that the journaling feature is turned off by
debugfs -R features /dev/sda1
And the last step was to put the line data=writeback,noatime,nodiratime in fstab using
gksu gedit /media/sda1/etc/fstab
This is where I got confused, which one is right among these ?
UUID=fd2dba10-a6b3-4e9c-84e7-ec427ea66f6a / ext4 data=writeback,noatime,nodiratime errors=remount-ro 0 1
UUID=fd2dba10-a6b3-4e9c-84e7-ec427ea66f6a / ext4 data=writeback,noatime,nodiratime,errors=remount-ro 0 1
UUID=fd2dba10-a6b3-4e9c-84e7-ec427ea66f6a / ext4 errors=remount-ro,data=writeback,noatime,nodiratime 0 1
Also, the spaces between text sometimes longer, sometimes shorter, is there any differences between longer and shorter ones ? do they affect anything ?
Thanks
In order to longer my flash drive lifetime, and to increase performance, these are what I already did :
tune2fs -o journal_data_writeback /dev/sda1
tune2fs -O ^has_journal /dev/sda1
e2fsck -f /dev/sda1
And I verify that the journaling feature is turned off by
debugfs -R features /dev/sda1
And the last step was to put the line data=writeback,noatime,nodiratime in fstab using
gksu gedit /media/sda1/etc/fstab
This is where I got confused, which one is right among these ?
UUID=fd2dba10-a6b3-4e9c-84e7-ec427ea66f6a / ext4 data=writeback,noatime,nodiratime errors=remount-ro 0 1
UUID=fd2dba10-a6b3-4e9c-84e7-ec427ea66f6a / ext4 data=writeback,noatime,nodiratime,errors=remount-ro 0 1
UUID=fd2dba10-a6b3-4e9c-84e7-ec427ea66f6a / ext4 errors=remount-ro,data=writeback,noatime,nodiratime 0 1
Also, the spaces between text sometimes longer, sometimes shorter, is there any differences between longer and shorter ones ? do they affect anything ?
Thanks