Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cant access my Windows partition when logged as user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
marcus_cps
n00b
n00b


Joined: 22 Jan 2006
Posts: 39
Location: Campinas

PostPosted: Thu Feb 15, 2007 6:22 pm    Post subject: Cant access my Windows partition when logged as user Reply with quote

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
View user's profile Send private message
TuxTom
n00b
n00b


Joined: 04 Jan 2007
Posts: 57

PostPosted: Thu Feb 15, 2007 7:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
marcus_cps
n00b
n00b


Joined: 22 Jan 2006
Posts: 39
Location: Campinas

PostPosted: Thu Feb 15, 2007 7:06 pm    Post subject: Reply with quote

Yes...
Thats exactly what I've got.
I'm emerging ntfs3g right now...
lets see whats gonna happen...
_________________
Marcus
Back to top
View user's profile Send private message
TuxTom
n00b
n00b


Joined: 04 Jan 2007
Posts: 57

PostPosted: Thu Feb 15, 2007 7:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
marcus_cps
n00b
n00b


Joined: 22 Jan 2006
Posts: 39
Location: Campinas

PostPosted: Thu Feb 15, 2007 7:26 pm    Post subject: Reply with quote

When you say "adjust either user, group and/or premissions (chown, chgrp, chmod)", what exactly do you mean?
_________________
Marcus
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Thu Feb 15, 2007 7:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
marcus_cps
n00b
n00b


Joined: 22 Jan 2006
Posts: 39
Location: Campinas

PostPosted: Thu Feb 15, 2007 7:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
irgu
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2003
Posts: 131

PostPosted: Thu Feb 15, 2007 7:47 pm    Post subject: Reply with quote

There is no iocharset ntfs-3g option but a 'locale' one:
http://www.ntfs-3g.org/index.html#usage
http://www.ntfs-3g.org/support.html#locale
Back to top
View user's profile Send private message
marcus_cps
n00b
n00b


Joined: 22 Jan 2006
Posts: 39
Location: Campinas

PostPosted: Thu Feb 15, 2007 7:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
irgu
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2003
Posts: 131

PostPosted: Thu Feb 15, 2007 11:29 pm    Post subject: Reply with quote

Where do they say? I can't find. Do you have a link?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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