USB Flash Drive: Read-only filesystem

Hi
I'm trying to format a usb flash drive using various tools but they all say that it's a read-only file system. The drive is not mounted and I'm running as root. If I try to mount the drive like so with the command
sudo mount -o rw,users /dev/sdc1 /media/myflashdrive
I don't get any errors and when I go to /media/myflashdrive I can see and edit all the files (only as root however). However, any changes are not persistent. For example, if I delete any files or run
sudo rm -rf /media/myflashdrive/*
it seems to work and ls doesn't show anything, but then if a reopen the drive, the files are back.
I've tried this on other computers and even in Windows but nothing can put a scratch on it. I heard something about there being a certain bit in the first sector which can be flipped to make a drive read-only but I think it only applied to Windows.
Any advice would be greatly appreciated, but if I can't format the drive I'll probably use some thermite to toast the data on it.

Hmm. I wasn't very clear: my drive was usable originally but it stopped working while I was using Windows (I just plugged it in one day and it was read-only) and now that I use Linux I thought I'd try to fix it (I have been told that linux can do anything but I'm not so sure). I suppose it could just be a physical error on the drive but it's not got any marks or anything.
Just a thought here, if it was a physical problem, would it be possible to 'reset' it with an electromagnet or by shorting it out or would this just frazzle the chip? Maybe not the right forums for that kind of question.
Last edited by JJ.Eastwood (2011-05-26 19:50:56)

Similar Messages

  • USB flash drive 'Read only' problem

    Hi everyone,
    I have a Trescend USB flash drive 16 Gb, and when I plug it into my desktop (using windows 7 64 bits) I'm able to write or read any file I want. When I plug it into my mid-2010 MacBook Pro 15' w/ lastest version of OS X Lion, the permission are 'Read Only' and I can't seem to be able to change the permission.
    How am I suppose to change permission on my Macbook ?
    Thanks in advance,
    Cheers,
    François

    I installed it and got this error : now my Macbook wont even see the flash drive...

  • Usb flash drive read only problem [solved]

    Hi, im using spacefm, i have udevil and udisks2 installed, i can read my USB flash drive but i cannot delete files, i tried gparted that use spacefm as well and i can delete files from the usb flash drive with no problems, any ideas?
    i solved i installed ntfs-3g and i can delete files again
    thanks
    Last edited by adcdam (2013-04-08 01:01:22)

    I installed it and got this error : now my Macbook wont even see the flash drive...

  • Usb stick is "READ ONLY FILESYSTEM"

    hello.
    i have a problem with my USB-Stick. since i gave it to a friend it does no longer work. unix says it is a "READ-ONLY FILESYSTEM". anny sugestions how i could change that?
    it was not possible to reformat it by disk utility. i also tried to format it on a windows machine - didn´t work... any ideas?
    best reagards
    sepoe

    Monkeymeetsrobot's suggestion is the first thing I would have suggested myself -- your original post made no mention of no write-lock switch -- many flash drives have them -- one of mine does and when locked would exhibit that behavior and the other one that doesn't, it still works properly.
    That said, now that we know that yours doesn't have a write-lock switch, maybe you could try this:
    It's a long shot, but what happens when you launch Terminal and type
    ls -ld /Volumes/{usbStickName}?
    If the permissions are not drwxrwxrwx, then, perhaps, from an admin-privileged account, you could
    sudo chmod 777 /Volumes/{usbStickName}
    and with any luck, you will have write privileges again.
    Something to try....no guarantees....
    Short of that, you may be giving your friend a slightly used usb flash drive as a Christmas present.
    (if this solves your problem, or is actually helpful towards arriving at a solution to your problem, please consider marking this reply as "helpful" or "solved," in addition to, if applicable, marking this question as "answered")

  • Install on SDCard/USB stick, toggle read-only filesystem - possible?

    This is something I thought about while installing Arch on an SD card earlier. You know these small switches on some SD cards that make them read-only, right?
    Would it be possible to have a setup where Archlinux is installed on a rewritable storage device like an USB Stick or an SD card, where one mode of operation would be to use it like a regular, persisting Arch install (with writeable filesystem). The second mode would be to use it similar to a Live CD, not persisting any data on the storage device and using RAM instead (mounting the root filesystem as read-only).
    Basically, you could boot into regular mode (perhaps by choosing a seperate entry in GRUB), change configurations, update packages, etc. Then you reboot into read-only mode and use it as a Live CD with any changes to the filesystem stored only in RAM. This could be combined with system encryption to provide a secure and portable Arch installation that can be kept up-to date and simply by rebooting, you have a protected, volatile environment similar to a Live CD.
    Is something like that possible? Has it been done already?

    Comment on the "why" for Flash Device....quiet operation, less power required, faster performance and reduced size.
    Faster boot time is also possible with raid applied.
    As previously stated, running all in ram doesn't provide any performance improvement if the system has at least 2GB of ram.  Thus the use of swap is not required with that much ram.
    This principle also applies to Flash Devices which have algortithms controlling the writes across the entire card capacity such that larger capacity increases lifetime expectancy.
    Copy- on- write is also proposed for flash devices which reduces the process steps for writing to flash.
    In my experience with running-in-ram with CTKArch "live" system, I found not much to endorse using that mode.  A negative of good proportion is the copy-to-ram loading time , which cannot be avoided.
    Basically, faster ram is the best approach for performance enhancement in all systems.
    Thus, there are herein some reasons for using flash in an arch booting system whether "live" or conventional or raid based.
    My raid0 bootable system was outlined in previous post and am using it now.  It is not a USB connected bus arrangement which inherently limits performance.
    I find Compact Flash in UDMA or true IDE mode to provide good performance speed of 90mb/s read and 25mb/s write to be a fine alternative to hard drives.  In raid0 read speed is doubled.  Good reason for flash devices but not in usb mode.

  • FireWire External Drive - Read Only Filesystem

    I have a strange issue that I have not been able to resolve.  I have an external hard drive connected to my iMac that has a read only file system.  I have used it for years without issue.  It switched to read only just recently.
    Here are the details:
    27-inch, Mid 2011 iMac
    Processor  2.7 GHz Intel Core i5
    Memory  12 GB 1333 MHz DDR3
    Graphics  AMD Radeon HD 6770M 512 MB
    Software  OS X 10.8.4 (12E55)
    The drive in question:
    Mount Point :          /Volumes/DATA
    Capacity : 2 TB (2,000,054,960,128 Bytes)
    Format : Mac OS Extended
    Available : 450.83 GB (450,826,641,408 Bytes)
    Owners Enabled : No
    Used : 1.55 TB (1,549,228,318,720 Bytes)
    Number of Folders : 15,989
    Number of Files : 84,118
    As you can see, everything is set to Read & Write.  However when I try to remove a file, I get:
    $ rm -f test.file
    rm: test.file: Read-only file system
    If I try to write a file I get:
    $ touch test.file
    touch: test.file: Read-only file system
    I have run the First Aid utilities and everything checks out OK:
    The volume DATA appears to be OK.
    Rebooting does not fix the issue either.  After searching here and the interwebs, I haven't found a solution.  Only references to FAT/NTFS formatted drives.
    Is there anything else I can do that I missed?

    Thank you Linc & MrJavaDeveloper!
    I'm not throwing these suggestions out the window, but they would also be exhiiting some other symptoms too.  With indexing issues, it shouldn't impact the inode or anything dealing with the filesystem.
    The good thing is that the data is all still good and is readable.
    First Aid is still the name of the tab in Disk Utility :-)
    Regardless, I got impatient and I didn't have a spare drive to copy the data off of it so that I can rebuild this drive.  So I nuked it and recreated the partition.  Now I have to wait a couple of weeks for my restore from CrashPlan to finish :-P.

  • Why does my Macbook Pro make every flash drive read only?

    Anybody else having this problem? I can write to a flash drive once on my Macbook Pro. After I remove it, it becomes read-only, but only on my Macbook (I still have read/write access on other computers). Happens with every flash drive, regardless of brand or size. File systems are all FAT 32.

    I'd make a sound too if i was put into a bag haha.
    Only thing i could think of it it has a mind of its own or your putting your computer to sleep. Try shutting down your mac before placing in your bag and see if that changes things.

  • Make flash drive read only with no copying

    Here is the Situation. I have a 2h video of a high school play that i am editing and selling but with final cut you can only export 480 p video on dvd so i am going to sell hd digital copies on flash drives my question is can i make it so that the flash drive are read only and copy protected so it can't be distributed can i format  the flahs drive insuch a way  a way that prevents copying?

    jfoppes wrote:
    …  can i format  the flahs drive insuch a way  a way that prevents copying?
    technicallly, to playback you have to 'copy' content (from stick/disk/whatever to device) ....
    So, the harder you make it to 'copy protect' your content, the more inconvenient it gets for your paying customers!
    for example, on commercial DVDs I'm 'forced' to watch minutes of promos and 'legal advice', talking to me like I'm a 1st degree suspect No fun! And: When I like to watch/listen on diff. devices. again trouble to 'rip' it (anyone remembering the first slogan for iTunes? "Rip.Mix.Burn." Holy innocence ........... LOL
    Forget the few copy-cats. Convince by quality (e.g. spelling ) .
    Deliver an excellent product, perhaps bundled with some 'extras' (a nice designed box, with pics/t-shirt/memorabilia/…)  And, hey - who copies a school-play????

  • USB Flash drive will only work on the Mac

    I have a Toshiba 32 GB flash drive and tried to copy music to it. The music plays thru my Mac but when I put the drive into my Subaru or Sony amplifier I get the message that the drive is unrecognized. I tried to partition it with the same results.  Is there a certain partition to use? I have tried all that were offered in Disc Utility.

    From a subaru forum "Zero problems using 16gb SanDisk Cruzer USB 2.0 Flash drives in whatever head unit is in a non-nav"
    It may depends what head unit you have, same for the sony amplifier, many units cannot read over 8 or 16gb, try a different / smaller usb and give it a go.  Also maybe try formatting your stick at work or a friends computer to fat16

  • ExFat Flash Drive Read Only

    I let a friend borrow my 64G Flash Drive and he returned it with a bunch of unwanted files.  At first I tried deleting them but all I got was a dull "beep" so I figured I'd just erase the whole thing and reformat.  Opened disk utility and it was recognized but the options to erase are greyed out.  Looked at the drive's info and it says "Read Only". 
    I have Paragon's NTSF driver installed thinking that would cure the erase problem but that did nothing.  I know no one with a Windows machine so I can't ask someone else to reformat the drive for me.
    How do I get the Flash Drive out of read only, erase and reformat to Mac OS Extended (Journaled)?

    I don't know anyone who uses Windows and took it to a Coffee House to ask if someone there would reformat it for me.  Most of the time I got a 'no' fearing it may harm their systems (???) and those willing to had no idea how to perform a reformat.  I figured it couldn't be that difficult on a Windows machine, there must be a disk utility somewhere on the system, but they wouldn't let me look or even try.
    I did contact the manufacturer and was told the drive should work under OS X but they have never tested it and would not allow me to return it because the purchase date was beyond the 60-day warranty.  I did tell them that I would alert the Mac community about the problem and suggest Mac users avoid PNY flash drives or other drives.
    Because it was a 64G flash drive I paid a handsome price for it from Staples.  I returned it to Staples and asked for my money back but again, according to my receipt, it was beyond their warranty period.  Of course, they took me to the locked flash drive cabinet and suggested I purchase another brand but I was ticked and promised I would not buy another item from them.
    I've asked the (former) friend who borrowed it to replace it with a different brand and mailed it to him because it contains all of his files.  He has not responded thus far and I doubt that he ever will.  Its too bad.  I'll never loan another Flash Drive to anyone again, good friend or not. 

  • External usb hard drive - read only

    I connected an external hard drive to my macbook in hopes I would be able to use it for storage. I shows up and I can parse through all the files. When I try to add a file to a folder, it doesnt let me. Its says READ ONLY. I have never set any permissions. Any help on how I can fix this issue?

    Select the drive on your desktop and hit command+i. This brings up an information panel.
    At the bottom, click the lock and enter an admin username and password. Then, click the plus sign, choose the username you want to give read/write access to and select read/write. Then click the gear icon and select "Apply to enclosed items."
    Cheers.

  • Flash drive read only but in FAT32 format

    I use my flash drive to house my itunes library but recently whenever I try to add a song to my itunes (and thus also copying that file to the drive) I get the error message that I don't have the privilege to copy to the drive. I checked to see what format it was and if that was the problem but it's still FAT32, as it always has been. Any insights?

    does the flash drive have a hardware lock? some flash drives do. make sure it's not on. also, check that the folder you are trying to copy to is not locked. select that folder in finder and enter command+i. see if the locked box is checked in the popup.

  • Copying files from iMac to USB flash drives

    I am having problems copying files from my iMac computer to USB flash drives. Sometimes, I get the error message: "Sorry the operation could not be completed because an unexpected error occurred (Error Code -50)."
    How can I solve this problem?
    This error message does not happen everytime but rather occasionally. Most of the files I am trying to copy to my USB flash drives are MS Word documents. I have tried using various brands of flash drive, but I still get this error message.
    I use my USB flash drives for both Mac and Windows OS computers. For my 2GB Kingston Data Traveller flash drive, I checked its product datasheet on the Kingston website, and it says that it is compatible with both Macintosh and Windows OS, and that I can use it for cross-platform PC/Mac file transfers.
    I also checked the Properties tab for this flash drive, and the File System for the drive is listed as "FAT."

    Hello Stedman:
    I am pretty sure that these files were not open in MS Word when I tried to copy them.
    I only get this error message/code for a handful of MS Word documents; the rest of my MS Word documents were copied successfully to my USB flash drive.

  • HP ENVY TouchSmart 15-j009wm Doesnt read USB Flash Drive After Downgrade to Windows 7

    I Have Downgraded Installed Windows 7 Through Flash Drive But i need help. Windows 7 Doesnt read my Flash Drive anymore? It can read my USB Keyboard but doesnt read USB Flash Drive.  I Have no Internet On The Computer, So that means i cant update my drivers. And i have some drivers in my flash drive i want to install, but i cant.  I have read this: http://h30434.www3.hp.com/t5/Notebook-Operating-Systems-and-Software/HP-ENVY-TouchSmart-15-j040us/td-p/4576592 It doesnt do me any good anymore because i cant acces my drivers from USB 

    Hi: Looking at your other posts it appears you have painted yourself into a corner. Since there is no legacy or auto USB setting in the BIOS, your only option would be to remove the hard drive, put it in a USB to sata notebook hard drive enclosure, plug it into another PC so it can be read, download the applicable drivers you need and copy them to you user profile on the removed hard drive. The service manual, chapter 5 provides the removal and replacement procedures for the hard drive. http://h10032.www1.hp.com/ctg/Manual/c03733656 Reinstall the hard drive, run the drivers, and you should be good to go. These would be the drivers you need for your model... SM bus controller:  Install this first and reboot. http://h20565.www2.hp.com/hpsc/swd/public/detail?swItemId=cp_127691_1 USB3:  Install both of these and reboot. http://h20565.www2.hp.com/hpsc/swd/public/detail?sp4ts.oid=6943835&swItemId=ob_139250_1&swEnvOid=4058 http://h20565.www2.hp.com/hpsc/swd/public/detail?sp4ts.oid=6943835&swItemId=ob_133037_1&swEnvOid=4058  

  • [SOLVED] Strange Hard Drive Errors - Read Only Filesystem?

    Solution: Discard old laptop, buy new laptop
    I have an Acer Aspire 5103WLMi. For about 2 months now, Arch has been running smoothly. Until 2 weeks ago.
    It all started when I tried to install and configure autofs on Arch x86_64. On the next reboot, all manner of errors were printed to the screen, to the effect that the internal hard drive was only being mounted read-only, rendering the system unusable. I tried to find a solution, but there were no references to read-only anywhere; fstab, grub etc. None that I could find.
    I tried reinstalling. However, x86_64 Arch refused to boot properly first time due to the exact same error; and I *know* that I'm configuring everything correctly. I managed (somehow) to coerce i686 Arch to install, and things "work".
    Seemingly out of the blue, during normal operation, all running applications will stop, and spit out error after error to the effect of "Cannot Write to Read Only Filesystem!". Sakura won't load (Input/Output error, apparently), and the only way to shut down the laptop is a hard reset (I can't log in as root or use sudo because it wants to write to the filesystem first, which it obviously can't.
    Now, I'm going to be giving the insides of this laptop a good cleanout this weekend, and I'm in the process of backing up all of my data, but I was wondering if anyone else has come across a similar form of misbehaviour; or (with a bit of luck) some potential solutions?
    This is very peculiar, because there seems to be no reason why the laptop suddenly loses write permissions to the hard drive. Cheers.
    Edit: I think I should point out that my /boot partition is Ext2, and / and /home are Ext3
    Last edited by aphirst (2013-03-27 14:51:38)

    Smartctl gives me the impression it's my Hard Drive:
    SMART Attributes Data Structure revision number: 16
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x000b 100 100 050 Pre-fail Always - 0
    2 Throughput_Performance 0x0005 100 100 050 Pre-fail Offline - 0
    3 Spin_Up_Time 0x0027 100 100 001 Pre-fail Always - 1711
    4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 6194
    5 Reallocated_Sector_Ct 0x0033 100 100 050 Pre-fail Always - 0
    7 Seek_Error_Rate 0x000b 100 100 050 Pre-fail Always - 0
    8 Seek_Time_Performance 0x0005 100 100 050 Pre-fail Offline - 0
    9 Power_On_Hours 0x0032 092 092 000 Old_age Always - 3291
    10 Spin_Retry_Count 0x0033 223 100 030 Pre-fail Always - 0
    12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 1218
    192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 294
    193 Load_Cycle_Count 0x0032 088 088 000 Old_age Always - 123904
    194 Temperature_Celsius 0x0022 100 100 000 Old_age Always - 34 (Lifetime Min/Max 15/62)
    196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
    197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0030 100 100 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 17
    220 Disk_Shift 0x0002 100 100 000 Old_age Always - 118
    222 Loaded_Hours 0x0032 094 094 000 Old_age Always - 2425
    223 Load_Retry_Count 0x0032 100 100 000 Old_age Always - 0
    224 Load_Friction 0x0022 100 100 000 Old_age Always - 0
    226 Load-in_Time 0x0026 100 100 000 Old_age Always - 444
    240 Head_Flying_Hours 0x0001 100 100 001 Pre-fail Offline - 0
    Everything being either Old_age or Pre-fail is not encouraging. Additionally, in the output is what I believe to be records of what caused my strange read-only behaviour:
    Error 19 occurred at disk power-on lifetime: 3287 hours (136 days + 23 hours)
    When the command that caused the error occurred, the device was active or idle.
    After command completion occurred, registers were:
    ER ST SC SN CL CH DH
    84 51 01 11 18 6a e1 Error: ICRC, ABRT 1 sectors at LBA = 0x016a1811 = 23730193
    Commands leading to the command that caused the error were:
    CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
    c8 00 48 c4 17 6a e1 00 04:43:08.023 READ DMA
    c8 00 48 14 e3 69 e1 00 04:43:08.022 READ DMA
    c8 00 a0 5c e2 69 e1 00 04:43:08.010 READ DMA
    c8 00 08 9c e5 69 e1 00 04:43:08.010 READ DMA
    c8 00 20 5c e5 69 e1 00 04:43:08.009 READ DMA
    Could this truly be referring to my problem, since the 'logs' show that the *exact same* error occurred many times.
    Not that this tells me how to fix it...
    Well, if anyone knows if there is a solution, I'd love to know. If the only solution is to ditch the Hard Drive, fair enough. Either way: I'm backing up all of my important data ASAP.
    Cheers.
    Oh, and kclive18, after I noticed that I couldn't get onto my Drive, I reinstalled arch, leaving no trace of /etc/autofs/auto.media.
    Additionally, somehow I have now been able to install Arch x86_64, but the problems still occur...

Maybe you are looking for

  • Fundamental question on etherchannel hashing.

    Folks, I had some very basic questions on the way hashing takes place on Cisco switches connected to each other over a port channel. Considering that 2 links are used between the switch, namely port Gi 0/1 and Gi 0/2. 1) By default I understand that

  • X-fi for notebook won't switch between speakers and headphones

    I have a Dell Studio 537 with the x-fi for notebook card. When inserted, I can hear songs through the headphones and the console correctly says 'headphones'. When I remove the headphone jack, the console switches to 'speakers' but I can't hear anythi

  • Recovery a password protect excel file.

    I have a password protected excel file and now it's corrupted and i can't open it. I tried to open_and_repair feature of excel2010 and different other stuffs, without success. I was wondering if there's a way to remove the password without opening th

  • Resolving an transaction error of posting to expense instead of revenue.

    Hi everyone, We have a client who had created an item with an incorrect Item Group.  Without realizing it, they had already posted the Sales and Delivery transactions for the item.  Once the error was caught, the item was changed back to the correct

  • 9 inch iPad for the iPad artists community

    News about the iPad mini sounds good. But as an iPad artist, the mini might spell the end of a rich pool of iPad artists who favoured the bigger iPad screen for sketches. I hope apple will continue to make and improve the 9 inch iPad for the iPad art