Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-19-2004, 07:15 AM   #1
LQ Newbie
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0
[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:
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
Old 04-19-2004, 07:19 AM   #2
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
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)

.-=~ iluvatar ~=-.
Old 04-19-2004, 07:28 AM   #3
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
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?
Old 04-19-2004, 08:30 AM   #4
LQ Newbie
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
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!
Old 04-19-2004, 09:28 AM   #5
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
symbolic link/ commad name change. YellowFin Linux - Software 1 10-14-2005 12:26 AM
wincvs use add commad error .help me tomylinux Linux - Networking 0 09-30-2005 11:13 PM
chroot commad juanb Linux - General 1 09-13-2005 01:24 PM
Insmod commad error arunatmac Linux - Hardware 1 07-08-2005 11:05 PM
gnu patch commad broke AfterBurn Linux - Software 3 01-09-2005 08:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration