Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Gparted can't format Microsd Card

  1. #1
    Join Date
    Mar 2009
    Beans
    6

    Gparted can't format Microsd Card

    Ok so I've been messing around with my G1 and microsd card and whatever. I kept running into the problem of my sdcard randomly becoming read-only, while this sucked a lot, I could just reformat since nothing to valuable was on it(brand new). Until today when trying to do it the partion on it comes up as "unknown" so that when i try to format it I get this

    GParted 0.3.8

    Libparted 1.8.9

    Format /dev/sdc1 as fat32 00:00:01 ( ERROR )

    calibrate /dev/sdc1 00:00:01 ( SUCCESS )

    path: /dev/sdc1
    start: 16065
    end: 7743329
    size: 7727265 (3.68 GiB)
    set partitiontype on /dev/sdc1 00:00:00 ( ERROR )
    libparted messages ( INFO )

    Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
    Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
    Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
    Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
    Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
    Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
    Can't write to /dev/sdc, because it is opened read-only.
    Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
    Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
    Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
    Can't write to /dev/sdc, because it is opened read-only.
    Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
    When mounting I get the output:

    mount: block device /dev/sdc is write-protected, mounting read-only
    mount: wrong fs type, bad option, bad superblock on /dev/sdc,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so

    I'm just at a loss for what to do. Usually I can find answers to problems through google and these forums but nothing is really working. Thanks in advanced.

  2. #2
    Join Date
    Jun 2007
    Beans
    14,788

    Re: Gparted can't format Microsd Card

    What kind of filesystem is currently on it? NTFS?
    Code:
    sudo fdisk -l

  3. #3
    Join Date
    Mar 2006
    Location
    Saint Petersburg, FL
    Beans
    1,123

    Re: Gparted can't format Microsd Card

    You can repartition the card using fdisk, then reformat using mkfs.msdos. First insert the card and make sure the device (/dev/sdc) has not changed terminals. Then issue the following:

    Code:
    sudo fdisk /dev/sdc
    Press m for the command list, then delete the first partition.
    Press n for a new partition, choose primary partition, accept the defaults
    Press t for type to change system id, then press c for FAT32 (LBA)
    Press p to print and verify everything is correct then w to write the data.

    Pull the drive, wait a few seconds, then insert the drive again.

    Check the terminal location of the drive again (/dev/sdc). If the file system becomes mounted by udev then unmount the device and issue the following:
    Code:
    sudo mkfs.msdos -F 32 /dev/sdc1
    You should be back to your original point on the drive.
    For those new to Ubuntu most of your answers can be found at help.ubuntu.com or ubuntuguide.org

  4. #4
    Join Date
    Mar 2009
    Beans
    6

    Re: Gparted can't format Microsd Card

    The output from fdisk -l is

    Disk /dev/sdc: 3965 MB, 3965714432 bytes
    255 heads, 63 sectors/track, 482 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000b0238

    Device Boot Start End Blocks Id System
    /dev/sdc1 2 482 3863632+ b W95 FAT32
    And I'm doing Warp's sugestion right now....

  5. #5
    Join Date
    Mar 2009
    Beans
    6

    Re: Gparted can't format Microsd Card

    ok so I tried both Warp and this is the output before I even tried to do anything in fdisk
    sudo fdisk /dev/sdc
    You will not be able to write the partition table.
    and after I tried to write the changes

    Unable to write /dev/sdc
    shocker

    and mkfs came out with

    mkfs.msdos: unable to open /dev/sdc

  6. #6
    Join Date
    Jul 2008
    Location
    Inside the Cell B.E.
    Beans
    806
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Gparted can't format Microsd Card

    sudo dd if=/dev/zero of=/dev/sdc bs=512

    there. do that from ubuntu livecd in terminal. NOBODY ELSE TRY THAT!!!!!!!!! it'll take an hour or so and you won't see any output from the terminal from quiet some time. good luck.
    Last edited by Neo_The_User; March 11th, 2009 at 05:47 AM.

  7. #7
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Gparted can't format Microsd Card

    Quote Originally Posted by Dizzzzzzid View Post
    Ok so I've been messing around with my G1 and microsd card and whatever. I kept running into the problem of my sdcard randomly becoming read-only, while this sucked a lot, I could just reformat since nothing to valuable was on it(brand new).
    ........
    I'm just at a loss for what to do. Usually I can find answers to problems through google and these forums but nothing is really working. Thanks in advanced.
    SSD devices have a finite life before they die - continually reformatting them just brings their demise closer, it seems that this one has died already.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  8. #8
    Join Date
    Mar 2009
    Beans
    6

    Re: Gparted can't format Microsd Card

    Quote Originally Posted by Neo_The_User View Post
    sudo dd if=/dev/zero of=/dev/sdc bs=512

    there. do that from ubuntu livecd in terminal. NOBODY ELSE TRY THAT!!!!!!!!! it'll take an hour or so and you won't see any output from the terminal from quiet some time. good luck.
    Alright I can do that, must be from a live cd? And just wondering what it does

    And dcstar, could it really have died that quick? Would I be better off just returning it?

  9. #9
    Join Date
    Jul 2008
    Location
    Inside the Cell B.E.
    Beans
    806
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: Gparted can't format Microsd Card

    It will delete every block of data on that hard drive 1 by 1, bit by bit. Yes has to be done from livecd. The theory of that command will set every block to 0 therefor completley blanking it out. It'll nuke the hard drive. WILL NOT BREAK!

  10. #10
    Join Date
    Mar 2009
    Beans
    6

    Re: Gparted can't format Microsd Card

    Quote Originally Posted by Neo_The_User View Post
    It will delete every block of data on that hard drive 1 by 1, bit by bit. Yes has to be done from livecd. The theory of that command will set every block to 0 therefor completley blanking it out. It'll nuke the hard drive. WILL NOT BREAK!
    Alright, thanks a lot. I appreciate it.

Page 1 of 2 12 LastLast

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
  •