Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fstab settings to allow user r/w of ntfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
deathmetalscottie
n00b
n00b


Joined: 14 Jan 2008
Posts: 64
Location: Omaha, Nebraska

PostPosted: Fri May 22, 2009 6:48 am    Post subject: fstab settings to allow user r/w of ntfs Reply with quote

ok, my ntfs partitons are mount but I need a way to actually be able to edit or pull of some information from the other disks. what do I need to set up in fstab?
Code:


# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
UUID=93cf580d-b7ca-4138-86ae-c92bdd2957b4    /boot       reiserfs        defaults,notail,noatime 1 2
UUID=c9e943cc-88ff-48b3-9b8e-27d5f74b7a17     /jfs                              noatime                        0 1
UUID=7d75a99f-ea8f-4d5a-8bd2-09dcc8f96d8c      none        swap          sw                                0 0
UUID=298841c5-cb87-4ec7-b2e9-793cc6e013b3   /Media       ext3           defaults,noatime           0 2
UUID=403CA8E33CA8D566                     /Windows7              ntfs           user,defaults                 0 2
UUID=4EDCFB85DCFB661D                     /Storage                ntfs           user,defaults                 0 2

shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0



the drives mount but Dolphin will not allow me to look at the files.
_________________
-Whoever said "If it ain't broke, don't fix it!" wasn't an overclocker-
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3943
Location: Hamburg

PostPosted: Fri May 22, 2009 7:59 am    Post subject: Reply with quote

Try playoing with uid, gid and umask like this :
Code:
/dev/hda1   /mnt/C    ntfs   noauto,user,noatime,uid=<your user id>,gid=users,umask=0027,rw
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Fri May 22, 2009 11:23 am    Post subject: Reply with quote

The ntfs kernel driver has very limited writing ability. It's pretty much useless for that. Use ntfs3g instead.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri May 22, 2009 11:37 am    Post subject: Reply with quote

In fact, I don't use the kernel driver to write on a ntfs partition. I use ntfs-3g too :P
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Fri May 22, 2009 11:47 am    Post subject: Reply with quote

Gusar wrote:
The ntfs kernel driver has very limited writing ability. It's pretty much useless for that. Use ntfs3g instead.


++

The kernel driver is useless but for read only purposes.

The kernel help wrote:

CONFIG_NTFS_RW:

This enables the partial, but safe, write support in the NTFS driver.

The only supported operation is overwriting existing files, without
changing the file length. No file or directory creation, deletion or
renaming is possible. Note only non-resident files can be written to
so you may find that some very small files (<500 bytes or so) cannot
be written to.


While we cannot guarantee that it will not damage any data, we have
so far not received a single report where the driver would have
damaged someones data so we assume it is perfectly safe to use.

Note: While write support is safe in this version (a rewrite from
scratch of the NTFS support), it should be noted that the old NTFS
write support, included in Linux 2.5.10 and before (since 1997),
is not safe.

This is currently useful with TopologiLinux. TopologiLinux is run
on top of any DOS/Microsoft Windows system without partitioning your
hard disk. Unlike other Linux distributions TopologiLinux does not
need its own partition. For more information see
<http://topologi-linux.sourceforge.net/>

It is perfectly safe to say N here.

Symbol: NTFS_RW [=y]
Prompt: NTFS write support
Defined at fs/Kconfig:642
Depends on: BLOCK && NTFS_FS
Location:
-> File systems
-> DOS/FAT/NT Filesystems
-> NTFS file system support (NTFS_FS [=m])
Back to top
View user's profile Send private message
deathmetalscottie
n00b
n00b


Joined: 14 Jan 2008
Posts: 64
Location: Omaha, Nebraska

PostPosted: Fri May 22, 2009 11:14 pm    Post subject: Reply with quote

toralf wrote:
Try playoing with uid, gid and umask like this :
Code:
/dev/hda1   /mnt/C    ntfs   noauto,user,noatime,uid=<your user id>,gid=users,umask=0027,rw

no workey. played with it for a little bit but didn't work
Gusar wrote:
The ntfs kernel driver has very limited writing ability. It's pretty much useless for that. Use ntfs3g instead.

how stable is ntfs-3g? I don't plan on writing to uch to it, mostly need to pull shit off. I can do it through the shell but a gui is so much easier in trying to determine what files are what.
_________________
-Whoever said "If it ain't broke, don't fix it!" wasn't an overclocker-
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Fri May 22, 2009 11:30 pm    Post subject: Reply with quote

Try that:
Code:
/dev/hda1      /mnt/C      ntfs     noauto,noatime,nodiratime,user,umask=0,nls=utf8 0 0

Then mount it as your user (not root).
Back to top
View user's profile Send private message
Gnomaana
n00b
n00b


Joined: 14 Jul 2005
Posts: 4

PostPosted: Sat May 23, 2009 1:38 am    Post subject: Reply with quote

I had same issue. I changed the line in my fstab to this:

Code:
/dev/sda2               /mnt/XPDrive    ntfs            noatime,nls=utf8,umask=0222     0 0



This fixed issue for me. Now I can read the drive from my non-root user. I don't want to write to my ntfs partition so this is for read only.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Sat May 23, 2009 6:52 am    Post subject: Reply with quote

deathmetalscottie wrote:

how stable is ntfs-3g? I don't plan on writing to uch to it, mostly need to pull shit off. I can do it through the shell but a gui is so much easier in trying to determine what files are what.


Very stable. I've used it for years with this machine without one single file error; read or write. If you want to use it, enable the fuse module in the kernel. You can look at one of my kernel seeds for reference.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sat May 23, 2009 10:57 am    Post subject: Reply with quote

I never had a problem with it, though admittedly for me it's rare the occasion when I need to use it.

In any case, and looking at the kernel driver, it's difficult to do it any worse :p
Back to top
View user's profile Send private message
deathmetalscottie
n00b
n00b


Joined: 14 Jan 2008
Posts: 64
Location: Omaha, Nebraska

PostPosted: Sat May 23, 2009 5:35 pm    Post subject: Reply with quote

pappy_mcfae wrote:
deathmetalscottie wrote:

how stable is ntfs-3g? I don't plan on writing to uch to it, mostly need to pull shit off. I can do it through the shell but a gui is so much easier in trying to determine what files are what.


Very stable. I've used it for years with this machine without one single file error; read or write. If you want to use it, enable the fuse module in the kernel. You can look at one of my kernel seeds for reference.

Blessed be!
Pappy


I'm actually using one of your kernel seeds LOL. but I modified it a little since I pretty much know how to modify a kernel but didn't know what everything did. I took out fuse, I'll go and load it into the kernel and try it out. What the hell, I can't boot into Windows anyway case I accidently formatted over the Windows 7 boot loader.
_________________
-Whoever said "If it ain't broke, don't fix it!" wasn't an overclocker-
Back to top
View user's profile Send private message
deathmetalscottie
n00b
n00b


Joined: 14 Jan 2008
Posts: 64
Location: Omaha, Nebraska

PostPosted: Sat May 23, 2009 5:56 pm    Post subject: Reply with quote

wow ok so i went to /usr/src/linux, ad it says that ncurses isn't installed, so i reemerged it, did a revdep rebuild, and it dosen't work. it keeps telling me to install ncurses-devel.
_________________
-Whoever said "If it ain't broke, don't fix it!" wasn't an overclocker-
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Sat May 23, 2009 6:14 pm    Post subject: Reply with quote

What tells you to emerge ncurses-devel? I don't have that on any of my systems. Weird.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
deathmetalscottie
n00b
n00b


Joined: 14 Jan 2008
Posts: 64
Location: Omaha, Nebraska

PostPosted: Sat May 23, 2009 7:18 pm    Post subject: Reply with quote

nvm, I was try to open menuconfig in user mode rather than root, keep forgetting to put sudo in front of root based commands. Also when I enable fuse, do I need to enable ntfs in the kernel or does the fuse setting work for ntfsg3 by itself?
_________________
-Whoever said "If it ain't broke, don't fix it!" wasn't an overclocker-
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Sat May 23, 2009 8:00 pm    Post subject: Reply with quote

Enable fuse in the kernel as a module. When ntfs-3g needs it, it will modprobe fuse automatically. Technically speaking, if the kernel is new enough ( >=.28 ), it will automatically load kernel modules. In versions <.28, you can turn automatic module loading on, and get the same effect.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat May 23, 2009 8:06 pm    Post subject: Reply with quote

And with ntfs-3g, you can set the partition so, if you want only to be able to read it, then you can pass the ro option.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum