LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-12-2008, 07:01 PM   #16
zhoun
Member
 
Registered: Oct 2007
Location: anywhere
Distribution: slackware64 current & win7 64 on thinkpad X61
Posts: 104

Rep: Reputation: 18

I learned that the ntfsprogs tools + ntfs-3g will be perfect.

Ntfs-3g is just a single mount cmd and ntfsprogs provide many useful tools for ntfs such as: ntfsresize,ntfsundelete,ntfsclone......

I said sorry before. And if you got the other solution than setuid,
please share your experience and that will be appreciate.

We should discuss something more useful than flame war.
 
Old 03-13-2008, 11:32 AM   #17
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Original Poster
Rep: Reputation: Disabled
Per Zhoun:
Quote:
I said sorry before.
Yes, you did & I apologize for not acknowledging that.
Thanks, Zhoun. Your post (#16) got me to look at the packages for ntfsprogs & ntfs-3g. The lines in ntfsprogs doinst.sh that apply to mounting are:
Quote:
( cd sbin ; rm -rf mount.ntfs-fuse )
( cd sbin ; ln -sf /bin/ntfsmount mount.ntfs-fuse )
( cd sbin ; rm -rf mount.fuse.ntfs )
( cd sbin ; ln -sf /bin/ntfsmount mount.fuse.ntfs )
The corresponding lines in the ntfs-3g
doinst.sh are:
Quote:
( cd sbin ; rm -rf mount.ntfs-3g )
( cd sbin ; ln -sf /bin/ntfs-3g mount.ntfs-3g )
So, both packages can be installed, without interference, & one driver or the other chosen when the filesystem is mounted. What I had previously read led me to believe that both could not be installed at the same time.
Also, I have not been able to find any other way to mount an ntfs filesystem, as a user, except by using set-uid-root. I guess that's the way I will go, even though it is contrary to my instincts.
Thanks again, all, for your input.
Regards,
Bill

Last edited by TSquaredF; 03-13-2008 at 11:35 AM.
 
Old 03-14-2008, 09:42 AM   #18
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
From what I've seen, the difference hinges on whether the devices is classified as *removable* or not. For example, if you take thumb drive and format it with an ntfs filesystem, it mounts just fine as a normal user (with read/write permissions), just like any other removable device would do. However, if the device is not classified as removable, it doesn't. Unfortunately, most people's use cases are going to be with block devices similar to what you have, so that's definitely a problem. I didn't catch this in testing ntfsprogs, as I don't actually have anything set up to dual boot - I accidentally discovered it when doing some recovery work on a laptop hard drive that I'd put a usb adapter on and plugged into my -current laptop.

The reason that ntfsprogs was chosen instead of ntfs-3g is basically that ntfsprogs was already in /extra, so it seemed more appropriate to upgrade it to the latest version and move it into ap/ rather than removing it and adding ntfs-3g. With that said, I haven't had time to do any further research on how to make it behave as expected, so assuming it's possible, any information that you guys are able to find is welcome - you can mail me at rworkman AT slackware.com or post it here. I can't speak for Pat, but I personally would be very reluctant to "undo" the ntfsprogs addition unless it's simply not possible and/or bad from a security standpoint to do what we want it to do.
 
Old 03-14-2008, 07:29 PM   #19
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Original Poster
Rep: Reputation: Disabled
I finally got to spend some time today investigating the two ntfs drivers. Using set-uid-root is the only way I have been able to find to get a user permission to mount a filesystem under either one. The instructions that Zhoun gave worked perfectly for both ntfs-3g & ntfsmount. The only surprise was that "umount" did not work, but "fusermount -u /mnt/win2k" did. I will probably continue to use ntfsmount, just because that is what is included in -current, however I may not use it very long, now all of the programs that I need windows for work acceptably under wine, & I may be able to erase my win2k partition.
Edit: I have not been able to get the fuse.ntfs driver to work from fstab. This works for ntfs-3g:
Quote:
/dev/hda1 /mnt/win2k ntfs-3g noauto,users,uid=1000,gid=100,dmask=022,fmask=117
but if I change the "ntfs-3g" to "fuse.ntfs", I get:
Quote:
$ mount /mnt/win2k
fuse: unknown option `users'
fuse_new failed.
Unmounting /dev/hda1 (win2k)
If I remove "users,", I get:
Quote:
$ mount /mnt/win2k
mount: only root can mount /dev/hda1 on /mnt/win2k
I finally wrote a short script to mount/unmount the partition.
Regards,
Bill

Last edited by TSquaredF; 03-14-2008 at 08:20 PM.
 
  


Reply



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
FUSE works but fuse group does not exist? violagirl23 Linux - Software 3 01-21-2008 04:01 AM
trying to format ntfs partition using ntfsprogs pkg. mrj Fedora 1 12-16-2007 07:29 AM
slackware current question on the current kernels davimint Slackware 3 06-03-2007 07:39 AM
ntfsprogs AtinLango Linux - Software 1 02-09-2006 08:23 AM

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

All times are GMT -5. The time now is 09:54 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