LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-18-2014, 05:28 AM   #1
ack_iix
Member
 
Registered: Jan 2009
Posts: 61

Rep: Reputation: 17
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.
 
Old 03-18-2014, 06:41 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,778

Rep: Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875
have a look on your /etc/fstab
 
Old 03-18-2014, 08:37 AM   #3
ack_iix
Member
 
Registered: Jan 2009
Posts: 61

Original Poster
Rep: Reputation: 17
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
 
Old 03-18-2014, 11:24 AM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,778

Rep: Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875Reputation: 1875
How do expect the system to mount something without plugging in your portable hard drive? What should it mount?
 
Old 03-18-2014, 01:41 PM   #5
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,969

Rep: Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605
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.
 
Old 03-18-2014, 05:23 PM   #6
ack_iix
Member
 
Registered: Jan 2009
Posts: 61

Original Poster
Rep: Reputation: 17
@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
 
Old 03-18-2014, 05:36 PM   #7
ack_iix
Member
 
Registered: Jan 2009
Posts: 61

Original Poster
Rep: Reputation: 17
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)
 
Old 03-18-2014, 05:36 PM   #8
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,969

Rep: Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605Reputation: 4605
Quote:
Originally Posted by ack_iix View Post

@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.
 
  


Reply

Tags
automount, slackware64


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I get KDE4 to automount all vfat usb-sticks with the "flush" mount option? ssenuta Mandriva 1 01-15-2010 01:14 AM
change default mount directory g0hl1n Linux - Software 1 12-15-2009 07:39 AM
Change Default Home Directory with LDAP and Automount greslore Linux - General 3 06-23-2009 04:32 PM
How to change default KDE mount option ? mhtrinh Fedora 2 01-14-2008 04:17 AM
How do I change the default boot option in GRUB martinr Linux - Software 3 04-10-2006 07:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration