Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I did something very stupid.. I wanted to overwrite my MBR of my usb disk and executed the following commands..

sudo dd if=./boot0 of=/dev/sdb bs=1b count=1
sudo dd if=./boot1h of=/dev/sdb2

Now I can't list the partitions(6 partitions) in sdb. Any suggestions? I have ubuntu in /dev/sda

install-mbr /dev/sdb

Dint help either.

share|improve this question

migrated from stackoverflow.com Sep 14 '09 at 2:19

This question came from our site for professional and enthusiast programmers.

2 Answers 2


I think you can give a try with gparted (if you don't have it go ahead and install it first). The software lets you see your partitions if they are still there. Now what exactly do you want to do?
Is all you want is to make your USB usable again? That would be too easy. Just go to gparted, then delete all the partitions and create new ones.
Or do you want to keep your partitions? Personally I don't think that is possible because you already wiped out your partition table. So what you can try is to back up your remaining data on those partitions (because dd didn't delete any data, apart from the little piece at the head of your partitions to make place for the two files). Then format your USB and restore the data.
As far as I know, don't use dd unless you are backing up or restoring a whole partition.

share|improve this answer
up vote 0 down vote accepted

This link helped.. I am still not done yet.. but I atleast see some of my files.. !!

share|improve this answer
    
help.ubuntu.com/community/DataRecovery - testdisk rescued most of the data –  Ramya Sep 18 '09 at 21:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.