LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   opening windows folder in user account (https://www.linuxquestions.org/questions/linux-newbie-8/opening-windows-folder-in-user-account-263497/)

phoenix_wolf 12-07-2004 12:35 AM

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

cs-cam 12-07-2004 12:39 AM

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 :)

MasterC 12-07-2004 01:16 AM

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

otoomet 12-07-2004 03:58 AM

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
and the /mnt/otoomet has the following permissions:

Code:

drwxr-xr-x    1 otoomet  otoomet      4096 29. nov  07:32 otoomet
It should be quite similar with vfat (and I guess with ntfs too).

best,

Ott

phoenix_wolf 12-07-2004 05:00 AM

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?

otoomet 12-07-2004 05:40 AM

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

phoenix_wolf 12-07-2004 06:01 AM

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

phoenix_wolf 12-07-2004 06:27 AM

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.

otoomet 12-07-2004 06:55 AM

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

yotamk 12-07-2004 07:02 AM

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?

phoenix_wolf 12-07-2004 06:48 PM

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

MasterC 12-08-2004 01:44 AM

Quote:

Originally posted by yotamk
BTW are'nt you getting any warnings about having it mounted twice?
Depends on the setup. I get errors if I want them, but can still mount devices in multiple locations.

Cool


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