Hard-Disk-Upgrade.pdf

(29 KB) Pobierz
115269823 UNPDF
Hard Disk Upgrade Mini How−To
Yves Bellefeuille
yan@storm.ca
Konrad Hinsen
hinsen@cnrs−orleans.fr
v2.11, 13 April 2000
How to copy a Linux system from one disk to another.
Table of Contents
1. Introduction. ....................................................................................................................................................1
2. Install both disks on your system ..................................................................................................................2
3. Unmount non−Linux partitions and network drives. ..................................................................................4
4. Partition the new disk. ....................................................................................................................................5
5. Format the new disk. ......................................................................................................................................6
6. Mount the new disk. ........................................................................................................................................7
7. Copy the files from the old disk to the new disk. .........................................................................................8
8. Modify /new−disk/etc/fstab as appropriate. ...............................................................................................10
9. Prepare LILO to boot the new disk. ............................................................................................................11
10. Make a boot diskette (optional). ................................................................................................................12
11. Remove the old disk. ...................................................................................................................................14
12. Reboot the system, modify LILO configuration file. ...............................................................................15
13. Acknowledgements. ....................................................................................................................................16
i
115269823.001.png
1. Introduction
This document explains how to transfer, or migrate, an entire Linux system, including LILO, from one hard
disk to another.
In the following explanation, /dev/hda (first IDE hard disk) means the old disk, and /dev/hdb (second
IDE hard disk) means the new disk.
Specific partitions on the old disk are referred to as /dev/hda1 , /dev/hda2 , and so on. Specific
partitions on the new disk are referred to as /dev/hdb1 , /dev/hdb2 , and so on.
The explanations in this document are based on Red Hat 6.0. They have also been tested with Debian 2.1,
Slackware 3.5 and SuSE 6.2; we indicate a few differences to note if you're using those distributions.
If the commands don't work properly on your system, please let us know, mentioning what distribution you're
using.
1. Introduction
1
2. Install both disks on your system
Modern systems can accept four EIDE devices on the hard disk controller, so there shouldn't be any problem
installing both disks on your system at the same time, even if you also have other EIDE devices. Hard disks
and CD−ROM drives are typical EIDE devices. Floppy drives and tape drives are usually connected to the
floppy drive controller rather than to the hard disk controller.
SCSI adapters are even more flexible and can accept seven devices. If you're lucky (and rich) enough to have
a SCSI adapter, you probably already know this, and you probably know which of your devices are
SCSI devices! For more information, see the SCSI How−To.
Even the oldest systems can accept two devices on the hard disk controller, so you can still install both hard
disks at the same time. However, if you already have another device installed in addition to your hard disk
(for example, if you have both a hard disk and a CD−ROM drive), you'll have to remove the other device to
be able to install the old hard disk and the new hard disk at the same time.
You must configure the disks as master or slave by installing the disks' jumpers as appropriate. You'll often
find configuration information on the disks themselves; if not, consult the manuals or the disks'
manufacturers.
You must also inform the BIOS of the disks' presence and of their geometry . Usually, you enter the
BIOS setup program by pressing a key during the system boot−up. Here's what to do for some common
BIOSes:
Acer notebooks
F2 key during Power−On Self−Test (POST)
American Megatrends (AMI)
Del key during Power−On Self−Test
Award
Del , or − − Ctrl − − − − Alt − − − − Esc − − − − − − − −
Compaq
F10 key after the square appears in the top right corner of the screen during boot−up
Dell
− − Ctrl − − − − Alt − − − − Enter − − − − − − − −
DTK
Esc key during Power−On Self−Test
Hewlett−Packard Pavilion
2. Install both disks on your system
2
F1 key during HP blue splash screen
IBM Aptiva 535
F1 while the square with the wavy lines is displayed in the upper right corner during power−on [0]
IBM PS/2
− − Ctrl − − − − Alt − − − − Del − − − − − − − − , then − − Ctrl − − − − Alt − − − − Ins − − − − − − − −
when the cursor is in the top right corner
Mr. BIOS
− − Ctrl − − − − Alt − − − − S − − − − − − − − during Power−On Self−Test
Packard Bell
For some models, F1 or F2 key during Power−On Self−Test
Phoenix
− − Ctrl − − − − Alt − − − − Esc − − − − − − − − , − − Ctrl − − − − Alt − − − − S − − − − − − − − , or −
Ctrl − − − − Alt − − − − Enter − − − − − − − −
Many older systems require an Installation or Reference Disk.
We're interested in receiving information on other BIOSes to add them to this list.
Reboot the system and login as root. If you use the su command to become the user root, use su − , with the
hyphen option.
2. Install both disks on your system
3
115269823.002.png
Zgłoś jeśli naruszono regulamin