LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-07-2004, 01:35 AM   #1
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Rep: Reputation: 30
Question 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
 
Old 12-07-2004, 01:39 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
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
 
Old 12-07-2004, 02:16 AM   #3
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 12-07-2004, 04:58 AM   #4
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Ċrhus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 588

Rep: Reputation: 45
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
 
Old 12-07-2004, 06:00 AM   #5
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Original Poster
Rep: Reputation: 30
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?
 
Old 12-07-2004, 06:40 AM   #6
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Ċrhus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 588

Rep: Reputation: 45
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
 
Old 12-07-2004, 07:01 AM   #7
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Original Poster
Rep: Reputation: 30
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
 
Old 12-07-2004, 07:27 AM   #8
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Original Poster
Rep: Reputation: 30
well I got it working 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.
 
Old 12-07-2004, 07:55 AM   #9
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Ċrhus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 588

Rep: Reputation: 45
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
 
Old 12-07-2004, 08:02 AM   #10
yotamk
Member
 
Registered: Nov 2004
Location: ~
Distribution: Debian
Posts: 145

Rep: Reputation: 15
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?
 
Old 12-07-2004, 07:48 PM   #11
phoenix_wolf
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 177

Original Poster
Rep: Reputation: 30
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
 
Old 12-08-2004, 02:44 AM   #12
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
home folder not opening d1l2w3 Mandriva 6 04-07-2005 05:21 PM
linux vs windows user account management sblair_32 Linux - Software 2 04-01-2005 10:57 AM
Nautilus crashes when opening home folder or1onas Linux - Newbie 13 08-26-2004 12:38 PM
Permission denied opening a folder phoenixofwater Linux - Newbie 3 07-26-2004 10:45 PM
cant access my windows drive in my user account Polyfaux Linux - General 5 02-21-2004 08:08 AM


All times are GMT -5. The time now is 04:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration