Re: Stupid `dd` tricks (solved)

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Kevin
Dátum:  
Címzett: plug-discuss
Régi témák: Stupid `dd` tricks
Új témák: Telescope Control Program (TCP) xephen
Tárgy: Re: Stupid `dd` tricks (solved)
On Wed, 2004-12-01 at 09:52, Kevin wrote:
> knoppix# mount /dev/hdd1 /mnt/hdd1
> knoppix# dd if=/mnt/hdd1/w2k.fat32.img of=/dev/hda
> { 35 minutes later }


Replying to myself. I thought I had created an image of the whole disk
(/dev/hda). Turns out, back when I created this image, I only grabbed
the first (and only) partition on the disk (/dev/hda1).

So, I deleted all the partitions on /dev/hda and started over. This
time I booted knoppix and created a single partition on hda (/dev/hda1)
that spanned the entire disk. Then I sprayed the image over it.

knoppix# dd if=/mnt/hdd1/w2k.fat32.img of=/dev/hda1

To fix the MBR, I again booted the WinTooKay install CD and used the
FIXMB command in the recovery console. I probably could have done this
step faster with a simple DOS bootdisk and the "fdisk /mbr" command, but
I do not have a floppy drive.

Finally, with the MBR restored it was looking into the first partition
for a bootable OS. My previous `dd` command had placed all the files
there, but it still would not boot without one final step.

I booted knoppix one last time and set the "bootable" flag on the first
partition (/dev/hda1). Apparently, this was enough to allow the MBR to
hand off control to the OS sitting in hda1.

Or least this is how I understand it. ;-) It boots now. Whew.

...Kevin


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss