old-www/LDP/lame/LAME/linux-admin-made-easy/install-diskette.html

318 lines
5.3 KiB
HTML

<HTML
><HEAD
><TITLE
>Creating an Installation Diskette</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.63
"><LINK
REL="HOME"
TITLE="Linux Administration Made Easy"
HREF="index.html"><LINK
REL="UP"
TITLE="Installation and Hardware Configuration"
HREF="install-config.html"><LINK
REL="PREVIOUS"
TITLE="Installation and Hardware Configuration"
HREF="install-config.html"><LINK
REL="NEXT"
TITLE="Booting Linux Installation Program"
HREF="booting-install.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"
>Linux Administration Made Easy</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="install-config.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 4. Installation and Hardware Configuration</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="booting-install.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="INSTALL-DISKETTE"
>4.1. Creating an Installation Diskette</A
></H1
><P
>The first step in getting Red Hat's distribution of Linux onto a
system, you need to find a way of starting the installation program. The
usual method of doing so is to create an installation disk, although if
you are installing from CD-ROM, and your system's BIOS supports it, you
should be able to boot directly into the installation program from the
CD.</P
><P
>Otherwise, to create an installation diskette, you'll need to copy
the ``<TT
CLASS="LITERAL"
><TT
CLASS="FILENAME"
>boot.img</TT
></TT
>'' (which is simply
an image of an ext2-formatted Linux boot diskette with an additional
installation program) onto a floppy diskette. The
``<TT
CLASS="LITERAL"
><TT
CLASS="FILENAME"
>boot.img</TT
></TT
>'' file can be obtained
from the <TT
CLASS="LITERAL"
>/images</TT
> directory of the Red Hat CD-ROM disk, or
downloaded via FTP from <A
HREF="ftp://ftp.redhat.com/"
TARGET="_top"
>ftp://ftp.redhat.com</A
> in the <A
HREF="ftp://ftp.redhat.com/pub/redhat/redhat-6.1/i386/images"
TARGET="_top"
>/pub/redhat/redhat-6.1/i386/images</A
> directory (assuming you are
installing Linux on an Intel box).</P
><P
>You can create the boot diskette either from a DOS or Windows
system, or from an existing Linux or Unix system. For your destination
diskette, you can use either an unformatted or a pre-formatted (for DOS)
diskette -- it makes no difference.</P
><P
>Under DOS: Assuming your CD-ROM is accessible as drive D:, you can
type:</P
><A
NAME="AEN224"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="USERINPUT"
><B
>d:</B
></TT
>
<TT
CLASS="USERINPUT"
><B
>cd \images</B
></TT
>
<TT
CLASS="USERINPUT"
><B
>..\dosutils\rawrite</B
></TT
></PRE
></TD
></TR
></TABLE
><P
>For the source file, enter
``<TT
CLASS="LITERAL"
><TT
CLASS="FILENAME"
>boot.img</TT
></TT
>''. For the
destination file, enter ``<TT
CLASS="LITERAL"
>a:</TT
>'' (assuming the diskette
you are created is inserted into the A: drive). The
``<TT
CLASS="LITERAL"
>rawrite</TT
>'' program will then copy the
``<TT
CLASS="LITERAL"
><TT
CLASS="FILENAME"
>boot.img</TT
></TT
>'' file onto
diskette.</P
></BLOCKQUOTE
><P
>Under Linux/Unix: Assuming the
``<TT
CLASS="LITERAL"
><TT
CLASS="FILENAME"
>boot.img</TT
></TT
>'' file is located in
the current directory (you may need to mount the CD-ROM under /mnt/cdrom
and find the file in /mnt/cdrom/images), you can type:</P
><A
NAME="AEN239"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
><TT
CLASS="USERINPUT"
><B
>dd if=boot.img of=/dev/fd0</B
></TT
></PRE
></TD
></TR
></TABLE
><P
>The ``<TT
CLASS="LITERAL"
>dd</TT
>'' utility will copy, as
its input file (<SPAN
CLASS="QUOTE"
>"if"</SPAN
>), the
``<TT
CLASS="LITERAL"
><TT
CLASS="FILENAME"
>boot.img</TT
></TT
>'' file, onto the
output file (<SPAN
CLASS="QUOTE"
>"of"</SPAN
>) /dev/fd0 (assuming your floppy drive is
accessible from /dev/fd0).</P
><P
>Unless your Linux or Unix system allows write permissions to the
floppy device, you may need to do this command as the superuser. (If you
know the root password, type ``<TT
CLASS="LITERAL"
>su</TT
>'' to become the
superuser, execute the ``<TT
CLASS="LITERAL"
>dd</TT
>'' command, and then type
``<TT
CLASS="LITERAL"
>exit</TT
>'' to return to normal user status).</P
></BLOCKQUOTE
><P
>With either of the above schemes, you should now have a bootable Red
Hat 6.1 installation diskette that you can use to install your new Red Hat
Linux system!</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="install-config.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="booting-install.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Installation and Hardware Configuration</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="install-config.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Booting Linux Installation Program</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>