opening windows folder in user account
Greetings I just mounted my windows drive under mnt/win so now I have it but how can I get access using my account not the root?
Thank you |
What happens if you run ls /mnt/win ? Do you get permission denied? If that's the case then su - and chgrp users and see if that helps :)
|
Not quite... Or at least, not in my experience.
Rather edit the mount options in fstab. Add in the 'options' section (usually where is says 'default') the option: umask=000 Cool |
look at uid, gid, umask, dmask, fmask mount options. Also make sure that the folder /mnt/win has suitable permissions. Eg, I have mounted a samba partition as
Code:
//heimdal4/otoomet /mnt/otoomet smbfs noauto,credentials=/home/otoomet/etc/smbpassword,uid=otoomet,gid=otoomet,fmask=644,dmask=755 0 0 Code:
drwxr-xr-x 1 otoomet otoomet 4096 29. nov 07:32 otoomet best, Ott |
ok I found out how to edit it using vi
but there is a problem I cant seem to access the drive here is what i did # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/hdb1 / ext3 defaults,errors=remount-ro 0 0 1 /dev/hdb5 none swap sw 0 0 /dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 /dev/hda1 /mnt/win ntfs rw,username,auto 0 0 what is in red I put in now what did I do wrong? |
What exactly happens, why cannot you access the drive? I don't know about ntfs, but what is keyword 'username' meant for? You should perhaps specify 'uid=phoenix_wolf' or something similar.
You should also look at output for 'dmesg' command, last lines of it may explain what went wrong. Try to mount it maually at first, it you succeed, add the corresponding line into /etc/fstab. best, Ott |
ok here is what I do first I type this
mount /dev/hda1 /mnt/win then it mounts then I went into fstab and typed this /dev/hda1 /mnt/win ntfs rw,wolf,auto 0 0 |
well I got it working :D here is what i had to do
/dev/hda1 /home/wolf/Windows ntfs ro,uid=wolf 0 0 then restart the computer now here is another question I mounted it to 2 places one under home/wolf/Windows and the other under mnt/win how can i un mount it of of one of them and which would u do you think I should un-mount? thank you for your help. |
I recommend to mount it only to one place, e.g. /mnt/win in order to keep all your mounts together. You may create a symlink from you home to it, then it appears in you home directory too:
$ cd $HOME $ ln -s /mnt/win Windows To unmount only from one place... I guess $ umount /home/wolf/Windows should do the job Best, Ott |
Edit your fstab file. Delete one of the mounts entries (I'd say the /home/wolf/windows one).
BTW are'nt you getting any warnings about having it mounted twice? |
well got it done now it's on mnt only.
Thank you all as far as having it mounted twice well I don't think I had both places mounted completely because fstab had only one place installed in it so there where no problems there. any way thanks again |
Quote:
Cool |
All times are GMT -5. The time now is 11:53 PM. |