Change Default Mount Option for Automount in Slackware64 14.1
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Change Default Mount Option for Automount in Slackware64 14.1
Just as the thread title, is there any way of changing the default mount options for external storage device? (like USB pen-drive or portable hard drive)
For example, I have a NTFS-formatted external hard drive - when I plugged it Slackware64 automatically mounts it using NTFS-3G, how do I pass or change the default mount options for the mounting process like adding uid=1000,gid=100,fmask=133,dmask=022 to NTFS-3G?
Or even change the default mount filesystem? Like change ntfs-3g to ufsd (Paragon NTFS driver) and pass the appropriate mount options every time the device automount.
I'm asking about how to pass options in Slackware64 14.1 auto-mounting feature, I kind a lost about how to 'configure' or tune the auto-mount filesystem options not mounting manually using entry in /etc/fstab.
Do you know how to append all of those mount options to the auto-mount daemon / process (udisks, udisks2, or whatever that is) also change the default auto-mount behavior to use ufsd instead of ntfs-3g, so I don't have to mount it manually every time I start my laptop without first plugging in my portable hard drive.
If you add it to /etc/fstab it will control how and where automount mounts it. If you boot up w/o the external drive connected automount/fstab will just give a short error that it can't mount an unknown filesystem. When you do connect it, Bob's ur Uncle.
@willysr, do you really understands what I'm asking here? If you mount a file system in Linux, sometimes you have to pass appropriate mount paramaters to the -o option, for example:
Code:
mount -t ufsd -o uid=1000,gid=100,fmask=133,dmask=022,iocharset=utf8,nohidden /dev/sdb1 /mnt/wd1
My question is how do you enable automount to use all those params in '-o', because automount Slackware64 (KDE 4.12.3) seems to always use a default mount options.
@enorbet, haven't really tried your solution though because I always comment my fstab entry everytime I tinker with this issue. Will give it a try though.
But whan I plug my portable hard drive, the automount in KDE 4.12.3 seems to ignore these entries completely. Here's what I got from KDE automount:
Code:
/dev/sdb1 on /run/media/dwi/WD type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sdb2 on /run/media/dwi/Slack type ext4 (rw,nosuid,nodev,uhelper=udisks2)
@enorbet, haven't really tried your solution though because I always comment my fstab entry everytime I tinker with this issue. Will give it a try though.
Here's an example
Code:
## Note - truncated /etc/fstab ##
## This is just for 2 specific 16G Thumbdrives ##
UUID=5424-CC68 /media/USB-1 auto defaults,user 0 0
UUID=1002-FB5E /media/USB-2 auto defaults,user 0 0
I've tried udisks2 rules and they don't hold up over upgrades so I use the above, which does.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.