[Solved] Canot format MicroSD. File system is read-only

I formatted it for my special needs some time ago using fdisk.
Don't remember the partition table, but there was 1 fat32 and 1 ext4 partition.
Now I want to format it fat32 clean, but I get the errors.
When I open GParted, it says
GParted wrote:/dev/sdb contains GPT signatures, indicating that it has a GPT table.  However, it does not have a valid fake msdos partition table, as it should.  Perhaps it was corrupted -- possibly by a program that doesn't understand GPT partition tables.  Or perhaps you deleted the GPT table, and are now using an msdos partition table.  Is this a GPT partition table?
If I click yes - it shows partitions, but creating new partition table fails, as it is read-only.
If I click no - it does not show up in the device list.
Here's a picture of the structure of the device.
What also strange, I remember making 1 GiB ext4, and rest fat32. But it shows the opposite.
So I tried formatting it with fdisk
$ fdisk /dev/sdb
o
n
w
fdisk: cannot write disk label: Bad file descriptor
I made sure they are unmounted
umount: /dev/sdb1: not mounted
umount: /dev/sdb2: not mounted
Then I checked the filesystems. The second one appears to be read-only
# fsck /dev/sdb1
fsck from util-linux 2.23.2
fsck.fat 3.0.22 (2013-07-19)
/dev/sdb1: 18 files, 96978/698280 clusters
# fsck /dev/sdb2
fsck from util-linux 2.23.2
e2fsck 1.42.8 (20-Jun-2013)
fsck.ext4: Read-only file system while trying to open /dev/sdb2
Disk write-protected; use the -n option to do a read-only
check of the device.
# fsck -n /dev/sdb2
fsck from util-linux 2.23.2
e2fsck 1.42.8 (20-Jun-2013)
/dev/sdb2: clean, 860/65664 files, 56633/262144 blocks
Tried the zero trick, but failed as well.
# dd if=/dev/zero of=/dev/sdb
dd: failed to open ‘/dev/sdb’: Read-only file system
# dd if=/dev/zero of=/dev/sdb2
dd: failed to open ‘/dev/sdb2’: Read-only file system
Tried to disable the write-protection
# hdparm -r0 /dev/sdb
/dev/sdb:
setting readonly to 0 (off)
readonly = 0 (off)
After that, fdisk still fails to format.
In Windows 8, it mounts only the fat32 part.
diskpart can't erase partition table as well.
Last edited by Doctor Drive (2013-10-09 08:28:13)

Finally I found the solution
MicroSD adapter has a "lock" feature.
When I inserted the adapter, the lock always triggered to locked state.
So I fixed it in unlocked state using the ducktape.
http://kb.sandisk.com/app/answers/detai … -or-locked

Similar Messages

  • Auto-remount of root file system, like read only

    Hello, I'm a newbie compiling kernels, but wanna learn. (I came here bacause i don't know how to solve this or where to find an answer).  I compiled some few... but, in the last days i'm suffering an strange auto-remount of the root fs "/", (remounts like read only) it's temporally fixed using fsck and rebooting. But a time later of reboot, i'm working, and suddenly the same error comes again. it's really disturbing, because force to reboot often.
    I think that is not a physical error. I did not have problems with badblocks. Something creates logical errors, either the auto-remount did
    Surely I have something bad on the kernel, and probably  have more things there than i must.
    On the other hand my /var/log/lastlog is always full of an strange ASCII and i can't see the boot info.
    this is my fstab:
    /dev/sda6 / ext4 noatime 0 1
    /dev/sda3 /home ext3 noatime 0 2
    /dev/sda5 none swap sw 0 0
    /dev/sr0 /media/cdrom auto noauto,ro,user 0 0
    #/dev/fd0 /media/floppy auto noauto 0 0 No hay unidad de disco flsexible
    proc /proc proc defaults 0 0
    shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
    And a summary of my dmesg report
    [ 55.917194] EXT4-fs (sda6): re-mounted. Opts: commit=0
    [10195.993335] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target
    to attach helpers instead.
    [10229.239298] ata1.00: exception Emask 0x0 SAct 0xf SErr 0x0 action 0x0
    [10229.239305] ata1.00: irq_stat 0x40000001
    [10229.239318] ata1.00: cmd 60/80:00:a8:4d:6e/00:00:2d:00:00/40 tag 0 ncq 65536 in
    [10229.239318] res 41/40:80:1e:4e:6e/00:00:2d:00:00/00 Emask 0x409 (media error) <F>
    [10229.239330] ata1.00: cmd 60/20:08:b0:98:bb/00:00:07:00:00/40 tag 1 ncq 16384 in
    [10229.239330] res 41/04:00:1e:4e:6e/00:00:2d:00:00/00 Emask 0x1 (device error)
    [10229.239342] ata1.00: cmd 61/08:10:47:98:c0/00:00:37:00:00/40 tag 2 ncq 4096 out
    [10229.239342] res 41/04:00:1e:4e:6e/00:00:2d:00:00/00 Emask 0x1 (device error)
    [10229.239354] ata1.00: cmd 61/28:18:17:96:21/00:00:38:00:00/40 tag 3 ncq 20480 out
    [10229.239354] res 41/04:00:1e:4e:6e/00:00:2d:00:00/00 Emask 0x1 (device error)
    [10229.243923] ata1.00: configured for UDMA/133
    [10229.243944] sd 0:0:0:0: [sda] Unhandled sense code
    [10229.243948] sd 0:0:0:0: [sda]
    [10229.243951] Result: hostbyte=0x00 driverbyte=0x08
    [10229.243955] sd 0:0:0:0: [sda]
    [10229.243957] Sense Key : 0x3 [current] [descriptor]
    [10229.243963] Descriptor sense data with sense descriptors (in hex):
    [10229.243966] 72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
    [10229.243980] 2d 6e 4e 1e
    [10229.243988] sd 0:0:0:0: [sda]
    [10229.243990] ASC=0x11 ASCQ=0x4
    [10229.243995] sd 0:0:0:0: [sda] CDB:
    [10229.243997] cdb[0]=0x28: 28 00 2d 6e 4d a8 00 00 80 00
    [10229.244156] end_request: I/O error, dev sda, sector 935368775
    [10229.244161] Buffer I/O error on device sda6, logical block 1336321
    [10229.244164] lost page write due to I/O error on sda6
    [10229.244177] sd 0:0:0:0: [sda]
    [10229.244179] Result: hostbyte=0x00 driverbyte=0x08
    [10229.244183] sd 0:0:0:0: [sda]
    [10229.244185] Sense Key : 0xb [current] [descriptor]
    [10229.244189] Descriptor sense data with sense descriptors (in hex):
    [10229.244192] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
    [10229.244206] 2d 6e 4e 1e
    [10229.244213] sd 0:0:0:0: [sda]
    [10229.244215] ASC=0x0 ASCQ=0x0
    [10229.244219] sd 0:0:0:0: [sda] CDB:
    [10229.244221] cdb[0]=0x2a: 2a 00 38 21 96 17 00 00 28 00
    [10229.244233] end_request: I/O error, dev sda, sector 941725207
    [10229.244251] ata1: EH complete
    [10229.244268] JBD2: Detected IO errors while flushing file data on sda6-8
    [10229.244281] Aborting journal on device sda6-8.
    [10229.439264] EXT4-fs error (device sda6): ext4_journal_start_sb:348: Detected aborted journal
    [10229.439272] EXT4-fs (sda6): Remounting filesystem read-only
    [10232.111686] ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0
    [10232.111692] ata1.00: irq_stat 0x40000008
    [10232.111705] ata1.00: cmd 60/08:00:18:4e:6e/00:00:2d:00:00/40 tag 0 ncq 4096 in
    [10232.111705] res 41/40:08:1e:4e:6e/00:00:2d:00:00/00 Emask 0x409 (media error) <F>
    [10232.264635] ata1.00: configured for UDMA/133
    [10232.264653] sd 0:0:0:0: [sda] Unhandled sense code
    [10232.264657] sd 0:0:0:0: [sda]
    [10232.264660] Result: hostbyte=0x00 driverbyte=0x08
    [10232.264664] sd 0:0:0:0: [sda]
    [10232.264666] Sense Key : 0x3 [current] [descriptor]
    [10235.143085] Descriptor sense data with sense descriptors (in hex):
    [10235.143088] 72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
    [10235.143103] 2d 6e 4e 1e
    [10235.143110] sd 0:0:0:0: [sda]
    [10235.143113] ASC=0x11 ASCQ=0x4
    [10235.143117] sd 0:0:0:0: [sda] CDB:
    [10235.143119] cdb[0]=0x28: 28 00 2d 6e 4e 18 00 00 08 00
    [10235.143132] end_request: I/O error, dev sda, sector 762203678
    [10235.143156] ata1: EH complete
    Please, anybody could help me to undesrtand and solve this problem?
    Is it a driver problem?
    Regards

    Your drive must be dying.
    You can use SMART tools to check it.

  • Is it possible to rescue drive files and also format RAW file system into previous NTFS?

    Do you have any suggestion for me to format RAW file system to NTFS and also rescue my remained drive files? These external hard drive files are made for the business presentation in the next Monday. I have prepared them for nearly a week.
    But, this morning, the external hard drive that had held these files became RAW and needed to be formatted. I could not lose them and prepare another week to make these files again. There was no enough time. Please, give me some advice to get them back as
    many as possible. Thank you in advance! 

    RAW file system error will not always indicate a failed or seriously damaged drive. So, do not give up rescuing your drive data easily. Just plunge this RAW drive to you computer again and run drive data recovery software to rescue your
    original data back as much as possible before you format this drive from RAW to NTFS.
    Just open your computer and search for a right data recovery tool to go on.
    Get more data recovery clues here:
    http://blog4mark.blogspot.com/2012/11/convert-raw-to-ntfs-without-data-loss.html
    If you are still suspicious, just search and read more related threads/articles to k now more. 

  • The file may be read only

    Every so often (approximately every one in three times I try to save), I get the message 'The file may be read only, or another user may have it open. Please save the document with a different name or in a different folder'. If I carry on working and then try to save it a few changes later, it sometimes successfully saves the file. Often it takes several attempts, but eventually it does save it. This happens with all my Illustrator files, they aren't read only and another user doesn't have them open. I'm using a trial version of CS5 and Windows 7 on a personal PC (I still have CS4 installed too - I don't know if it's something to do with this). Anyone have any idea what could be causing it?

    It may be that you were using a font temporarily that was located in a directory that was read only or an image that was placed in the fie or another type of art placed in the files that may have the permissions restricted by accident. It could be that the scratch disk contains some sort of file that you are using and it has a restriction on the permissions as well.
    Check to see if there is permissions problem on any of your directories or folders.
    There may also be the possibility if you are e-mailling samples of the file that it is in use or at least your system and ai thinks so.
    But it mostly sounds to me like the scratch disk needs to have the permissions corrected and that after a few attempts you end up clearing the cache so it is no longer using the scratch and then you are able to save it. Now I am not an engineer but this makes sense to me.
    But it may simply be a problem with the settings folder and yiu can try this as well.
    1. Quit Illustrator.
    2. Rename the AIPrefs file (for example, to AIPrefs.old) in the Users/(user)/AppData/Roaming/Adobe/Adobe Illustrator CS5 Settings folder.
    3. Start Illustrator. Illustrator creates a new preferences file.

  • Cant get com.apple.security.files.user-selected.read-only entitlement to work

    Hey I am curious how can I get the .ipa compiled file for iOS to be able to read all the directories on the iPhone?
    I made a file browser but I cant get to the pictures
    I tried adding the entitlements in Flash Builder 4.6 in the descriptor file like this:
    <key>com.apple.security.files.user-selected.read-only</key>
    <true/>
    <key>com.apple.security.assets.movies.read-only</key>
    <true/>
    <key>com.apple.security.assets.pictures.read-only</key>
    <true/>
    in the
      <iPhone>
            <Entitlements>
            <![CDATA[
    I got Push notifications working and accepted in the app store but it can't read the pictures directory when browsing for a file
    I know the app id and stuff is set up right or I wouldnt have been able to get it accepted in the app store.  In the entitlements area of course I have the application identifier set and aps-environment and keychain access groups and whatnot set up right.
    When I try to put the app onto the iPhone with iTunes it just says 'Entitlements are not valid' (does not mention anything about mismatched ids) I can't find anything about how to add this entitlement and I could have sworn I saw a thing that said I can just use the descriptor file to add entitlements in some of the documentation I have it set to use air 3.4
    Is there something I am doing wrong, how do I get apple to just put these entitlements in the mobileprovision file, I cant seem to edit it, if I do I also get an error in itunes that is some hex code...

    Did you ever solve your problem?
    I just transfered my web hosting and e-mail to bluehost. I had some of the same problems you are having. I noticed you have your incoming server set to bluehost.
    Incoming mail server: (SSL) box610.bluehost.com (sever requires authentication which I already have done)
    If bluehost is your server this is what worked for me:
    Account Information
    Account type— POP
    Description—anything you want
    Email Address—in your case would be [email protected]
    Full name—  first and last name
    Incoming server—mail.magnus.com
    User name—[email protected] Notice it is the @ symbol not a +
    password— your password . Remember they are case sensitive
    Outgoing Mail server—select edit smpt server list from the drop down window
    select the + to add a server
    Account Information
    Description—may be left blank
    Server name—mail.magnus.com
    TSL Certificate—None
    Advanced
    Use default ports
    Check  Use SSL
    Authenticate—password
    Username—[email protected]
    passowrd—your password
    Click ok
    In the accounts window
    Outgoing SMTP— select the server you just created.
    Check—use only this server
    Select the Advance tab next to the Mailbox Behaviors
    Check use SSL— it will be port 995
    Authenticate —use password
    Ann

  • New user- all my files are now read only -

    I am using a Dell Inspiron 8600 laptop with Windows XP  and my husband has a Dell Dimesion 4600 desktop.  Two weeks ago I installed a Linksys Compact Wireless-G USB adapter on his computer and then installed a WRT54G v.6 wireless router.  All is working fine for internet connection. Today I discovered all my files are now read only and even when I uncheck the read only box and click apply, then close the file, on re-opening it it is again read only.  Even the files on my external hard drive are now read only. 
    I am backtracking to see where a change was made that was unintended and the wireless router was the last thing I installed.  Is there a connection?  And if so, can someone help me make the necessary changes or tell me where to find out?
    I read through a lot of messages but did not immediately see this situation addressed. 
    Sandra

    seems to be an OS issue , because there is nothing on the router setting that could change the configuration on the computer....try System Restore....can't think of anything else at this point...

  • Could not save as - The file may be read-only or is already open in another application

    Can anyone think of a reason why if I'm working locally on a CS3 Flash .fla on my C: drive that I would get the error:
    Could not save as: C:\Users\John\Desktop\Project_File\ANNUAL REPORT RELEASE\01-19-11\report_stragegy.fla
    The file may be read-only or is already open in another application. Save using a different name, or close the document and try again.
    I'm running Windows 7 Home Premium 64-bit.
    It happens sporadically. I haven't been able to find a reason why this error pops up when saving some of my .fla files!!
    The files are not set to "read only" when I right click on them and choose 'Properties' in the Windows 7.
    I found some somewhat similar situations with saving errors:
    http://board.flashkit.com/board/showthread.php?t=796857
    http://forums.adobe.com/message/2980090?tstart=0
    http://www.actionscript.org/forums/showthread.php3?t=153738
    Thanks

    Sometimes I can save with a different file name. But sometimes I can't and start a new blank document and cut and paste from the one that won't save to the new untitled document.

  • Saving issues: "The file may be read-only" error message

    I do a lot of scanning to pdf and will often have to add a newly scanned page to an existing archived pdf then resave it.
    I have a very consistent workflow and use two screens. The folders that contain the archived files are always on my second screen while I work on the main screen.
    After I have inserted the newly scanned page into the existing pdf very often I get an error message that the file cannot be saved:
    The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder.
    I am the only user, none of files are read-only, and I am certain that the file I am resaving is not selected (I can see that on my second screen).
    Sometimes if I just click on the second screen to another folder it'll let me resave, but other times I have to close Windows Explorer completely.
    I like to avoid renaming files: it's important to that the original filename be retained.
    This seems to be happening a lot more with Acrobat X Pro than it did with version 9. This is highly annoying.
    Any known workarounds?
    dg

    The folders that contain the archived files are always on my second screen
    If in Windows (a Mac user would have to speak to this for that environment) -
    If Windows Explorer is "focused" on the file (i.e., file selected) or has "focus" on the file(s) parent folder/directory you will get the alert dialog.
    Close Windows Explorer or place its focus elsewere.
    Also, if the preview feature is used for files within a folder (or for files in nested sub-folder) you'll experience similar "speed humps" in the work flow path.
    Was not always this way but OS updates (XP, Vista, etc.) appear to have given us some nifty new options that, coincidentally, pose some gotchas.
    Be well...

  • System goes read only, after reboot all is fine for a day or two

    OK, so here's the problem, I got a new PC, all fanless, SSD hard and all.
    Works well for a day or so, then goes read only. For example - I come back from work, type something in the terminal and I get Input/Output Error. I cannot reboot, it says Input/Output Error as well.
    So I hard-reset it, it boots up, everything is fine again for a day or two.
    The HDD is Corsair CSSD-F40GB2, the MB is Gigabyte H55N-USB3, proc i3 540,
    The / and /home are both ext4 mounted with defaults,noatime,discard.
    I tried with/without discard.
    I also tried changing the SATA/power cables - same results.
    I also tried enabling/disabling features in BIOS like DMA/SMART/AHCI/compatibility stuff - same results.
    Here's a dmesg I managed to get (errors are near the end).
    http://pastebin.com/vJfdW90z
    And here's a smartctl -a /dev/sda:
    http://pastebin.com/eQxASEBM
    Any suggestions are welcome. Also is there some diagnostic app for Corsair SSD that I can run and check the drive?
    Cheers.

    Well I don't recall how freshly booted, it was the only time that the system was read-only - giving input/output error to everything but dmesg was working so I saved it all to pastebin.
    The system is a PC so I never tried anything else different from poweroff/reboot (works fine).

  • Project files open in read-only mode

    project files open in read-only mode in ms project 2013.But in the case of MS Project 2007 it opens in READ\WRITE mode .what should i do so that project will opens in READ\WRITE mode by default in MS Project 2013

    In addition to John's excellent reply, I'd add that if you are talking about Project Server, this is by design that the projects in 2013 version open in read-only mode, in order to require an explicit operation to check-out the file. This prevents to have
    many checked out files by mistake.
    See this
    article on my blog.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Cannot save the file may be read only

    Does anyone know how to save a current PDF in Adobe Acrobat X pro if getting "the file may be read only, or another user may have it opened.  Please save document with a different name or in a different folder" windows 7.  The file has not been opened by anyone, and this happens when I amend the document and try and save again.  I have turned off "protected view" within the preferences.  Deselected the file in its folder, and turned off the preview pane in the explorer window.
    Does anyone have any ideas how to get around this?  thank you.

    Chances are it is a problem with the preview being turned on in Explorer. You might try closing Explorer, changing it to a different folder, or turning off the preview (the typical solution).

  • How can display word 2007 document file as a read only on web browser

    hi,
    i want to display word 2007 document file as a read only that means non editable file. At present i am displaying word file by using response object. please help me.
    Thanks,
    Raj

    Hi dear,
    Try with the sample code which has given in below link....
    http://forums.devshed.com/java-help-9/need-help-reading-word-document-with-jsp-20316.html
    ---Vidya
    Message was edited by:
    ragas

  • Open powerpoint encrypted files that are read only

    I'm trying to open a powerpoint encrypted file that is read only with keynote version 5.1.1.
    however keep getting the error message it must first be saved un encrypted.
    is there a way to mark the file read only so keynote will open it like powerpoint does

    thanks for the info, but not possible to get the file with the passowrd removed.
    I was hoping keynote would be able to still read it like powerpoint is able to but I guess that feature doesn't exist in keynote.
    Gues will just have to find a pc with powerpoint then.

  • Set sharing on system to read only now computer wlll not boot up

    set sharing on system to read only now computer wlll not boot up

    Hello skiboat2, 
    Because the permissions have been changed, you will need to put them back to what they were before. One of the ways to do that is to reinstall your OS X to make sure that everything permission wise gets put back to what it needs to be to work properly. Based of to the operating system that you say you have, I have provided the steps for reinstalling Snow Leopard. When doing this, it does not overwrite your personal data; it only touches the operating system. 
    Mac OS X 10.6: Reinstalling Mac OS X
    http://support.apple.com/kb/PH6606
    Regards,
    -Norm G.  

  • In RH7html, files are suddenly read only

    We use RH7 html and VSS version control. I have opened an old project and had some issues trying to get it versioning correctly.
    when I opened the project just now, all my htm files (topics) are 'read only', so every time I want to change something a message pops up and I have to click OK to make it writable. Not huge, but is there a way I can change all the topics to writable at one time?
    city sue

    It is interesting you should ask the last question below. I checked it, and it has gone back to only 'add to version control' being available where it had all the options available a while ago today.
    I haven’t had this problem with my other projects. This is a very old one and is basically really badly set up, so who knows what is going on.
    I have added it to version control YET AGAIN. I have a nasty feeling this problem with this project is not going to go away any time soon.
    Sue

Maybe you are looking for