Off-Topic > Off-Topic - Tiny Tux's Corner

[Q] Oh noes, my USB flash drive died! How to recover?

<< < (2/5) > >>

Misalf:
Thanks gerald_clark
I have installed testdisk and it is indeed able to at least find something. So I know now that my USB drive is not entirely fried. I think only the partitioning got messed up for some reason. Maybe I shouln't let grub write to my drives in the future (or I should use a propper partitioning for that matter)?

Thanks andyj for your suggestion
Unfortunately I do not have enough space left on my HDD to dd my USB drive there.
I have initially partitioned it that way to be able to still use it under windows (which didn't work btw since windows only wants to read the first partition..)


So, now the situation is as follows (not copy/pasted):
 TestDisk -> Analyse
  Disk /dev/sdb - 4003 MB / 3817 MiB - CHS 1017 124 62
   Current partition structure:
    ~~ nothing listed ~~
    Partition sector doesn't have the endmark 0xAA55
    >[Quick Search]
    Warning: the current number of heads per cylinder is 124
    but the correct value may be 255.
    [Continue]
     ~~ "FAT16" (sdb; not sdb3) ~~
     ~~ "Linux" (sdb1) ~~
     >[Deeper Search]
      ~~ "FAT16" (sdb; 343 MB oh so big? - seems to contain only unreadable garbage but thats not new) ~~
      ~~ "Linux" (sdb1; 781MB hmm might be correct - a little bit gabage - nothing else) ~~
      ~~ "Linux" (sdb1; 781MB - no file found) ~~
      ~~ "FAT32" (sdb3; 3220MB - I can browse files) ~~
 
The ext2 partition (sdb1) is not accessible. testdisk sees it as two paritions which are overlapping each other. I tryed changing heads from 124 to 255 via options but same result.

Misalf:
Does anyone know some magic CHS values I could try to use or what values might possibly be the correct ones?

Rich:
Hi Misalf
I don't think you should be changing the CHS values.

--- Quote ---    Warning: the current number of heads per cylinder is 124
    but the correct value may be 255.
--- End quote ---
255 may be a common setting for the number of heads but it's not a requirement. If you change it to 255 you are telling
it your drive is a little over 8Gbytes in size.

Misalf:
Oh, thanks for that info.

Is my data lost if TestDisk can't recreate the partition or at least copy files?

Rich:
Hi Misalf

--- Quote ---Is my data lost if TestDisk can't recreate the partition or at least copy files?
--- End quote ---
I don't know. What does the command:

--- Code: ---fdisk -l
--- End code ---
report for the drive? Use your left mouse button to highlight the results in the terminal. This copies the text into the paste
buffer. Then use the center mouse button to paste into the browser.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version