Problem mounting custom boot disk

1999-09-14 Thread David Kanter
Last night I compiled a new kernel and had it sent to a boot floppy instead of 
the hard drive (using the standard Debian tools for compiling a new kernel). 
Booting from the floppy is fine. However, I'd like to mount the floppy and get 
the kernel image off of it, move it to /boot, and then re-configure LILO to run 
it.

I've tried multiple variations of mount: -t vfat, -t msdos, and nothing at all 
(i.e., ext2). Each time I get a message that I have either chosen the wrong 
file system, or a couple other problems.

What should I do?

Thanks,
Dave


Re: Problem mounting custom boot disk

1999-09-14 Thread lexchive
On Tue, Sep 14, 1999 at 09:37:20AM -0500, David Kanter wrote:
 Last night I compiled a new kernel and had it sent to a boot floppy instead 
 of the hard drive (using the standard Debian tools for compiling a new 
 kernel). Booting from the floppy is fine. However, I'd like to mount the 
 floppy and get the kernel image off of it, move it to /boot, and then 
 re-configure LILO to run it.
 
 I've tried multiple variations of mount: -t vfat, -t msdos, and nothing at 
 all (i.e., ext2). Each time I get a message that I have either chosen the 
 wrong file system, or a couple other problems.
 
 What should I do?
 
 Thanks,
 Dave
 

afaik there is usually not any fs on a boot floppy. use 'cat /dev/fd0
 /vmlinuz' instead.

-Lex


pgpitSfXP6Slg.pgp
Description: PGP signature


Re: Problem mounting custom boot disk

1999-09-14 Thread Quant-X UNIX and Linux Support
On Tue, Sep 14, 1999 at 09:37:20AM -0500, David Kanter wrote:
 Last night I compiled a new kernel and had it sent to a boot floppy instead 
 of the hard drive (using the standard Debian tools for compiling a new 
 kernel). Booting from the floppy is fine. However, I'd like to mount the 
 floppy and get the kernel image off of it, move it to /boot, and then 
 re-configure LILO to run it.
 
 I've tried multiple variations of mount: -t vfat, -t msdos, and nothing at 
 all (i.e., ext2). Each time I get a message that I have either chosen the 
 wrong file system, or a couple other problems.
 
 What should I do?
 
 Thanks,
 Dave
 

Why don't you just go to /usr/src/linux and do:

$ make zlilo

In case your kernel lives in /boot, then you'll have to move System.map
and vmlinuz from / to /boot and run lilo again.

Otherwise, it may be pretty difficult to take out the kernel from the
diskette since you don't know its size.

-- 

Dejan Muhamedagic
UNIX and Linux Support

   Quant-X Service  Ph:  (+43) 4212 90555-0
   Consulting Ges.m.b.H. Fax: (+43) 4212 90555-20
   http://www.quant-x.comEmail: [EMAIL PROTECTED]


Re: Problem mounting custom boot disk

1999-09-14 Thread Craig H. Block
You won't be able to mount the floppy since make zdisk does not create
a file system on the floppy.

Try dd if=/dev/fd0 of=/zImage where the first parameter is your floppy
drive and the second is the path and filename where you want the image
copied.

Normally you would boot off the floppy to test the new kernel and then
if looks good, copy it from /usr/src/linux/arch/i386/boot/zImage to
/boot and then run lilo to make it bootable.  It must be named as
specified in lilo.conf

David Kanter wrote:
 
 Last night I compiled a new kernel and had it sent to a boot floppy instead 
 of the hard drive
(using the standard Debian tools for compiling a new kernel). Booting
from the floppy is fine.
However, I'd like to mount the floppy and get the kernel image off of
it, move it to /boot, and
then re-configure LILO to run it.
 
 I've tried multiple variations of mount: -t vfat, -t msdos, and nothing at 
 all (i.e., ext2).
Each time I get a message that I have either chosen the wrong file
system, or a couple other
problems.
 
 What should I do?


Re: Problem mounting custom boot disk

1999-09-14 Thread Craig H. Block
David Kanter wrote:
 
 Last night I compiled a new kernel and had it sent to a boot floppy instead 
 of the hard drive (using the standard Debian tools for compiling a new 
 kernel). Booting from the floppy is fine. However, I'd like to mount the 
 floppy and get the kernel image off of it, move it to /boot, and then 
 re-configure LILO to run it.
 
 I've tried multiple variations of mount: -t vfat, -t msdos, and nothing at 
 all (i.e., ext2). Each time I get a message that I have either chosen the 
 wrong file system, or a couple other problems.
 
 What should I do?
 

You won't be able to mount the floppy since make zdisk does not create
a file system on the floppy.

Try dd if=/dev/fd0 of=/zImage where the first parameter is your floppy
drive and the second is the path and filename where you want the image
copied.

Normally you would boot off the floppy to test the new kernel and then
if looks good, copy it from 
/usr/src/linux/arch/i386/boot/zImage to /boot and then run lilo to make
it bootable.  It must be named as specified in lilo.conf