Dd to /dev/sda instead of /dev/sdb, how to restore /dev/sda

Hello,
yesterday I made a mistake, I did a dd to /dev/sda:
dd if=imagefile.img of=/dev/sda
Problem is my /dev/sda is my harddisk and it should have been /dev/sdb (usbstick).
Now my computer doesn't boot anymore.
How can I restore my harddisk without losing my data?  The image file I copied was around 120MB. 
Did dd than only overwrite the first 120MB or is there more?
Regards,
Roel

Thank You guys,
my arch-linux is up and running again in aprox. 1,5h time!!
First I tried to backup the harddisk with knoppix and saw my harddisk was empty, in gparted it seemed like it was never used... I was down, down, down...  I didn't give up and downloaded systemrescuecd. Testdisk rstored my partition table and I saw it was my lucky day.  The first partition on my harddrive was SWAP.  All my files where intact and my stupid mistake only overwrote SWAP and MBR. 
Reinstall grub would do the trick, i thought... but it didn't.  Wy?  Testdisk allocated my partitions to hda1 and hda2.  In arch I had sda1 (swap); sda2 (/) and sda3 (/home).  Now when I reinstalled grub the partition table didn't correspond to the ona in arch.  A little bit fiddling in menu.lst, fstab and devices.map managed me to boot my arch system from fallback.  My normal boot doesn't work though, I already changed everything to the right partitions but it keeps complaining about not finding my root partition.  I already tried root=/dev/hda1; /sda1 and the whole rimram.
Can somebody tell me what's the problem?
It is probably my initrd file, isn't it?

Similar Messages

Maybe you are looking for

  • Video white balance levels not showing, so video effects and color editing won't work

    I've watched white balance tutorials, and I tried clicking the dropper onto the viewer to change the color. But, in the gray box above it there are normally red green and blue lines, but I have nothing there. I think this is preventing any edits to m

  • Can I use Hey Siri to silence the alarm after a timer finishes?

    I can use Hey Siri to set a timer. But at the end of the timer, I have to walk over and touch the device to stop the alarm. Is there any command I can use after Hey Siri to tell the device to stop sounding the alarm? Before you reply, please note tha

  • LDAP search cannot find entry by user "defined attribute"  or  "sounds like

    Hi, I have an JSP program that searches an LDAP Sun One Directory Server. All of my search filters ( by givenname,sn,mail and phone #) work fine with the search base set at the very top (root ) of my DIT tree. However with the same search base, searc

  • Vendor creation using fm 'Vendor_insert'

    Hi experts, I want to create vendor using the FM 'VENDOR_INSERT'. But the problem is I am unable to know what are the required fields to be given in the import structures (ie LFA1,LFB1,LFM1) . Could you please suggest the way to run this FM with mini

  • Servlet cannot find local interface

    I have created a session bean called "UsersManagementBean" and his local interface called "UsersManagement". After deploying the application on JBoss server i got the error "PackageName.UserManagement not bound". my jndi tree view shows (under global