According to LENGARD Pascal OCISI: While burning my CPU.
> 
> To create a boot+root floppy, if you want to, you could just test this  =
>  
> scri[[ MAKEB~5B : 3854 dans MAKEB~5B ]]t (bash)
>    

Lengard,

Your script however good it may look does not achive the desired results.
It may be ok on your system but i had to change a few things, after that
it copied the image ok to /dev/fd0, then on bootup the image is read but
an error appiers about No file signature and just freezes my machine.
I cant remember just what it was as i did not write it down, (Richard's
mistake). It seems i did not take my own advise, as i say to many send error
messages in a mail, but i considered this a minor factor here.
If however you want the error message in full send me a note.

Now if i may say that your script is rather overkill without offening you
and that there are ctrl 'M's at the end of every line killing the script, 
which is rather defeating the object of having a script to do things
for you, Then would it not be better to ask questions in the script to find
out default values and addresses, that would eliminate much of the check's
it does anyway.
I dont know weather you used some sort of DOS or dos/orientaed editor to
write it or the encoding added them, however at line 29 there is a problem,
the line is;

Erreur()M
{M

The script bomb's out because it see's a ctrl M before the brace, i would
imagen the best way to define a routine is;

Erreur() {
   bla bla
}

After all in my opinion its just as much type work for the user to do;

        'cp /usr/src/linux/arch/i386/boot/zImage /dev/fd0'

Or indeed if one is making a kernel do 'make zdisk' instead of make zImage.

Anyway, this message is not intended as a flame, you will find that writing
scripts to work on all systems is not such an easy task.


> 
> that i wrote on my redhat 4.2 system
> (it may exist a mkbootdisk on your distribution)
> 
> my script should be self explaned but here is a description:
> put a formatted floppy in your /dev/fd0 and use it with this command
> makebootdisk <kernelimage> <filesystem>
> where kernelimage is the name of the kernel image you want to install=0D=
> 
> filesystem is the compressed image of the filesystem you want to install=
>    
> on the floppy
> 
> it will calculate the offset at wich it should install the filesystem an=
> d   
> install both kernel and filesystem on /dev/fd0
> 
> THIS SCRIPT LACKS LOTS OF THINGS:
> verify if all the stuff fits on the floppy
> ask to put the floppy in the drive
> choose the floppy drive
> ...
> but it already serves my needs...
> READ THE SECTION ON BOOT+ROOT floppy in the BOOTDISKHOWTO

When one installs any Distribution they can copy the boot and root disks
from the distribution-source.

-- 
Regards Richard.
[EMAIL PROTECTED]

Reply via email to