Re: Stupid `dd` tricks

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: der.hans
Date:  
To: plug-discuss
Subject: Re: Stupid `dd` tricks
Am 01. Dec, 2004 schwätzte Kevin so:

> I have a 20GB image of /dev/hda1 that I wrote to a spare harddrive
> several months ago. I'm trying to "recover" it like I have done
> successfully a couple of times before. For some reason, I can't get it
> to work.
>
> I put the spare IDE drive in as a secondary. I boot knoppix. The
> primary IDE drive shows up as /dev/hda and the secondary shows up as
> /dev/hdd.
>
> knoppix# mount /dev/hdd1 /mnt/hdd1
> knoppix# dd if=/mnt/hdd1/w2k.fat32.img of=/dev/hda
> { 35 minutes later }


Don't you need to first build the partition table? Isn't that in the boot
sector?

Maybe you need to partition from m$ install CD. Sometimes things don't
quite match up when going from one to the other.

Maybe try installing GRUB or lilo as the boot manager.

ciao,

der.hans

> I check the results:
> knoppix# mount /dev/hda1 /mnt/hda1
> knoppix# ls /mnt/hda1
> { bunch-o-wormdows directories, looks fine }
>
> Next, I make the first partition bootable:
> knoppix# fdisk /dev/hda
> { Type 'a', '1', 'w' }
>
> knoppix# shutdown -r now
> { Hangs after POST }
>
> Looks like the MBR is missing. I don't have a M$ box to steal the MBR
> from, so I boot a WinTooKay install CD (which takes about 1.7 eons) and
> enter the "Recovery Console". I use the "FIXMBR" command and reboot.
>
> "Invalid partition table"
>
> I'm in the #plugaz channel on irc.freenode.net if anyone wants to take
> pity on me. ;-)
>
> ...Kevin
>
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>


-- 
#  https://www.LuftHans.com/    http://www.AZOTO.org/
#  If you're not learning, you're not living. - der.hans
---------------------------------------------------
PLUG-discuss mailing list - 
To subscribe, unsubscribe, or to change  you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss