LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-02-2005, 12:56 PM   #1
dasch
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
access denied on /mnt/removable with an external USB drive


Hi,

I'm working on this problem since one week now and this is driving me crazy :/

So, I've finally decided to cry for help Wink

Here is the problem:

I have an USB external drive of 250 Gb. There are 2 NTFS partitions on it. When I plug the USB in, Mandriva (2005 LE) recognizes it and automount it automatically Smile.

However when I try to access it (as a regular user) it says : permission denied. But I can access it without any problem when I'm root.

Here is the content of my /etc/fstab (generated automatically by Mandriva):

[...]
/dev/sdb1 /mnt/removable ntfs pamconsole,exec,noauto,utf8,iocharset=iso8859-1,managed 0 0
/dev/sdb2 /mnt/removable1 ntfs pamconsole,exec,noauto,utf8,iocharset=iso8859-1,managed 0 0
[...]

I know that I normally should modify the /etc/fstab file to allow regular users to access the drive (adding 'user' on the preceding lines). However that won't work (as a matter of fact I tried several times Sad) because this file is modified automatically by Mandriva.

Here are the many things I tried without any luck Sad

1. adding the 'user' param to the file /etc/fstab and then "freeze" it so that no one can modify it (using "chattr +i /etc/fstab" when being root).
That didn't work because at the next reboot, Mandriva don't automount the drive then. And as a side effect, I couldn't use my other usb keys when I did that.

2. changing the parameters of the drive using HardDrake. This one work temporarily but again at the next reboot Mandriva don't seem to remember the parameters and I have to do that each time.

3. I tried several other things (to long to mention it) and always without any success.

So, any help would be GREATLY accepted as I'm feeling a little depressed right now :'(

Thanks in advance,
dasch
 
Old 09-02-2005, 04:02 PM   #2
sam.pedraglio
Member
 
Registered: Jul 2005
Distribution: Mint 14 64bit
Posts: 67

Rep: Reputation: 16
I had the same problem when I connected the first time my external HD.
I solved the problem mapping the drive even if it's not connected adding these lines to my fstab:

Code:
/dev/sda1   /mnt/hd_ext     ext3    user,exec 0 0
/dev/sda5   /mnt/win_ext     vfat    user,exec 0 0
if the drive is not connected, of course, during the boot you'd see an error message regarding absent devices but when I plug in it it'll work fine.
 
Old 09-02-2005, 04:17 PM   #3
dasch
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Unhappy

Thanks for your answer but as I explained I already tried that and it didn't worked.

My comprehension of this is that Mandriva (at least my version (LE 2005)) modifies automatically the fstab file. So, even if you modify it during one session, your changes will be erased during the next reboot.

As I said, I tried to "freeze" the file but it didn't worked either .

Does anyone else have an idea for that strange problem ?

Thanks,
dasch
 
Old 09-02-2005, 05:02 PM   #4
sam.pedraglio
Member
 
Registered: Jul 2005
Distribution: Mint 14 64bit
Posts: 67

Rep: Reputation: 16
I red your post. I'm using Mandriva too and the automatic editing by the system has done only if you don't map the drive by yourself.
It was my problem too but with fstab edited by myself I blocked the situation.
 
Old 09-02-2005, 05:30 PM   #5
dasch
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up

hi,

Sorry I misinterpret your first reply :$

Now, as you said, it works perfectly. What I did for the record is to suppress the 'managed' argument in /etc/fstab. And indeed, when you suppress that argument, the /etc/fstab is no longer overwritten by fstab-sync

Thanks again,
dasch
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
removable usb storage drive (memory stick) christel Linux - Newbie 7 11-17-2006 03:18 AM
How do you mnt an external USB drive? Neb Linux - Hardware 1 05-12-2005 03:29 PM
External usb 2 hard drive access hangs !!! alxp Linux - Hardware 0 09-30-2004 07:44 AM
/mnt access denied zaxtrax Mandriva 1 07-22-2004 06:54 AM
access denied to /mnt/zip as user subjazz Mandriva 8 06-24-2004 09:46 PM


All times are GMT -5. The time now is 01:16 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