Find the answer to your Linux question:
Results 1 to 2 of 2
I am wondering if it is possible to change the permissions on a removable hard drive (usb). They are set to read-only and I would like to be able to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2004
    Posts
    18

    removable device permissions


    I am wondering if it is possible to change the permissions on a removable hard drive (usb). They are set to read-only and I would like to be able to write to it also. I have tried using chmod but that gives an error saying it is read-only. I need this to do backups, hence the write permission.

    Any help would be great.

    Thanks,

    Dennis

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    You need to set the umask as an option in your mount statement. The easiest way to do this is with an entry in your /etc/fstab like:

    Code:
    /dev/sda1               /mnt/usb        vfat            users,noauto,rw,exec,umask=033          0 0
    Replace /dev/sda1 with the device that the HDD shows up as.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

Posting Permissions

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