Find the answer to your Linux question:
Results 1 to 3 of 3
I have a USB key and an MP3 player. I've used the Key before on Linux, and pulled things off, but I've just now realized that I am unable to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252

    Can't Write to USB Devices...


    I have a USB key and an MP3 player. I've used the Key before on Linux, and pulled things off, but I've just now realized that I am unable to write to it. When I mount it, ls shows me its permissions as:

    drwxr--r--

    When I attempt to remove a file on my USB key, I get the error:

    rm: cannot remove `adblock.txt': Read-only file system

    I'm doing this through the terminal as root (thus I should have write permissions), and it still won't work. I also modprobed for the sd_mod module (something about writing to SCSI drives), which worked, but I still can't write to the key.

    My dmesg identifies the device as:

    Vendor: LEXAR Model: DIGITAL FILM Rev: /W1.
    Type: Direct-Access ANSI SCSI revision: 02

    If anyone has any suggestions for getting this to work, I'd be grateful.

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    do you have rw set in the fstab line for the key?

    for mounting/unmounting etc flash devices look here http://www.linuxforums.org/tutorials...ial-26510.html

    you could also try resetting the permissions with chmod 700, or chmod 770.

    hope this helps
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Alright, the problem was that instead of "rw", I had "ro" set in the fstab line. I changed that, and it's fixed. Thanks.

  4. $spacer_open
    $spacer_close

Posting Permissions

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