View previous topic :: View next topic |
Author |
Message |
marcus_cps n00b
Joined: 22 Jan 2006 Posts: 39 Location: Campinas
|
Posted: Thu Feb 15, 2007 6:22 pm Post subject: Cant access my Windows partition when logged as user |
|
|
My Windows partition (NTFS) is mounted in /mnt/WinXP.
Logged as root, I can access without problems...
Logged as a normal user, I cant...
Info...
Code: | $ groups
disk wheel floppy audio cdrom dialout tape video cdrw usb users marcus haldaemon |
Code: | $ mount | grep WinXP
/dev/hda4 on /mnt/WinXP type ntfs (rw,noexec,nosuid,nodev)
|
What is wrong?
Thanks very much _________________ Marcus |
|
Back to top |
|
|
TuxTom n00b
Joined: 04 Jan 2007 Posts: 57
|
Posted: Thu Feb 15, 2007 7:01 pm Post subject: |
|
|
Probably ls -l gives you something like this, when the drive is mounted:
Code: | dr-x------ 1 root root 4096 2006-12-07 19:14 WinXP |
If that's the case, the problem is that your user doesn't have the permission to access the drive.
Unfortunately you can't change owner or permission if it's mounted as ntfs. You might try sys-fs/ntfs3g, that should do the trick, but I don't have any experience with it.
Greets, Tom |
|
Back to top |
|
|
marcus_cps n00b
Joined: 22 Jan 2006 Posts: 39 Location: Campinas
|
Posted: Thu Feb 15, 2007 7:06 pm Post subject: |
|
|
Yes...
Thats exactly what I've got.
I'm emerging ntfs3g right now...
lets see whats gonna happen... _________________ Marcus |
|
Back to top |
|
|
TuxTom n00b
Joined: 04 Jan 2007 Posts: 57
|
Posted: Thu Feb 15, 2007 7:18 pm Post subject: |
|
|
You will have to switch the type from ntfs to ntfs-3g in your /etc/fstab:
Code: | /dev/hda4 /mnt/WinXP ntfs-3g defaults,noauto 0 0 |
Re-mount the drive and adjust either user, group and/or premissions (chown, chgrp, chmod).
Greets, Tom |
|
Back to top |
|
|
marcus_cps n00b
Joined: 22 Jan 2006 Posts: 39 Location: Campinas
|
Posted: Thu Feb 15, 2007 7:26 pm Post subject: |
|
|
When you say "adjust either user, group and/or premissions (chown, chgrp, chmod)", what exactly do you mean? _________________ Marcus |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Thu Feb 15, 2007 7:31 pm Post subject: |
|
|
Hello.
You can add a few options to /etc/fstab that will allow you to use the NTFS partitions as your normal user. I have the following:
Code: | /dev/sda2 /mnt/c ntfs noauto,users,gid=users,umask=002 0 0
/dev/sdb3 /mnt/d ntfs noauto,users,gid=users,umask=002 0 0 |
The gid option allows you to set the group that will own the partition. The uid allows you to set the user that will own the partition. The umask let's you specify what permissions will be removed from the partition. The 002 will take the write permission for world. If you use 077, it will take all permissions to group and the world. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
marcus_cps n00b
Joined: 22 Jan 2006 Posts: 39 Location: Campinas
|
Posted: Thu Feb 15, 2007 7:36 pm Post subject: |
|
|
Cool...
I'll make it this way:
noauto,gid=users,iocharset=iso8859-1,umask=002
Saw this iocharset option in ntfs-3g www page...
I'm using full UTF-8 environment... do you think I should remove this option?
Thank u. _________________ Marcus |
|
Back to top |
|
|
irgu Tux's lil' helper
Joined: 25 Apr 2003 Posts: 131
|
|
Back to top |
|
|
marcus_cps n00b
Joined: 22 Jan 2006 Posts: 39 Location: Campinas
|
Posted: Thu Feb 15, 2007 7:56 pm Post subject: |
|
|
thats true... fixed.
The question is... they say that some file names cannot be converted to utf-8... so iso8859-1 must be used.
Should I use utf-8 or iso8859-1? (Considering what I've said).
Thanks _________________ Marcus |
|
Back to top |
|
|
irgu Tux's lil' helper
Joined: 25 Apr 2003 Posts: 131
|
Posted: Thu Feb 15, 2007 11:29 pm Post subject: |
|
|
Where do they say? I can't find. Do you have a link? |
|
Back to top |
|
|
|