You are not logged in.
Pages: 1
Yeah, i didn't think it would happen to me but today i used the command dd if=/dev/zero on the wrong harddisk. Instead of a disk with media files i wiped the first 623 MB of /dev/sda where my operating systems are installed.
> s dd if=/dev/zero of=/dev/sda bs=1M
Password:
^C594+0 records in
594+0 records out
622854144 bytes (623 MB) copied, 7.59657 s, 82.0 MB/s
As you can see i noticed my mistake after roughly 8 seconds and aborted the process.
Obviously, the complete MBR was wiped. Same goes for my boot partition /dev/sda1. Luckily, sda2 is a Windows partition which - i guess - is irreparable now but i didn't use it anyway.
So, the real question is, do you think I can save my linux installation? If so, how would you proceed?
The way I see it, all I'd have to do is recreate the MBR and reinstall the kernel + grub. I'm mainly concerned about the MBR as it would have to be exactly the same as the one i wiped, wouldn't it?
Regards,
demian
no place like /home
github
Offline
There are threads like these. Search the forums. There are certain apps that can help you recover the data.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Try gpart, it might be able to find everything needed to recreate the partion table.
As for your /boot, just reinstall the kernel and grub.
Edit:
If you have no important partion like /home or whatever on the disc, then just reinstall. Probably faster.
Last edited by Mr.Elendig (2010-09-15 18:59:09)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Before trying any radical partition recovery software, I would make an image of what you still have using dd_rescue.
Offline
Pages: 1