LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-23-2003, 04:11 PM   #1
Rognon
Member
 
Registered: Dec 2003
Distribution: Arch
Posts: 64

Rep: Reputation: 15
mnt problem


Hi there,
Here's my problem : I wanted to automount a windows partition using autofs so that i could acces it as a normal user. I followed the instructions that I found somewhere but now not only I can't acces my windows partition but my /mnt folder is empty. Now I can't mount anything and if I try to make other dirs in /mnt i get the following error, even if i'm root :

mkdir: cannot create directory `cdrom': Permission denied

How can I fix that ??
thx,

-- Rognon
 
Old 12-23-2003, 04:21 PM   #2
fr0zen
Member
 
Registered: Nov 2003
Location: 127.0.0.1
Distribution: xubuntu
Posts: 217

Rep: Reputation: 30
Well I'm thinking what happened is the /mnt directory has been 'mounted over'. You could check this by doing typing 'mount' to see the currently mounted filesystems. If that does not work, I suggest disabling automount, and rebooting.
 
Old 12-23-2003, 04:49 PM   #3
Rognon
Member
 
Registered: Dec 2003
Distribution: Arch
Posts: 64

Original Poster
Rep: Reputation: 15
shutting down autofs worked, thanks. But now, how can I automount my windows partition and be able to acces it as a normal user ??
 
Old 12-23-2003, 04:58 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
A frequently asked question:
Create a mount point like /mnt/windows
Add and entry to your /etc/fstab
For NTFS
/dev/hda1 /mnt/windows ntfs user,umask=222 0 0
FAT32
/dev/hda1 /mnt/windows vfat user,umask=000 0 0

Replace hda1 with the actual partition number. ntfs is limited to read only.
See man pages mount and fstab for additional options and help. You can also find help by search this website.
 
Old 12-23-2003, 05:17 PM   #5
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Also, make sure your user has read permissions for the actual folder the partition is mounted in. Check this BEFORE you mount the partition.
 
Old 12-23-2003, 05:27 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Note - for Fat32 partitions (using the file type vfat) you need to set the user or group id in the fstab line. Adding uid=xxx to the options where xxx is your user id will make you the owner of the mountede-partition.

Check out info mount for details. The FAT32 file system doesn't have the same attributes as an ext2/3 file system. Also, unless you added support for it, an NTFS file system will be mount read-only.
 
Old 12-23-2003, 06:11 PM   #7
Rognon
Member
 
Registered: Dec 2003
Distribution: Arch
Posts: 64

Original Poster
Rep: Reputation: 15
hmm.. adding my windows partion to fstab was the first thing I tried but I could'nt acces it as a normal user, thats why I tried autofs. Now I retried adding it to fstab and it works perfectly... strange
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cd mnt problem in 10.1 offic. MRDucks Mandriva 1 08-30-2005 11:45 PM
i changed /mnt/cdrom to /mnt/CD-RW - now i've got a problem?!?! spyghost Linux - Software 7 09-30-2003 02:06 PM
/mnt/cdrom & /mnt/scd0 locks up machine RIgimp75 Mandriva 7 09-01-2003 09:32 PM
mount -t //192.168.0.1/mnt /mnt/windows -o password='' generates error broadsoft Linux - Networking 3 08-07-2003 04:51 AM
cd-rw and dvd mnt problem jamessp007 Linux - Newbie 11 11-16-2002 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:15 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration