Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-18-2014, 05:28 AM
|
#1
|
Member
Registered: Jan 2009
Posts: 61
Rep:
|
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.
Thanks for your reply.
|
|
|
03-18-2014, 06:41 AM
|
#2
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,778
|
have a look on your /etc/fstab
|
|
|
03-18-2014, 08:37 AM
|
#3
|
Member
Registered: Jan 2009
Posts: 61
Original Poster
Rep:
|
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.
For example, I have these entry in /etc/fstab:
Code:
# WD Passport 2TB - /dev/sdb1
UUID="A63A0C9C3A0C6C1D" /mnt/wd1 ufsd uid=1000,gid=100,fmask=133,dmask=022,iocharset=utf8,nohidden 0 0
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.
Thanks
|
|
|
03-18-2014, 11:24 AM
|
#4
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,778
|
How do expect the system to mount something without plugging in your portable hard drive? What should it mount?
|
|
|
03-18-2014, 01:41 PM
|
#5
|
Senior Member
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,969
|
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.
|
|
|
03-18-2014, 05:23 PM
|
#6
|
Member
Registered: Jan 2009
Posts: 61
Original Poster
Rep:
|
@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.
Just incase you are all wondering, people from some other distro have asked this question as well:
http://ubuntuforums.org/showthread.php?t=988150
https://ask.fedoraproject.org/en/que...mount-options/
http://askubuntu.com/questions/30762...y-not-possible
|
|
|
03-18-2014, 05:36 PM
|
#7
|
Member
Registered: Jan 2009
Posts: 61
Original Poster
Rep:
|
Quick update:
I have these entries in /etc/fstab for mounting manually:
Code:
# WD Passport 2TB - /dev/sdb2
UUID="adbdf3df-8763-48fc-9a5c-a50e6bb30b6c" /mnt/wd2 ext4 defaults,noatime 1 3
# WD Passport 2TB - /dev/sdb1
UUID="A63A0C9C3A0C6C1D" /mnt/wd1 ufsd uid=1000,gid=100,fmask=133,dmask=022,iocharset=utf8,nohidden 0 0
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)
|
|
|
03-18-2014, 05:36 PM
|
#8
|
Senior Member
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,969
|
Quote:
Originally Posted by ack_iix
@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.
|
|
|
All times are GMT -5. The time now is 11:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|