View previous topic :: View next topic |
Author |
Message |
deathmetalscottie n00b


Joined: 14 Jan 2008 Posts: 64 Location: Omaha, Nebraska
|
Posted: Fri May 22, 2009 6:48 am Post subject: fstab settings to allow user r/w of ntfs |
|
|
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 |
|
 |
toralf Developer


Joined: 01 Feb 2004 Posts: 3943 Location: Hamburg
|
Posted: Fri May 22, 2009 7:59 am Post subject: |
|
|
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 |
|
 |
Gusar Advocate

Joined: 09 Apr 2005 Posts: 2665 Location: Slovenia
|
Posted: Fri May 22, 2009 11:23 am Post subject: |
|
|
The ntfs kernel driver has very limited writing ability. It's pretty much useless for that. Use ntfs3g instead. |
|
Back to top |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri May 22, 2009 11:37 am Post subject: |
|
|
In fact, I don't use the kernel driver to write on a ntfs partition. I use ntfs-3g too  |
|
Back to top |
|
 |
i92guboj Bodhisattva


Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Fri May 22, 2009 11:47 am Post subject: |
|
|
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 |
|
 |
deathmetalscottie n00b


Joined: 14 Jan 2008 Posts: 64 Location: Omaha, Nebraska
|
Posted: Fri May 22, 2009 11:14 pm Post subject: |
|
|
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 |
|
 |
Nerevar l33t


Joined: 31 May 2008 Posts: 720
|
Posted: Fri May 22, 2009 11:30 pm Post subject: |
|
|
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 |
|
 |
Gnomaana n00b

Joined: 14 Jul 2005 Posts: 4
|
Posted: Sat May 23, 2009 1:38 am Post subject: |
|
|
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 |
|
 |
pappy_mcfae Watchman


Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Sat May 23, 2009 6:52 am Post subject: |
|
|
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 |
|
 |
i92guboj Bodhisattva


Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Sat May 23, 2009 10:57 am Post subject: |
|
|
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 |
|
 |
deathmetalscottie n00b


Joined: 14 Jan 2008 Posts: 64 Location: Omaha, Nebraska
|
Posted: Sat May 23, 2009 5:35 pm Post subject: |
|
|
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 |
|
 |
deathmetalscottie n00b


Joined: 14 Jan 2008 Posts: 64 Location: Omaha, Nebraska
|
Posted: Sat May 23, 2009 5:56 pm Post subject: |
|
|
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 |
|
 |
pappy_mcfae Watchman


Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Sat May 23, 2009 6:14 pm Post subject: |
|
|
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 |
|
 |
deathmetalscottie n00b


Joined: 14 Jan 2008 Posts: 64 Location: Omaha, Nebraska
|
Posted: Sat May 23, 2009 7:18 pm Post subject: |
|
|
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 |
|
 |
pappy_mcfae Watchman


Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Sat May 23, 2009 8:00 pm Post subject: |
|
|
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 |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sat May 23, 2009 8:06 pm Post subject: |
|
|
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 |
|
 |
|