Results 1 to 4 of 4
Hello there
I have done a mistake, since my laptop wasn't recognizing the bootable Windows Xp CD i tried executing this command in Linux to clear the
Grub bootloader hoping ...
- 10-12-2011 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 23
How to recover data and reverse the operation done by dd command
Hello there
I have done a mistake, since my laptop wasn't recognizing the bootable Windows Xp CD i tried executing this command in Linux to clear the
Grub bootloader hoping that I would be able to install the Windows XP and the command is this
dd if=/dev/zero of=/dev/sda bs=512 count=1
I got the above command on a forum (icrontic.com/forum/showthread.php?t=39459 )since I was desperate to install XP I executed it thinking that it would erase the bootloader and not the driver partitions.
After rebooting the Win xp cd booted but the partitions were all gone ...I know this is a very dangerous command but is there any way to reverse and get at least the partitions back as before.
I have some important data - around 8gb and that is what I am concerned about.I have left the laptop as it is hoping that there would be a way to reverse back the harm done by the above command I executed on linux.
I am using RHEL 5.5 Server Tikanga
Please help and please let me know if I can recover the data I have lost
Thanks and regards
- 10-12-2011 #2forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,099
Hello
Try running TestDisk on the drive to see if it can recover your partitions:
TestDisk - CGSecurityoz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 10-12-2011 #3Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
Agreed, TestDisk has saved my bacon - it comes with the System Rescue CD for your convenience.
- 10-12-2011 #4Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,943
You wiped the partition table along with Grub from the mbr. If you had replaced the "512" with "446" you would still have the partition table.
You should still have your data and I agree with the above posters on the software to use.


Reply With Quote
