LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 04-30-2012, 12:05 PM   #1
bokusama
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Rep: Reputation: 0
Change ntfs-3g default options (not per-device)


Hello. I'm trying to modify the default ntfs-3g options (that is, from what man says to what I want.) This can be done using fstab for a particular drive, say using its label. But some operations I regularly do (like copying with extended attributes) will not inform me of failure to do so and if I forget to be careful I end up with a bad copy - and I'll only find out once I check or try to use it.

My work scenario is not where I have a few drives always connected or at hand. I have to do this for multiple USB drives that come and go. Not that I can't find a way to remind myself to be careful, but getting the OS to do it for me would be much more comfortable.

Have not found solutions browsing the net. On the contrary seems like, quite reasonably, there is no easy way because of security implications. But I'm willing to waver a bit of security, no one else uses my system and many security measures are already in place anyway (firewalls, vpn, etc.)

/etc/fstab:
LABEL=(PER_DEVICE_LABEL) (PER_DEVICE_MOUNTPOINT) ntfs-3g no_def_opts,permissions,allow_other,nonempty,compression 0 0

Any help appreciated!
 
Old 05-02-2012, 07:57 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Welcome to LQ!

If the only problem you have is in copying files, switch to rsync.
You will like it's many features; especially checking source vs.
destination files, where it won't make a bad copy.
 
Old 05-02-2012, 08:58 AM   #3
bokusama
LQ Newbie
 
Registered: Apr 2012
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you Bruce. Indeed I recently switched to rsync and it's great. I'm afraid I wasn't clear. The reason I want those options in particular is so that files can have extended attributes at all. If I do rsync -ah to a mount without the options in that fstab, because the target won't support them with the default mount options of ntfs-3g, extended attributes are completely disabled and in the end rsync fails to copy them over (just checked if after rsync I remounted with options for permissions I would see them there but no, they were completely lost despite the rsync -a; attributes can't be other than 0777 root root with the default options it seems.)

So precisely to be able to use cp -a, rsync -a I need those options and I'd like them to be the default (rsync and cp or even chmod and the such won't warn that they failed, even in verbose mode!)

So what then?
 
Old 05-21-2012, 06:32 PM   #4
falcom
Member
 
Registered: May 2009
Posts: 102

Rep: Reputation: 13
rsync preserve attributes files... what is your problem??


Quote:
Originally Posted by bokusama View Post
Thank you Bruce. Indeed I recently switched to rsync and it's great. I'm afraid I wasn't clear. The reason I want those options in particular is so that files can have extended attributes at all. If I do rsync -ah to a mount without the options in that fstab, because the target won't support them with the default mount options of ntfs-3g, extended attributes are completely disabled and in the end rsync fails to copy them over (just checked if after rsync I remounted with options for permissions I would see them there but no, they were completely lost despite the rsync -a; attributes can't be other than 0777 root root with the default options it seems.)

So precisely to be able to use cp -a, rsync -a I need those options and I'd like them to be the default (rsync and cp or even chmod and the such won't warn that they failed, even in verbose mode!)

So what then?
 
  


Reply


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
change grub boot order, all instructions say change default, but I don't see default mhg Linux - Newbie 5 11-09-2008 11:01 AM
Change network device driver code to make it default stevebeiko Programming 6 07-31-2008 05:16 AM
Editing DrakLive-Install (change default grub options) Val-Ent Linux - General 0 01-05-2007 04:11 AM
How to change default MIDI device? redss Linux - General 0 11-25-2003 10:25 PM
change default audio device (debian woody) zhynn Debian 3 07-04-2003 05:35 PM


All times are GMT -5. The time now is 02:42 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration