2

I've been trying to mount a second hard drive into Ubuntu. I've been following this guide and a few others that are essentially the same. Everything's going fine until I try to add a file or folder to the mounted drive - I'm then getting permissions errors.

The guides I've looked at seem to suggest you only need the correct permissions for the folder you're mounting into (/mnt/sdb) in my case. When the HD isn't mounted to the folder I'm able to write to it, however as soon as I mount to the folder I get an access denied error.

I've tried formating the disk as FAT32 and ext3 (FAT32 would be better so I can access the HD in windows) and I'm getting the same error either way. I've also tried various permissions settings on both the directory I'm mounting to and /dev/sdb1 without any success.

Any help would be appreciated.

1 Answer 1

1

Are you setting the permissions after you mount the drive?

When you mount a drive into a directory, that directory's permission bits are changed to reflect the permissions of the drive's root directory.

The permissions of the real directory (and any contents of it) are hidden until you unmount it again.

1
  • For some reason I was setting the permissions before mounting the drive. I'm not sure why as that's what the order was in the guide I was following. Thanks for the help!
    – splatio
    Feb 19, 2012 at 17:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .