dd if=/dev/zero of=/dev/sda count=1 && reboot -f
Hi frnds,
I have given the below command in my linux box dd if=/dev/zero of=/dev/sda count=1 && reboot -f do anyone know how to recover from this ?? Thanks in advance.. |
|
I'm not an expert by any means but that command overwrites /dev/sda with /dev/zero so what was on /dev/sda could now be gone. The blacksize was not specified and I don't know what the default blocksize is...
|
Quote:
|
Strictly speaking it over-wrote the MBR (i.e. the boot record) and the partition table. This would make it seem that the disk had been "deleted".
testdisk is the usual best answer to recover the partition table (and hence access to data), so that the bootloader can then be re-installed. |
Quote:
|
I booted using live cd but unable to mount the disk.. :(
it says disk no disk found... |
You never (normally) mount disks - you mount partitions/LVs/images that contain filesystems.
You need a liveCD that has testdisk installed - use testdisk on the (unmounted) disk to recover your partitions. Then you can mount them. There are hundreds of threads here on using testdisk. Then re-install your bootloader. |
the data is GONE , and gone for good
now you might be able to recover the date using a "scanning tunneling electron microscope " for about $50,000 USD yes 50 GEES reinstall the operating system you "zeroed out " the drive , it is now a blank unformatted disk it can not be mounted , there is NOTHING to mount use the live cd " Gparted" and format the drive |
Quote:
Read the entire thread. |
count=1
so only the first 512 bytes have been zeroed testdisk should be able to recover this I have an old drive somewhere, I can replicate this situation and 'test' |
All times are GMT -5. The time now is 08:47 AM. |