LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [HELP] After dd commad nothing works (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bhelp%5D-after-dd-commad-nothing-works-171983/)

rabside 04-19-2004 06:15 AM

[HELP] After dd commad nothing works
 
Hi guys!
I've installed mdk 10 on hd with win xp; after some days win xp didn't boot!
I've searched the solution on this forum and I found this:
Quote:

Boot with Knoppix, go to console;
dd if=/dev/zero of=/dev/hda bs=1000 count=1000
After this, my hd seems fuc*ed! I can't boot!
I've tried with slax but I can't see any partition; in /dev/ i can see only hda, not partitions!

What can I do?
need great help :(

thx very much in advance

iluvatar 04-19-2004 06:19 AM

dd is a command for raw reading/writing. with the command, you have 'formatted' the mbr of your disk (not good). the 'if' in the command is the input, the 'of' is the output. you actually have overwritten your mbr with zeros... maybe you can reconstruct the mbr from a boot disk with cfdisk or some other partitioner, remake them in exactly the same order and size (don't know if that works)

greetz,
.-=~ iluvatar ~=-.

ugge 04-19-2004 06:28 AM

My suggestion would be to boot into rescue mode using the installation cd. I don't know how to do it in mandrake but there must be a way.

When you get to the shell prompt then try to re-install your boot loader. Did you use lilo, grub or windows boot loader?

rabside 04-19-2004 07:30 AM

thx for help guys!

I use lilo.

when I boot from mdk before reinstall lilo I have to complete ALL the install procedure! I'll try it anyway.

@iluvatar: thx for the explanation! this evening i'll try cfdisk!

ugge 04-19-2004 08:28 AM

There should be a way to use some rescue mode even with Mandrake, but if that isn't the case there are a lot of resuce cds/floppies to use.

I have used the Red Hat install cd, mainly because it was what I had installed until recently. Just about any bootable linux cd/floppy would do.

1. When you have booted and the shell apears then mount your linux partition, if it isn't done already.
2. Then run chroot <path to your mounted linux root>
3. Run /sbin/lilo (you might want to check your lilo.conf first)

Now you should be able to reboot and things would be back to normal.


All times are GMT -5. The time now is 10:09 PM.