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-24-2008, 10:00 AM   #1
jsteegh
LQ Newbie
 
Registered: Feb 2006
Location: The Netherlands
Distribution: Slackware, SuSe, eeeXubuntu
Posts: 14

Rep: Reputation: 0
mounting usb external harddrive


Hello,

I've got a permission problem with my usb external hd.

The usb harddrive is a 320 gb one and I partitioned 100 gb in vfat and the rest in ext3 with the suse partioner. When I connect the usb harddrive both partitions are automounted and both are excessible. However one (the vfat partition) is mounted as the normal user and the other (the ext3 partition) is mounted as root. And the problem is ofcourse that I can't do anything in the ext3 partition because it is mounted as root.

How can I solve this problem. By the way this problem occurs on all my linux systems, so I don't think the problem lies with the way the usb drive is mounted. I think it has to do with the way the partition is partitioned (fstab etc). But I don't know how to solve it.

Thanks.
Justin
 
Old 04-24-2008, 10:14 AM   #2
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
After it is mounted as root open a terminal

$ df -h

try to find the mount point of ext3 (should be approx. (320 - 100 = 220 GB)
Assume it is /media/disk1
Now login as root:

$ chown -R user_name:user_group /media/disk1

Now unmount it and remove/unplug the usb disk.

In future, user_name can write in the disk/ext3
 
Old 04-24-2008, 02:12 PM   #3
jsteegh
LQ Newbie
 
Registered: Feb 2006
Location: The Netherlands
Distribution: Slackware, SuSe, eeeXubuntu
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you,

It works perfectly.

Only one more question. How would I solve this when I wouldn't have the root passwd? For instance when I would use the usb drive at school?

Could the problem have something to do with the way the drive is partitioned?

Thanks,
Justin
 
Old 04-25-2008, 03:15 PM   #4
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
A bit complicated.

You should have the same user id and group id in your home pc as it is your school. (I mean user id not username)

In school:
$ id

note the details and change the same in your home PC.
 
  


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
Can detect my usb external harddrive stefane321 Linux - Hardware 9 07-28-2007 12:15 PM
Encrypted usb external harddrive Ephracis Linux - Security 2 11-10-2005 01:20 PM
USB External harddrive ashley75 Linux - General 1 10-28-2005 11:54 AM
USB 2.0 external Harddrive Problems Lars09002 Linux - Hardware 0 05-05-2005 09:45 AM
USB External Harddrive (error -71) vexer Linux - Hardware 2 01-17-2005 03:40 PM


All times are GMT -5. The time now is 06:08 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration