[96146] in RedHat Linux List
Re: dd and boot.img
daemon@ATHENA.MIT.EDU (Alexei Nefediev)
Sat Oct 24 16:10:03 1998
Date: Sat, 24 Oct 1998 23:09:24 +0300 (MSK)
From: Alexei Nefediev <nefediev@heron.itep.ru>
To: redhat-list@redhat.com
In-Reply-To: <98102411523900.00779@dt030nd0>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
> >
> >The boot disk doesn't work at all, and I'm not sure what is wrong with
> >my approach. Does anyone know how to make a boot disk from the boot.img
> >file correctly?
> >
> >Thanks in advance for your assistance.
> >
> >Jim
> >jimk@echonyc.com
>
>
> To make a boot disk, all I ever do is format a disk
> fdformat /dev/fd0H1440
> but don't put the ext2 filesystem on it, nor do you
> need to mount it. Then copy your kernel to the disk
> like this
> dd if=/boot/vmlinuz of=/dev/fd0 bs=8192
> Of course replace vmlinuz with whatever your kernel
> is named as. Also you want to be sure it points to
> your correct root device with the rdev command. (Though
> it should already)
>
> rdev /boot/vmlinuz
>
I guess there is no need to format the floppy. dd command does not care
what is on the floppy. It just copies the image to it one to one.
I agree that putting kernel to the floppy is much more wise than using
.img file for this. But what for is this bootable floppy needed? To be
used when LILO crashes, or to fix the filesystem? In the latter case I
would advise using boot and root floppies from Slackware distribution.
Alexei
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.