Results 1 to 4 of 4

Thread: Unbootable system after screwing up with the dd command

  1. #1
    Join Date
    Mar 2013
    Beans
    8

    Unbootable system after screwing up with the dd command

    Hello,

    Last night I was tired and I made a stupid mistake. While trying to create a live-usb with the dd command I entered "of=/dev/sda". I quickly realized what I had done and I stopped the process. I was too late, of course.

    With Linux Secure Remix I tried the "recommended repair" option of the Boot Repair program to no avail. The report can be seen here: http://paste.ubuntu.com/5616340/
    At that point, my computer when powered on would still boot to the welcome screen of the OpenSUSE live medium.

    I decided to ignore the warnings and proceeded with the advanced options to restore the MBR. Now when I turn on my computer the welcome screen is gone but it complains that there's no bootable device to boot from. The new report can be found here: http://paste.ubuntu.com/5616510/

    I checked with GParted, instead of having Win7 (+recovery) and Xubuntu (/boot, /, /home and swap) on the disk it shows a boot partition (4MiB) on sda1, an unknown file system labeled OpenSUSE 12.3 KDE Live (948.8 MiB) on sda2 and an unallocated partition (297,16 GiB).

    Is there anyway to recover my partitions?
    Last edited by ShukatsuRonin; March 15th, 2013 at 04:44 PM.

  2. #2
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Unbootable system after screwing up with the dd command

    I did not know that dd of ISO writes an efi partition and then the ISO to the flash drive.

    You may be able to get some partitions back with testdisk, but dd erases/overwrites everything bit by bit, so everything in the first approx 750MB is probably gone. It is why I do not suggest dd even though it is now one way to install to a flash drive.

    https://help.ubuntu.com/community/DataRecovery
    http://www.cgsecurity.org/wiki/TestDisk
    repairs including testdisk info & links
    http://members.iinet.net.au/~herman546/p21.html
    https://help.ubuntu.com/community/Da...st%20Partition


    Instructions
    http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
    http://www.cgsecurity.org/wiki/Menu_Analyse

    Since you overwrote start of drive, you may not have any of the file tables in first partition. For any data beyond the dd write you may be able to use photorec.

    Testdisk & photorec
    http://www.cgsecurity.org/wiki/PhotoRec
    http://www.psychocats.net/ubuntucat/...rdeletedfiles/
    http://ubuntu4beginners.blogspot.com...otorec-in.html
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  3. #3
    Join Date
    Mar 2013
    Beans
    8

    Re: Unbootable system after screwing up with the dd command

    I tend to be careful when I use dd, but not this time, obviously.
    As far as I know OpenSUSE hybrid isos do not work with Unebootin or Startup Disk Creator and require ImageWriter.

    I'll take a look at the links you posted over the weekend and I'll let you know of the results.

    Cheers.

  4. #4
    Join Date
    Mar 2013
    Beans
    8

    Re: Unbootable system after screwing up with the dd command

    A quick update, I've managed to recover most of my system. Grub is back but it doesn't show a Win7 entry. Oh yeah, and and have to reset the swap. Not fully resolved yet but I'm rather optimistic now.

    It's all thanks to TestDisk and Boot-repair and the French-speaking Ubuntu Community who helped me step after step. You guys rock!
    I guess I could link to the thread in French if someone is interested.

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
  •