LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Access my windows partition as a normal user (https://www.linuxquestions.org/questions/slackware-14/access-my-windows-partition-as-a-normal-user-242107/)

necbrownie 10-13-2004 07:38 AM

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.

KMcD 10-13-2004 07:47 AM

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.

hameedkhan 10-13-2004 08:03 AM

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.

necbrownie 10-13-2004 12:47 PM

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?

necbrownie 10-13-2004 01:19 PM

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.

necbrownie 10-13-2004 04:22 PM

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.


All times are GMT -5. The time now is 11:52 PM.