LinuxQuestions.org
Visit Jeremy's Blog.
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-16-2007, 08:35 AM   #1
jerm1701
Member
 
Registered: Nov 2004
Location: Wisconsin
Distribution: Mandriva 2007
Posts: 94

Rep: Reputation: 15
On Mounting USB Hard Drives


I have a Western Digital USB, external hard drive running Mandriva '07. When I plug it in, it automounts as /mnt/removable with permissions of 775 and ownership of user:root. I can read and write to it no prob. When I restart the computer, it doesn't automatically mount the USB drive, so I thought I'd put a line in /etc/fstab to make sure it did. That's when the problems started.

First of all, it doesn't always show up as /dev/sda1, so I tried to mount by the UUID, but according to vol_id, the UUID is only 8 digits long, rather than the standard 16, and so

mount UUID=xxxx-xxxx /mnt/removable

returns an error about an invalid UUID. Same thing happens with the -L options, b/c the label contains a space in it (My Book). That's my first question. Can I change the UUID or label or is there another way to always ensure you're mounting the same device?

Second, and even more odd, when I do mount using

mount /dev/sda1 /mnt/removable

it mounts with permissions of 744 root:root, so only root can read/write. If I chown, I get an error that saying that operation can't be done. chmod doesn't give an error, but it also doesn't change the permissions. That's my second question. How can manually mount the drive with the correct user and perms?
 
Old 04-17-2007, 01:02 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Removable USB disks seem to cause a few problems of this type. I don't know if there is a standardised way to deal with it. Here is a page about a similar problem, with the added complication of trying to boot off a USB drive:

http://www.nslu2-linux.org/wiki/HowTo/MountDisksByLabel


Hopefully that will help with the 1st question.

I don't know the answer to the second - I guess it would be in the man pages for mount and fstab somewhere.
 
Old 04-17-2007, 01:24 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
You could try using udevinfo to check the uuid.

The Mandriva partitioner may allow you to simply relabel a partition. If not, and it is a fat32 drive, you may be able to use the mtools' "mlabel" to label the partition. Use minfo first to double check which msdos style device it sees the partition as. I tried this to label a usb pendrive, and then used hal-device to check that the label entry was changed.
 
  


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
Mounting two hard drives dcshoecousa07 Linux - Hardware 1 12-30-2005 02:04 PM
Mounting Hard Drives Greebo Linux - Hardware 14 11-29-2005 04:53 PM
mounting hard drives sturgeonman Linux - Newbie 13 05-31-2004 09:13 AM
mounting hard drives deathl Linux - Hardware 3 01-16-2004 01:17 AM
Mounting Hard Drives Q12321 Linux - Newbie 5 11-26-2003 08:50 PM

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

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