You are not logged in.
Pages: 1
HI
I've got a problem , i ' d like to automount usd memory or harddrive ( by usb) when the divice is plugin.
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda2 LABEL=system
UUID=ca604eaa-534c-446a-b4bc-41135099830d / ext4 rw,relatime,data=ordered 0 1# /dev/sda3 LABEL=home
UUID=0990abb1-d92a-4f5c-8994-0957c99c9167 /home ext4 rw,relatime,data=ordered 0 2# /dev/sda1
UUID=184a6781-5498-4b2b-a023-70f1c1d2929c none swap defaults 0 0# kingson
UUID=6D3F-D313 /mnt/kingston8gb vfat rw,noauto,uid=1000,gid=100 0 0# /dev/sda1
UUID=8fd2b76e-f363-4c71-8bd4-3ab539d2c11c /mnt/shiru ext4 rw,noauto,data=ordered 0 0
When i set auto for kingson and shiru the result is , when the system is booting i've got message "A job i running " and i must
waint 1 minutes and than i have to login as root because the usb is not connected .
I have tired in many ways , but i can't the proper result .
Generalny i want to automount then i plugin the divice.
Offline
This is not possible by editing the fstab.
Personal website: reboot.li
GitHub: github.com/rebootl
Offline
have you tried the nofail option?
Offline
KDE supports automounting specific devices when they are plugged in, so that's one option if you use KDE. I would not be surprised if systemd supports this, too, but I have not tried.
Offline
This is what tools like udisks and udevil are meant for, so you should use something like that. There really is no pretty way to do this from the fstab.
Offline
Adding a bit more info in WonderWoofy post, you can mount/umount using an udisks front-end, in bash you have bashmount: https://aur.archlinux.org/packages/bashmount/
bashmount is really nice.
Last edited by semeion (2014-12-15 03:22:04)
Offline
Pages: 1