removable hdd permissions

Asked by mickeyd1965 on 2009-10-21

Hi,
I am using ubuntu 9.04 and have a HDD dock. I have created an EXT4 partition. I tried to write to the drive. It told me that root was the owner and that i did not have permission. How do i change the permission of this external HDD. Did i miss a step when creating the partition?

thank you.
Lance

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
mickeyd1965
Solved:
2009-10-21
Last query:
2009-10-21
Last reply:
2009-10-21
Cristi Nistor (cristi-nistor) said : #1

You can change the owner of the media device by using the following command in a terminal:

sudo chown -R yourusername /media/mountpoint

Using sudo fdisk -l will list the devices as they are mounted and you'll see your external HDD by it's device name (something like /dev/hdb) and if your username is john you should type the command: "sudo chown -R john /dev/hdb" and you'll have read/write access to that device.

Good luck.

mickeyd1965 (mickeyd1965) said : #2

that did the job.
thanks