Computing.Net > Forums > Linux > Can't access mounted drive

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Can't access mounted drive

Reply to Message Icon

Name: ZLO
Date: March 30, 2003 at 16:20:45 Pacific
OS: Slackware 9
CPU/Ram: p2 366/64
Comment:

hi

i mounted win partition and i'm able to access the partition as root but unable to access it as other user. I tried changing premission (chmod 777 /mnt/win) and it didn't help. Also even as root, for some reason i can't go to folder with space in it's name. I try to start typing hit tab for autocomplete, but it's not displaying the right name. Also typing the full folder name isn't helping, getting meesgae that the folder doesnt exist. Any help is appreciated.

o yeah, i'm using slackware 9 , is there any package manager tool for GUI, besides pkgtool.

thanks



Sponsored Link
Ads by Google

Response Number 1
Name: ZLO
Date: March 30, 2003 at 17:30:11 Pacific
Reply:

ok, with net help i'm able to go to folder with space in the name as root, by putting the name in quotes. Question is why, and is there something i can change to type name w/o quotes. As of accessin win partition as regular user, im still unable to do that, even after chmod 766. Someone told me that i need to edit /etc/fstab but i dont know what to add. thanks in advance


0

Response Number 2
Name: HippieJoe
Date: March 31, 2003 at 00:29:52 Pacific
Reply:

hey about the foldername with quotes. the reason you have to have the quotes is that when linux actually reads the string you entered, it replaces any spaces with an underscore. therefore Documents and Settings is now documents_and_settings (a folder that does not exist). quotes forces linux to interpret the string exactly as entered. I do not know of a way to change that.

the reason you can't access your windows drive is because a non-root user does not have the right no matter what you specify the privliges on the mount point. i also had this problem, but solved it by editing my /etc/rc.local file. the last line in the file i simply added:

mount /dev/hda1 /mnt/win

this file is one of the last scripts run durring your boot up which is obviously being run with root privliges. therefore that mount script is executed under root no matter who logs in. the advantage is that you no longer have to manualy mount your windows drive, and any user has access.

*important - security, that script runs on every boot. everytime every user has access to your windows drive...think about who is going to be using your computer.

to help a bit with security, i do have the mount point privilages for a regular user set to only read. only root can rwx.

sorry if this is a choppy response, hope it helps.

hippiejoe


0

Response Number 3
Name: Myscha
Date: April 1, 2003 at 05:40:01 Pacific
Reply:

You should add something like this in fstab:
/dev/hda1 /mnt/win vfat users,rw

This will allow every user to mount /dev/hda1 with read-write permissions, hence giving him access to that partition.


0

Response Number 4
Name: 3Dave
Date: April 2, 2003 at 07:36:05 Pacific
Reply:

Re spaces in names:
You can use the "\" escape character instead
of quotes, eg
# cd "some folder"
is the same as
# cd some\ folder

This is probably how your shell completes
the names when hitting tab.

Re windoze drive:
As above, add/modify aline in your
/etc/fstab to read:
/dev/hda1 /mnt/win vfat
rw,uid=1001,gid=1001,umask=0007 0 0

where the gid and uid are you own. This
gives just you write access to the
partition.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Can't access mounted drive

can't access windows files www.computing.net/answers/linux/cant-access-windows-files/21942.html

Ubuntu 9.04 can't access HDD. www.computing.net/answers/linux/ubuntu-904-cant-access-hdd/30274.html

Can't access internet with 2 LAN. www.computing.net/answers/linux/cant-access-internet-with-2-lan/25736.html