0

How to recover the corrupted OS in linux

I run the below command and suddenly the OS got corrupted...

dd if=/dev/zero of=/dev/sda bs=1 count=446

Once the system is rebooted, the OS is corrupted. What could do next..??

Linux Data Recovery Add a comment
alexander
asked Feb 17 2017

Answer

0

Load the Operating system .iso image in CD and insert it. Once boot screen appears, Run the below command in GRUB mode and hit enter.

boot: linux rescue

Now the temp OS will be loaded and run the below commands.

# chroot /mnt/sysimage
# grub-install /dev/sda
Add a comment
jagannatharumugam
asked Feb 19 2017
edited Oct 05 2018
Post your Answer