Results 1 to 5 of 5

Thread: Is there a way to mark bad adressess of flash memory?

  1. #1
    Join Date
    Feb 2008
    Beans
    34

    Is there a way to mark bad adressess of flash memory?

    Hi,

    I have a 16Gb pen-drive. Every files I copy to it gets corrupted. I could buy another one, but I'd like to fix this one. I know there is a workaround to use bad RAM using Memtest86 to find the malfunctioning adressess and BadRAM to mark them at boot time, so the OS doesn't use them. I googled everywhere, but couldn't find something like that for flash memory.

    Anyone knows a workaround for this?

    Thanks in advance.
    Linux User nº 476314.

  2. #2
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    8,654
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Is there a way to mark bad adressess of flash memory?

    badblocks

    or

    sudo fdisk -l

    sudo fsck -c /dev/sde (change sde to what your flash drive actually shows up as in previous command)
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  3. #3
    Join Date
    Feb 2008
    Beans
    34

    Re: Is there a way to mark bad adressess of flash memory?

    Great! I'm running badblocks right now. It will take a time, if it works I will mark this thread as "solved".

    Also, that fsck command does the same as badblocks?

    Thank you.
    Linux User nº 476314.

  4. #4
    Join Date
    Feb 2008
    Beans
    34

    Re: Is there a way to mark bad adressess of flash memory?

    Well, actually the badblocks program runs for about one hour and says that my pendrive has more than 800000 bad blocks. But when I try to mount it on windows, it says it need to be formatted. After it's formatted, I can access it normally, but it keeps corrupting my files. I ran the test three times, with the same results. I believe it is finding the bad blocks, but is not marking them.

    The command I'm using: badblocks -svfw

    Any clues?

    Thanks in advance.
    Linux User nº 476314.

  5. #5
    Join Date
    Oct 2006
    Beans
    11

    Re: Is there a way to mark bad adressess of flash memory?

    Try splitting it into 2 partitions and see if both partitions cause problems. If so, the bad blocks (cells) must be spread out all over, and I wouldn't bother trying to save it.

    If they are isolated to one area of the stick you could always bookmark that area with an unformatted partition.

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
  •