LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-27-2008, 02:46 AM   #1
Ron Brickle
LQ Newbie
 
Registered: Apr 2008
Location: lakes entrance Australia
Distribution: mandriva 2008
Posts: 4

Rep: Reputation: 0
usb hard drive permisions


I have a usb hard drive I have it mounted as /mnt/media but it wont let me in it says permission denied I have tried fixing it but no luck any ideas
regards Ron
I am using mandriva spring 2008

Last edited by Ron Brickle; 04-27-2008 at 02:47 AM.
 
Old 04-27-2008, 05:42 AM   #2
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
can you post:

$ mount
$ ls -l /mnt

Have you formatted it ext3 ?
In general, to avoid this problems it is better to format fat32 :-(

See this:
http://www.linuxquestions.org/questi...ddrive-637532/

Last edited by biophysics; 04-27-2008 at 05:43 AM. Reason: typo
 
Old 04-27-2008, 06:29 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
How was it mounted? What is the filesystem used?

If you have an entry for it in /etc/fstab, and it uses a vfat filesystem, then you can change the ownership by using certain mount options:
Code:
UUID=3B69-1AFD /mnt/xmas       vfat    rw,noauto,nosuid,nodev,noatime,flush,user,uid=jschiwal,gid=jschiwal,fmask=117,dmask=007,utf8,shortname=lower 0 0
This is an entry for a usb pen drive. the "uid=" and "gid=" options change the owner and default group. The "fmask" and "dmask" options change the permissions. Since the "x" bit needs to be set on directories, the dmask value used doesn't mask them. For mass storage devices, it is best not allowing execution of files. The "user" option allows the owner to mount the device without using sudo. For removable drives, using a device name like /dev/sdb1 isn't a good idea because the device assigned to it may be different the next time you use it. You can use "LABEL=" or "UUID=" instead. The "noatime,flush" options are used because it is a pendrive and not a hard disk based device.

If on the other hand the system pops up a dialog asking you if you want to mount it, you may be able to change how it is mounted by going into properties. If you don't want to manually mount the device this may be the better option. I don't use Mandriva & I don't know which desktop you are using.

If you are using KDE, then right click on the disk icon on the desktop and select properties. Click on the Mounting tab. Make sure the "Mount as User" box is clicked.

Last edited by jschiwal; 04-27-2008 at 06:30 AM.
 
Old 04-28-2008, 12:30 AM   #4
Ron Brickle
LQ Newbie
 
Registered: Apr 2008
Location: lakes entrance Australia
Distribution: mandriva 2008
Posts: 4

Original Poster
Rep: Reputation: 0
all fixed thanks for the help
ron
 
Old 04-28-2008, 12:33 AM   #5
Smedley
Registered User
 
Registered: Apr 2008
Distribution: Slackware
Posts: 74

Rep: Reputation: 15
Quote:
Originally Posted by Ron Brickle View Post
all fixed thanks for the help
ron
Let others know how you fixed it so in the future, if someone searches this topic, they will have a solution.

Thanks
 
Old 04-28-2008, 12:40 AM   #6
Ron Brickle
LQ Newbie
 
Registered: Apr 2008
Location: lakes entrance Australia
Distribution: mandriva 2008
Posts: 4

Original Poster
Rep: Reputation: 0
to fix my usb drive I moved my files and formatted drive ntfs rebooted and all is fine
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Debian on USB Hard Drive/USB Jump Drive kushalkoolwal Debian 10 02-26-2009 01:46 PM
Copying files from internal Hard drive to USB 2.0 Hard Drive is NOT Behaving tubatodd Ubuntu 4 02-19-2007 04:32 PM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
XS Drive II external USB hard drive/card reader max74 Linux - Hardware 7 10-21-2003 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:19 AM.

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