Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: change permissions on ext3 external hard drive

  1. #1
    Join Date
    Jun 2009
    Location
    Edinburgh, Scotland
    Beans
    545
    Distro
    Ubuntu 12.04 Precise Pangolin

    change permissions on ext3 external hard drive

    I just bought a 1 TB WD external hard drive, and because I'm going to be using it exclusively with my Linux systems, I formatted it as ext3. However, I can't write to it. I don't want it mounted automatically, because I'm using it as a removable usb drive.

    It mounts automatically, but I can only write to it as root. How can I change its file permissions to allow all users to write to it? I don't want to have to use "gksudo nautilus" every time; that's a pain and a security risk I don't want to make. Thanks!

  2. #2
    Join Date
    Oct 2007
    Location
    Maryland
    Beans
    413
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: change permissions on ext3 external hard drive

    this is about the file fstab which you can use to do what you want

    this is an article all about permissons

  3. #3
    Join Date
    Jun 2009
    Location
    Edinburgh, Scotland
    Beans
    545
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: change permissions on ext3 external hard drive

    Quote Originally Posted by skatinjj View Post
    this is about the file fstab which you can use to do what you want
    Will /etc/fstab allow me to automatically mount the drive for all users but not at boot time? This drive will never be attached to my computer at boot, and according to the first article

    Filesystems that are described in /etc/fstab are typically mounted when the computer is booted...

  4. #4
    Join Date
    May 2007
    Location
    México
    Beans
    980
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: change permissions on ext3 external hard drive

    No worries, if you have a fstab entry and the HD is not connected it will just pass it and keep going through the other lines. However, you can add the noauto option to the entry so it won't try to mount the drive at boot up.
    conky gui: thread, web site

  5. #5
    Join Date
    Jun 2009
    Location
    Edinburgh, Scotland
    Beans
    545
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: change permissions on ext3 external hard drive

    I added this to /etc/fstab

    Code:
    UUID="d1afc604-9bc4-4aa5-a085-27a2367b350c /media/MyBook noauto,rw,user,relatime    0    2
    but when I insert the drive, I still can only write to it as sudo. How can I change this? I can't run gksudo nautilus every time I want to write to the device. Thanks!
    Last edited by pythonscript; September 28th, 2009 at 05:57 PM.

  6. #6
    Join Date
    Jun 2009
    Location
    Edinburgh, Scotland
    Beans
    545
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: serious problem with permissions on ext3 external hard drive

    Can anyone help me with this?! I'm desperate to get this working so I can actually back up data to this drive! I changed my /etc/fstab to this:

    UUID="d1afc604-9bc4-4aa5-a085-27a2367b350c /media/MyBook ext3 auto,rw,user,relatime 0 2
    I didn't want to use auto, because the drive won't be attached to my computer on boot, but I really need help getting this to work! I have an external NTFS hard drive that works fine, without any /etc/fstab configuration. I would have thought the Linux file system would work better with Linux than the Microsoft file system.

    When I execute
    Code:
    sudo mount -a
    I get the error message
    mount: special device UUID="d1afc604-9bc4-4aa5-a085-27a2367b350c does not exist
    I'd really appreciate any help! I need to get this working!
    Last edited by pythonscript; September 28th, 2009 at 08:43 PM.

  7. #7
    Join Date
    May 2007
    Location
    México
    Beans
    980
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: change permissions on ext3 external hard drive

    Quote Originally Posted by pythonscript View Post
    but when I insert the drive, I still can only write to it as sudo. How can I change this? I can't run gksudo nautilus every time I want to write to the device. Thanks!
    You have to change the permissions of the mount point, /media/MyBook, with the chmod command.

    If its not going to be always attached, then don't write a fstab entry. Just plug and unplug as if it were a small USB flash drive and it should be auto-detected and auto-mounted.
    conky gui: thread, web site

  8. #8
    Join Date
    Jun 2009
    Location
    Edinburgh, Scotland
    Beans
    545
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: change permissions on ext3 external hard drive

    Quote Originally Posted by Diabolis View Post
    You have to change the permissions of the mount point, /media/MyBook, with the chmod command.

    If its not going to be always attached, then don't write a fstab entry. Just plug and unplug as if it were a small USB flash drive and it should be auto-detected and auto-mounted.
    Ok, I ran

    Code:
    sudo chmod 777 /media/MyBook/
    but now when I insert the drive, it doesn't even show up on the desktop. What's happening here? Did I apply the wrong permissions?

  9. #9
    Join Date
    Jun 2009
    Location
    Edinburgh, Scotland
    Beans
    545
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: change permissions on ext3 external hard drive

    The drive won't mount automatically in ubuntu anymore! Can anyone please tell me how I can fix this?

  10. #10
    Join Date
    May 2007
    Location
    México
    Beans
    980
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: change permissions on ext3 external hard drive

    List the contents of the foler like this:
    Code:
    ls -l /media/MyBook
    To verify that is not mounted and that the permissions are right.
    conky gui: thread, web site

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •