Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Sep 14 '09 at 2:19

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

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 - testdisk rescued most of the data – Ramya Sep 18 '09 at 21:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .