Difference between revisions of "Fstab - Use SystemD automount"
Views
Actions
Namespaces
Variants
Tools
no edit summary
imported>Handy (Created page with "=Introduction= I found a combination of systemd options (on the ArchWiki [https://wiki.archlinux.org/index.php/Systemd#Automount] that can be used in the /etc/fstab when moun...") |
imported>Handy |
||
Line 7: | Line 7: | ||
A device called this way via /etc/fstab is mounted the first time data is attempted to be accessed from it. Only on this first mount is there any (minor) noticeable delay, when compared to having the device mounted the "old" way. | A device called this way via /etc/fstab is mounted the first time data is attempted to be accessed from it. Only on this first mount is there any (minor) noticeable delay, when compared to having the device mounted the "old" way. | ||
<br clear="all"/> | |||
==A suitable problem - example== | ==A suitable problem - example== | ||
Line 18: | Line 18: | ||
So then I looked at the following extremely simple & effective solution. (Wish I had of done this one first, as it would have saved me a couple of hours of a loosing battle!) | So then I looked at the following extremely simple & effective solution. (Wish I had of done this one first, as it would have saved me a couple of hours of a loosing battle!) | ||
<br clear="all"/> | |||
==How do you do use it?== | ==How do you do use it?== | ||
Line 33: | Line 33: | ||
After that I unplugged the drive, which had Worker (my file manager of choice) looking for it as I hadn't changed out of the the media-2 directory. When I plugged the cable back in, it took ~10 seconds or so & then Worker automatically re-listed the contents or this very large partition that has well over 2000 directories, each holding multiple files. | After that I unplugged the drive, which had Worker (my file manager of choice) looking for it as I hadn't changed out of the the media-2 directory. When I plugged the cable back in, it took ~10 seconds or so & then Worker automatically re-listed the contents or this very large partition that has well over 2000 directories, each holding multiple files. | ||
<br clear="all"/> | |||
===Speed up your boot=== | ===Speed up your boot=== | ||
Line 42: | Line 42: | ||
This will allow services that do not depend on /home to start while /home is checked by fsck, mounting /home when it is first accessed; the kernel will buffer all file access to /home until it is ready. | This will allow services that do not depend on /home to start while /home is checked by fsck, mounting /home when it is first accessed; the kernel will buffer all file access to /home until it is ready. | ||
<br clear="all"/> | |||
=Support= | =Support= | ||