LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-13-2004, 07:38 AM   #1
necbrownie
Member
 
Registered: Jul 2004
Location: Cambridge, Massachusets, USA
Distribution: Slackware 10.0 Suse 9.2
Posts: 47

Rep: Reputation: 15
Access my windows partition as a normal user


I've got slackware 10.0 using KDE 3.2 on a dual boot system. Windows is on my primary harddrive and linux is on my secondary harddrive.

When I am logged in as a root I can access windows but when I am logged in as a normal user I cannot. How can I fix this? I adjusted some parameters in the user account settings while logged in as root and nothing seemed to help.
 
Old 10-13-2004, 07:47 AM   #2
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
what filesystem is it??

For ntfs (WinXP and Win2K):

add the following line to ur /etc/fstab:

/dev/hdaX /mnt/ntfs ntfs noauto,users,ro,umask=0 1 0

change X to reflect ur system, on my machine the ntfs partition is at /dev/hda1. I can't recall what to use for a fat partition, that's on my laptop which I don't have to hand.

fat partition:

/dev/hdaX /mnt/fat-32 vfat noauto,users,rw 0 0

again, change X

and don't forget to edit your mount points.

Last edited by KMcD; 10-13-2004 at 07:48 AM.
 
Old 10-13-2004, 08:03 AM   #3
hameedkhan
LQ Newbie
 
Registered: Oct 2004
Location: Karachi, Pakistan
Distribution: Slackware, SuSe, Ubuntu, CentOS
Posts: 19

Rep: Reputation: 0
Hi,
add 'user' with out quotes in the option column of /etc/fstab. so you will be able to mount your windows partitions as a regular user. read 'man 8 mount' and 'man 5 fstab' for more information. below is my snip from my fstab.

Code:
/dev/hda3        swap             swap        defaults         0   0
/dev/hda7        /                ext3        defaults         1   1
/dev/hda2        /boot            ext3        defaults         1   2
/dev/hda8        /tmp             ext3        defaults         1   2
/dev/hda9        /home            ext3        defaults         1   2
/dev/hda1        /mnt/c           vfat        noauto,ro,user   0   0
/dev/hda5        /mnt/d           vfat        noauto,user      0   0
/dev/hda6        /mnt/e           vfat        noauto,user      0   0
/dev/cdrom       /mnt/cdrom       auto        noauto,owner,user,ro  0
Hope this will help you.
 
Old 10-13-2004, 12:47 PM   #4
necbrownie
Member
 
Registered: Jul 2004
Location: Cambridge, Massachusets, USA
Distribution: Slackware 10.0 Suse 9.2
Posts: 47

Original Poster
Rep: Reputation: 15
hmmmmm

I added "user" and "umask=0" and it did not work. This is what my fstab looks like.....

Code:
/dev/hdb1        swap             swap        defaults         0   0
/dev/hdb3        /                ext2        defaults         1   1
/dev/hdb2        /var             ext2        defaults         1   2
/dev/hda1        /windows         ntfs        noauto,user,ro   0   1
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0

However, I still cannot access my windows partition (/dev/hda1) as a normal user. What am I doing wrong?
 
Old 10-13-2004, 01:19 PM   #5
necbrownie
Member
 
Registered: Jul 2004
Location: Cambridge, Massachusets, USA
Distribution: Slackware 10.0 Suse 9.2
Posts: 47

Original Poster
Rep: Reputation: 15
Also, I should mention that the /windows folder shows up when I am logged in as a user. It just does not allow me to access the folder. There is a folder icon with a closed padlock icon over it (the /root and /lost+found folders also have this). When I try to access any of these folders KDE gives me an error message.
 
Old 10-13-2004, 04:22 PM   #6
necbrownie
Member
 
Registered: Jul 2004
Location: Cambridge, Massachusets, USA
Distribution: Slackware 10.0 Suse 9.2
Posts: 47

Original Poster
Rep: Reputation: 15
I got it!

Apparently I had to add umask=277

My fstab looks like this

Code:
/dev/hdb1        swap             swap        defaults         0   0
/dev/hdb3        /                ext2        defaults         1   1
/dev/hdb2        /var             ext2        defaults         1   2
/dev/hda1        /windows         ntfs        noauto,user,ro,umask=277   0   0
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0

The problem is that I added umask=277 without knowing what it does. Hmmmm maybe I should try uid. Anyway, thanks for all your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can't access ntfs partition as normal user rezzie Linux - Newbie 6 11-26-2005 08:09 AM
Debian normal user cant mount windows shared partition silverstormboy Debian 3 01-14-2005 07:25 AM
Windows files copied to my linux partition are locked when logged in as a normal user necbrownie Slackware 8 10-15-2004 08:11 AM
non-root user cannot access Windows partition curmudgeon42 Linux - General 3 08-13-2004 04:33 PM
FSTAB entry for normal user to access windows partition rmanocha Linux - Software 4 01-29-2004 04:33 PM


All times are GMT -5. The time now is 05:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration