2

I hooked up my External hard drive and it won't let me write new files to it, saying permission denied, and nothing is selectable on the permissions tab, saying on the bottom, You are not the owner.

How do I change the permissions? I'm using Ubuntu 9.10.

quack quixote
  • 42,186
  • 14
  • 105
  • 129
  • 1
    The question is not complete, because it doesn't state what filesystem is on the external hard drive. – geek Feb 07 '10 at 06:08
  • 1
    i'm reasonably sure this has been asked & answered before, but am not finding an exact duplicate. several related questions include the right commands, but are out of context for this question. in particular this one is almost the same question but not well-answered (yet): http://superuser.com/questions/85813/directories-permisions-for-automounted-usb-hard-drive-in-ubuntu-9-10 ... others: http://superuser.com/questions/79813 .. http://superuser.com/questions/86685 .. http://superuser.com/questions/87062 – quack quixote Feb 07 '10 at 07:17

4 Answers4

1

Ubuntu allows you to access removable drives, but I have a USB 2.0 External Hard Disk that says it is NOT removable (thanks, Iomega.) You may be in the same boat here. If the hard drive doesn't show up as removable you're going to need to edit /etc/fstab to add a mount point for it, or mount it from the command line.

If you need to use it once, just mount it as root (with a reasonably unrestricted umask, say 000).

If you need to use it multiple times, eeither /mnt or /media is an acceptable place. Once you add the fstab entry (do it as root, and back the file up first) you'll be good to go.

Another option: If the file system is actually mounted read-write, use root to make a folder on the drive with the appropriate permissions, and have your user accounts write to that folder.

Broam
  • 3,984
  • 18
  • 20
0

You're looking for the chown command. You'll need to use sudo to run the command, as it will require administrator privileges on files you're not the owner of.

ceejayoz
  • 2,282
  • 19
  • 17
  • this will only help if said external drive is formatted ext2 (or another filesystem that supports Unix-style ownership). will *not* help for FAT or NTFS filesystems. for those, a mount option is needed. – quack quixote Feb 07 '10 at 07:19
0

Maybe the disk is mounted read-only?

Right click on the mount on your desktop, and see if there's an option to remount read-write. Otherwise see if you can mount it read-write from the command-line.

Douglas Leeder
  • 1,485
  • 9
  • 13
0

Just install ntfs-3g:

sudo apt-get install ntfs-3g
warhansen
  • 389
  • 1
  • 11