<HTML ><HEAD ><TITLE >Make a boot diskette (optional)</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.56"><LINK REL="HOME" TITLE="Hard Disk Upgrade Mini How-To" HREF="index.html"><LINK REL="PREVIOUS" TITLE="Prepare LILO to boot the new disk" HREF="prepare.html"><LINK REL="NEXT" TITLE="Remove the old disk" HREF="remove.html"></HEAD ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Hard Disk Upgrade Mini How-To</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="prepare.html" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="remove.html" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="BOOTDISK" >10. Make a boot diskette (optional)</A ></H1 ><P >If you wish, you can make a boot diskette, in case you run into problems when trying to boot the new disk.</P ><P >Insert an empty diskette, format it, create a file system on it and mount it: <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >fdformat /dev/fd0H1440 mkfs.ext2 /dev/fd0 mount -t ext2 /dev/fd0 /mnt</PRE ></TD ></TR ></TABLE ></P ><DIV CLASS="FORMALPARA" ><P ><B >Debian only. </B >With Debian 2.x, use <TT CLASS="FILENAME" >/dev/fd0u1440</TT > instead of <TT CLASS="FILENAME" >/dev/fd0H1440</TT >. With Debian 1.x, use <TT CLASS="FILENAME" >/dev/fd0h1440</TT >, with a lower case <I CLASS="WORDASWORD" >h</I >.</P ></DIV ><DIV CLASS="FORMALPARA" ><P ><B >Debian only. </B >With Debian 2.x, use <B CLASS="COMMAND" >superformat</B > instead of <B CLASS="COMMAND" >fdformat</B >. You can ignore the error <TT CLASS="COMPUTEROUTPUT" >mformat: command not found</TT >. With Debian 1.x, if you don't have the command <B CLASS="COMMAND" >fdformat</B >, you can omit it if the floppy is already formatted. In this case, you should check the diskette for bad blocks by adding <TT CLASS="OPTION" >-c</TT > after the <B CLASS="COMMAND" >mkfs.ext2</B > command.</P ></DIV ><DIV CLASS="FORMALPARA" ><P ><B >Slackware only. </B >Use <TT CLASS="FILENAME" >/dev/fd0u1440</TT > instead of <TT CLASS="FILENAME" >/dev/fd0H1440</TT >. With older versions, try <TT CLASS="FILENAME" >/dev/fd0h1440</TT >, with a lower case <I CLASS="WORDASWORD" >h</I >.</P ></DIV ><DIV CLASS="FORMALPARA" ><P ><B >SuSE only. </B >Use <TT CLASS="FILENAME" >/dev/fd0u1440</TT > instead of <TT CLASS="FILENAME" >/dev/fd0H1440</TT >.</P ></DIV ><P >Copy all files in <TT CLASS="FILENAME" >/boot</TT > to the diskette: <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >cp -dp /boot/* /mnt</PRE ></TD ></TR ></TABLE > </P ><DIV CLASS="FORMALPARA" ><P ><B >Red Hat only. </B >If the <TT CLASS="FILENAME" >/boot</TT > directory contains both <TT CLASS="FILENAME" >vmlinux</TT > and <TT CLASS="FILENAME" >vmlinuz</TT > files (note the difference in the last letter), you only need to copy the <TT CLASS="FILENAME" >vmlinuz</TT > files to the boot diskette. They are the same as the vmlinux files, except that they're compressed to save space.</P ></DIV ><DIV CLASS="FORMALPARA" ><P ><B >Slackware only. </B >Copy the file <TT CLASS="FILENAME" >/vmlinuz</TT > to the boot diskette; use the command <B CLASS="COMMAND" >cp /vmlinuz /mnt</B >.</P ></DIV ><P >Create a new file <TT CLASS="FILENAME" >/mnt/lilo.conf</TT > as follows: <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >boot=/dev/fd0 # Install LILO on floppy disk. map=/mnt/map # Location of "map file". install=/mnt/boot.b # File to copy to floppy's # boot sector. prompt # Have LILO show "LILO boot:" # prompt. timeout=50 # Boot default system after 5 # seconds. (Value is in tenths of # seconds.) image=/mnt/vmlinuz # Location of Linux kernel on # floppy. The actual name may # include a version number, for # example "vmlinuz-2.0.35". label=linux # Label for Linux system. root=/dev/hda1 # Location of root partition on # new hard disk. Modify this as # appropriate for your system. # Note that you must use the name # of the future location, once the # old disk has been removed. read-only # Mount partition read-only at # first, to run fsck.</PRE ></TD ></TR ></TABLE > </P ><P >Install <SPAN CLASS="ACRONYM" >LILO</SPAN > on the boot diskette: <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >/sbin/lilo -C /mnt/lilo.conf</PRE ></TD ></TR ></TABLE > </P ><P >The <TT CLASS="OPTION" >-C</TT > option tells <SPAN CLASS="ACRONYM" >LILO</SPAN > what configuration file to use.</P ><P >Unmount the diskette: <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >umount /mnt</PRE ></TD ></TR ></TABLE ></P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="prepare.html" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="remove.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Prepare <SPAN CLASS="ACRONYM" >LILO</SPAN > to boot the new disk</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Remove the old disk</TD ></TR ></TABLE ></DIV ></BODY ></HTML >