267 lines
4.6 KiB
HTML
267 lines
4.6 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Prepare LILO to boot the new disk</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="Modify /new-disk/etc/fstab as appropriate"
|
|
HREF="modify.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Make a boot diskette (optional)"
|
|
HREF="bootdisk.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="modify.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
></TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="bootdisk.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="PREPARE"
|
|
>9. Prepare <SPAN
|
|
CLASS="ACRONYM"
|
|
>LILO</SPAN
|
|
> to boot the new disk</A
|
|
></H1
|
|
><TABLE
|
|
BORDER="0"
|
|
WIDTH="100%"
|
|
CELLSPACING="0"
|
|
CELLPADDING="0"
|
|
CLASS="EPIGRAPH"
|
|
><TR
|
|
><TD
|
|
WIDTH="45%"
|
|
> </TD
|
|
><TD
|
|
WIDTH="45%"
|
|
ALIGN="LEFT"
|
|
VALIGN="TOP"
|
|
><I
|
|
><P
|
|
><I
|
|
>(Thanks to Rick Masters for helping with this.)</I
|
|
></P
|
|
></I
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>We're assuming that <SPAN
|
|
CLASS="ACRONYM"
|
|
>LILO</SPAN
|
|
> is installed on the hard
|
|
disk's Master Boot Record (<SPAN
|
|
CLASS="ACRONYM"
|
|
>MBR</SPAN
|
|
>); this seems to be the
|
|
most common configuration. You want to install <SPAN
|
|
CLASS="ACRONYM"
|
|
>LILO</SPAN
|
|
> on
|
|
what's presently the second hard disk but will become the first hard disk.</P
|
|
><P
|
|
>Edit the file <TT
|
|
CLASS="FILENAME"
|
|
>/new-disk/etc/lilo.conf</TT
|
|
> as follows:
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="PROGRAMLISTING"
|
|
>disk=/dev/hdb bios=0x80 # Tell LILO to treat the second
|
|
# disk as if it were the first
|
|
# disk (BIOS ID 0x80).
|
|
boot=/dev/hdb # Install LILO on second hard
|
|
# disk.
|
|
map=/new-disk/boot/map # Location of "map file".
|
|
install=/new-disk/boot/boot.b # File to copy to hard disk'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=/new-disk/boot/vmlinuz # Location of Linux kernel. 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
|
|
><DIV
|
|
CLASS="FORMALPARA"
|
|
><P
|
|
><B
|
|
>Slackware only. </B
|
|
>Use <B
|
|
CLASS="COMMAND"
|
|
>image=/new-disk/vmlinuz</B
|
|
>.</P
|
|
></DIV
|
|
><P
|
|
>If you're using a <SPAN
|
|
CLASS="ACRONYM"
|
|
>SCSI</SPAN
|
|
> hard disk, you may have to
|
|
add a line with <B
|
|
CLASS="COMMAND"
|
|
>initrd</B
|
|
>. See your existing file
|
|
<TT
|
|
CLASS="FILENAME"
|
|
>/etc/lilo.conf</TT
|
|
>.</P
|
|
><P
|
|
>Install <SPAN
|
|
CLASS="ACRONYM"
|
|
>LILO</SPAN
|
|
> on the new disk:
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="PROGRAMLISTING"
|
|
>/sbin/lilo -C /new-disk/etc/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
|
|
></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="modify.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="bootdisk.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Modify <TT
|
|
CLASS="FILENAME"
|
|
>/new-disk/etc/fstab</TT
|
|
> as appropriate</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Make a boot diskette (optional)</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |