You are not logged in.
Pages: 1
in hurry I did something which I never believed to happen:
dd if=/dev/zero of=/dev/hda
dd: writing to `/dev/hda': No space left on device
20009+0 records in
20008+0 records out
10244096 bytes (10 MB) copied, 0.0457617 s, 224 MB/s
I were erasing my usb memory but instead my mbr flew away... I really don't know how to proceed, my machine is on and I'm not shutting it down, it wouldn't boot. I ask help to recover the "hda" grub
Last edited by no_mad (2010-11-08 22:06:23)
Offline
I believe you overwrote the entire disk, not just the mbr
Offline
but it wrote 10 MB I have 200 GB disk
Offline
If I'm not mistaken the partition table is also stored in the MBR...
If you have the possibility, then backup all files to a USB drive right away. Then you can always try to save the first part of the harddrive afterwards.
MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage
Offline
the MBR is the first 512 bytes of the disk... not sure what you would have got with 10MB. I'm assuming MBR/partition table and more.
http://www.archlinux.org/packages/extra/x86_64/gpart/
gpart apparently scans the disk to try and recognise partitions, in the event of having wielded powerful commands in the wrong direction so if your first partition was boot you could well get away with only needing to reinstall grub onto the boot partition. however, i'm fairly noobish at the best of times, so your mileage may vary.
Last edited by phaedrus (2010-11-08 20:32:11)
Offline
IIRC Testdisc can recreate the partition table if your partitions are OK, but you overwrote / deleted the MBR / partition table, not sure if it can help in your case though.
Last edited by karol (2010-11-08 20:29:00)
Offline
I decided to do new install. I had "luck" this machine is only for internet use so it has minimal home files and software.. I already saved my /home content and did package list. so it's up again quite fast
edit: up again....
Last edited by no_mad (2010-11-08 22:06:03)
Offline
Pages: 1