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

Thread: GParted scrapped my SD Card, searching a repair utility.

  1. #1
    Join Date
    Jan 2008
    Location
    Québec
    Beans
    183
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    GParted scrapped my SD Card, searching a repair utility.

    Having bought an all new 8GB CF (Yeah Compact Flash, not SD, correction.) Card that I had to format and partition in ext2, I decided to put trust a shiny little GUI daemon called GParted. When I finally finished partitioning my CF Card, after many crashes and segfaults, long story short, my card became a 32mb card according to GParted, and fdisk, and nautilus, and after trying to repair the stupidity of GParted which propagated through my 8GB CF Card with the good old fdisk.. my 8GB CF Card won't even mount, Ubuntu believing that my 8GB Card is more than 2000GB and giving me I/O errors after.

    So i'm now searching for a program which is able to repair a disk scrapped by some worthless stupid ignorant wannabe-coders who thought it would be good to publish a trainwreck daemon that could scrap an entire drive in two simple GUI commands.

    Thanks in advance.
    And thanks in advance, too, for not arguing about my arrogance, since a free daemon just cost me 60$, or else, at least, 4 hours of my too tiny spare time.
    Last edited by LeDechaine; July 10th, 2008 at 01:46 AM.

  2. #2
    Join Date
    Jan 2007
    Location
    United States, VA
    Beans
    856
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: GParted scrapped my SD Card, searching a repair utility.

    Ummm...Why did you have to format your card? You did not have to do that, since Ubuntu usually detects whatever the format the card is using, usually FAT32...

  3. #3
    Join Date
    Jan 2008
    Location
    Québec
    Beans
    183
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: GParted scrapped my SD Card, searching a repair utility.

    I wanted ext2. And the card was not for an Ubuntu machine.

  4. #4
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: GParted scrapped my SD Card, searching a repair utility.

    1) As st33med said, it's best to leave removable media in something like FAT32 because if you plug it into another machine, the permissions will not be right for something like ext2.

    2) FAT support has been available in linux for as long as I can remember regardless of whether or not you are using Ubuntu.

    3) Maybe the problem is with the SD card or, equally likely, your card reader. Is your card reader actually capable of reading SDHC cards? If you were getting segfaults and crashes while trying to partition the card, that sounds like something is fundamentally broken.

    4) Calling people, "worthless stupid ignorant wannabe-coders who thought it would be good to publish a trainwreck daemon that could scrap an entire drive in two simple GUI commands" is not a good way to get help. It's probably more insulting still to said programmers that you called gparted a daemon.
    Don't try to make something "fast" until you are able to quantify "slow".

  5. #5
    Join Date
    Oct 2006
    Location
    Tucson, Arizona
    Beans
    1,506

    Re: GParted scrapped my SD Card, searching a repair utility.

    flash memory has been very temperamental for formatting in my experience, possibly because sector and cluster sizes are hardwired?
    In any case I think there are some basic differences with flash memory that somehow cause problems when it's treated like a hard disk.

    http://tldp.org/HOWTO/html_single/Flash-Memory-HOWTO/
    is old but might help.

  6. #6
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: GParted scrapped my SD Card, searching a repair utility.

    i can think of many reasons to format a usb disk to ext2, not the least of which is the 2gig file size limit for fat32.

    well, i'm not sure if your card is toast or not, but i thought you might like to know why this happened. so, for future reference:

    when formating a usb drive, you must disable the hal daemon with the following command:
    Code:
    sudo killall hald
    if this is not done, the hal daemon will mount the drive when qparted accesses it for formatting, which means that the drive cannot be formatted. this is a vicious cycle and can break things if you try to continue the format.

    once the format has completed, restart the hardware layer with this command:
    Code:
    sudo /etc/init.d/dbus restart
    this is a good practice to use any time you use gparted (or any other partitioning program) to partition any drive.

  7. #7
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: GParted scrapped my SD Card, searching a repair utility.

    Quote Originally Posted by vor View Post
    1) As st33med said, it's best to leave removable media in something like FAT32 because if you plug it into another machine, the permissions will not be right for something like ext2.
    this is partially true. to avoid this problem, all you have to do is create a world rwx folder (sudo chmod 777 /mount/point/folder) on the drive and store everything in there.
    Last edited by dmizer; July 9th, 2008 at 03:57 AM.

  8. #8
    Join Date
    Jan 2008
    Location
    Québec
    Beans
    183
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: GParted scrapped my SD Card, searching a repair utility.

    Quote Originally Posted by vor View Post
    1) As st33med said, it's best to leave removable media in something like FAT32 because if you plug it into another machine, the permissions will not be right for something like ext2.

    2) FAT support has been available in linux for as long as I can remember regardless of whether or not you are using Ubuntu.

    3) Maybe the problem is with the SD card or, equally likely, your card reader. Is your card reader actually capable of reading SDHC cards? If you were getting segfaults and crashes while trying to partition the card, that sounds like something is fundamentally broken.

    4) Calling people, "worthless stupid ignorant wannabe-coders who thought it would be good to publish a trainwreck daemon that could scrap an entire drive in two simple GUI commands" is not a good way to get help. It's probably more insulting still to said programmers that you called gparted a daemon.
    1) I don't want a linux operating system running in a fat32 partition.
    2) I know.
    3) It's actually a CF Card. I wrote this too fast before going to bed. And I think the only thing that is actually fundamentally broken.. is GParted. Everything seemed fine with the card until I used this program.
    4) It's a good way to get help through people who feel the same. For the rest, I'm not crazy enough to get help from these wannabe-coders, unless I want to scrap another drive.

  9. #9
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: GParted scrapped my SD Card, searching a repair utility.

    Quote Originally Posted by LeDechaine View Post
    And I think the only thing that is actually fundamentally broken.. is GParted. Everything seemed fine with the card until I used this program.
    there is nothing fundamentally, or even partly broken with gparted. i use it quite frequently to reformat usb flash memory drives and CF cards.

  10. #10
    Join Date
    Jan 2008
    Location
    Québec
    Beans
    183
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: GParted scrapped my SD Card, searching a repair utility.

    Quote Originally Posted by sloggerkhan View Post
    flash memory has been very temperamental for formatting in my experience, possibly because sector and cluster sizes are hardwired?
    In any case I think there are some basic differences with flash memory that somehow cause problems when it's treated like a hard disk.

    http://tldp.org/HOWTO/html_single/Flash-Memory-HOWTO/
    is old but might help.
    Thanks, but it's no help for me. =/

    After trying *many* things (debugfs, etc).. I can see that 90% of the time i get the "Attempt to read block from filesystem resulted in short read" error.

    The problem is that, yeah, the filesystems are scrapped. The drive doesn't even mount. It's /dev/sdb, but almost everything I can get from this is some "Attempt to read block from filesystem resulted in short read" errors. No /dev/sdb1, because the partition(s) can't be mounted.

    Let's say, «I need a program to repair a drive. Not a partition.» Maybe if I use "dd" to write zeros everywhere in /dev/sdb... don't know.

    Again, thanks in advance.

Page 1 of 2 12 LastLast

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
  •