Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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

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

You should add something like this in fstab:
/dev/hda1 /mnt/win vfat users,rwThis will allow every user to mount /dev/hda1 with read-write permissions, hence giving him access to that partition.

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.

![]() |
![]() |
![]() |

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