What is the difference between sync
and async
mount options from the end-user point of view? Is file system mounted with one of these options works faster than if mounted with another one? Which option is the default one, if none of them is set?
man mount
says that sync
option may reduce lifetime of flash memory, but it may by obsolete conventional wisdom. Anyway this concerns me a bit, because my primary hard drive, where partitions /
and /home
are placed, is SSD drive.
Ubuntu installer (14.04) have not specified sync
nor async
option for /
partition, but have set async
for /home
by the option defaults
. Here is my /etc/fstab
, I added some additional lines (see comment), but not changed anything in lines made by installer:
# / was on /dev/sda2 during installation
UUID=7e4f7654-3143-4fe7-8ced-445b0dc5b742 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda3 during installation
UUID=d29541fc-adfa-4637-936e-b5b9dbb0ba67 /home ext4 defaults 0 2
# swap was on /dev/sda4 during installation
UUID=f9b53b49-94bc-4d8c-918d-809c9cefe79f none swap sw 0 0
# here goes part written by me:
# /mnt/storage
UUID=4e04381d-8d01-4282-a56f-358ea299326e /mnt/storage ext4 defaults 0 2
# Windows C: /dev/sda1
UUID=2EF64975F6493DF9 /mnt/win_c ntfs auto,umask=0222,ro 0 0
# Windows D: /dev/sdb1
UUID=50C40C08C40BEED2 /mnt/win_d ntfs auto,umask=0222,ro 0 0
So if my /dev/sda
is SSD, should I - for the sake of reducing wear - add async
option for /
and /home
file systems? Should I set sync
or async
option for additional partitions that I defined in my /etc/fstab
? What is recommended approach for SSD and HDD drives?