Results 1 to 10 of 10

Thread: USB, Read only

  1. #1
    Join Date
    Mar 2013
    Beans
    3

    USB, Read only

    Hello.
    Until a few days ago my usb was working perfectly. However recently it has refued to allow me access or to see its files with its explanation being that it is a read only file system. Is there a way to fix this without having to reformat?

  2. #2
    Join Date
    Jun 2012
    Location
    Hanoi
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: USB, Read only

    I don't know real problem but sometimes, my USB has similar problem. Suddenly, USB' files and folders are changed to read-only so I can't copy any things to USB. Then I reject USB and put it again. It done! I only have the experience for you.

  3. #3
    Join Date
    Jun 2008
    Location
    Across The Pond
    Beans
    756
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: USB, Read only

    I had this problem awhile back, it happened after using the USB stick to look at some files with a Windows computer. After that it was read and write in Windows, but read only with Ubuntu. Never did figure it out so I hope you get a helpful answer for this.
    PopularPages, a useful index of the most frequently accessed pages in the Community Help Wiki.

    "Everybody is ignorant, only on different subjects." Will Rogers

  4. #4
    Join Date
    Nov 2006
    Location
    Valladolid - Spain
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: USB, Read only

    For a read-only USB try this:

    Plug in the device and wait about 5 seconds

    run in a terminal

    dmesg | tail

    If you see something like this:
    FAT: Filesystem panic (dev sdh)
    fat_get_cluster: invalid cluster chain (i_pos 0)
    File system has been set read-only, then you probably have a munged file system. Make a note of the device name.

    run

    sudo dosfsck -av /dev/sdX

    - replace X with your device name

    When it finishes, unmount the device, unplug it, wait a few seconds, then plug it back in. If all went well you should now be back to rw mode. Check the device and make sure there are no .fsk files on the drive. If there are, just delete them.

  5. #5
    Join Date
    Mar 2013
    Beans
    3

    Re: USB, Read only

    I entered the top command and got this:

    james@james-desktop:~$ dmesg | tail
    [30039.312215] sd 7:0:0:0: Attached scsi generic sg2 type 0
    [30039.313534] sd 7:0:0:0: [sdb] 62530624 512-byte logical blocks: (32.0 GB/29.8 GiB)
    [30039.314735] sd 7:0:0:0: [sdb] Write Protect is off
    [30039.314739] sd 7:0:0:0: [sdb] Mode Sense: 43 00 00 00
    [30039.315480] sd 7:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [30039.326945] sdb: sdb1
    [30039.330015] sd 7:0:0:0: [sdb] Attached SCSI removable disk
    [30040.074863] FAT-fs (sdb1): error, fat_get_cluster: invalid cluster chain (i_pos 0)
    [30040.074866] FAT-fs (sdb1): Filesystem has been set read-only
    [30040.079813] FAT-fs (sdb1): error, fat_get_cluster: invalid cluster chain (i_pos 0)

  6. #6
    Join Date
    Nov 2006
    Location
    Valladolid - Spain
    Beans
    Hidden!
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: USB, Read only

    Now run in a terminal:

    sudo dosfsck -av /dev/sdX

    - replace X with your device name (sdb in your case)

    When it finishes, unmount the device, unplug it, wait a few seconds, then plug it back in. If all went well you should now be back to rw mode. Check the device and make sure there are no .fsk files on the drive. If there are, just delete them.

  7. #7
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    7,028

    Re: USB, Read only

    It might also be possible to use
    Code:
    chkdsk /f
    in Windows to repair the FAT32 file system, or use what is probably a GUI frontend to chkdsk in newer versions of Windows.

    It is a good idea to use Windows tools to repair Windows file systems (FAT32 and NTFS).

  8. #8
    Join Date
    Mar 2013
    Beans
    3

    Re: USB, Read only

    I managed to fix it by repairing it on a computer at my university. Thanks for the help everyone.

  9. #9
    Join Date
    Oct 2007
    Beans
    1,748

    Re: USB, Read only

    To avoid, be sure that you eject the device before removing, rather than just yanking it out before you go.

  10. #10
    Join Date
    Nov 2010
    Location
    India
    Beans
    4,827
    Distro
    Ubuntu Development Release

    Re: USB, Read only

    Quote Originally Posted by unluckyclover View Post
    I managed to fix it by repairing it on a computer at my university. Thanks for the help everyone.
    We are very much glad that you have solved your issue and now please mark your thread as solved from thread tools.
    Raja

    రాజ శేఖర్ రెడ్డి

Tags for this Thread

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
  •