Core Linux Installation Guide
This version of the documentation is no longer maintained. It is kept on-line for reference, as it may be of use to some. However, an installation guide for the latest version of Core Linux can be found from the index page
Preparation
- Perform this stage using your functioning PC.
- Download the
mass-2.tarfile.- Visit the Core Linux Website and click on the "Files" link.
- From the list of files click on
mass-2.tarto download it via HTTP. - You will be asked to choose a mirror site to use. Choose one closest to you.
- You will be asked where you wish to save the file to. Chose a safe place and make a note of it.
- The download is a little under 30Mb and will take at least three hours over a modem, but a lot less over a broadband connection.
- If you are using a download accelerator program, it will save the file to your default download directory.
- Download the latest Linux kernel from www.kernel.org. You will need the full source code, not just an update or patch. Download it in
.tar.gzformat. This guide is based on a 2.4 series kernel.- Visit www.kernel.org
- Look for the text "
The latest stable version of the Linux kernel is:" - Follow that line along the screen until you reach a link named
F - Click on the
Fto download the full kernel source via HTTP. - You will be asked to where you wish to save the file. Chose a safe place and make a note of it.
- The download is a little over 30Mb and will take at least three hours over a modem, but a lot less over a broadband connection.
- If you are using a download accelerator program, it will save the file to your default download directory.
- This document uses kernel 2.4.19, and so the file downloaded was called
linux-2.4.19.tar.gzthough this will differ if you choose a different kernel version.
- Download any other applications you plan to install (eg Apache)
- If you know you want to install certain pieces of software on your Core Linux distribution, download the source code from the appropriate website.
- Be sure to read the documentation included with the source code or on the website and download any pre-requisite programs.
- Extract all the files from
mass-2.tar.- Under a Linux environment:
- Switch to the directory containing the
mass-2.tarfile:
cd full-directory-path
- Switch to the directory containing the
- Untar the file using:
tar xvf mass-2.tar - The files will then be untarred to the directory
mass-2. - Under a Windows environment:
- You will need to use WinRar, available from www.rarlab.com
- If you don't have it, download and install the WinRar software before continuing.
- Double click on the
mass-2.taricon to open it in WinRar. - Highlight all the files listed in the WinRar window, and drag them all to a safe known directory. This will extract the files.
- Under a Linux environment:
- Burn the contents of
mass-2.tarand the kernel.tar.gzfile to a CD. Burn any additional applications to a subdirectory (perhaps called/apps). The CD-ROM can be a multi-session disk, allowing you to add any files you have forgotten.- Use your CD burning software to create an ISO9660 disc image with the following contents:
- The files extracted from the
mass-2.tarfile in the root of the disk. - The Linux kernel
.tar.gzfile also in the root directory. - Any additional applications in the
/appsdirectory.
- The files extracted from the
- Burn the CD and verify the data stored on it.
- Use your CD burning software to create an ISO9660 disc image with the following contents:
- Create the boot disk, the root disk and the "util" disk. Label the disks clearly. The fourth disk will be a backup disk. If you will be backing up to a MS-DOS/Windows system, ensure that the backup disk is formatted with FAT.
- Under a Linux environment:
- Insert the first blank floppy in the floppy disk drive.
- Change to the mass-2 directory:
cd /full-directory-path/mass-2 - Write the
boot.idisk image to the floppy:dd if=boot.i of=/dev/fd0 - Wait for the disk write to complete.
- Remove the disk from the drive and label it "Core Linux Boot Disk"
- Insert the second blank floppy in the floppy disk drive.
- Write the
root.gzdisk image to the floppy:dd if=root.gz of=/dev/fd0 - Wait for the disk write to complete.
- Remove the disk from the drive and label it "Core Linux Root Disk"
- Insert the third blank floppy in the floppy disk drive.
- Write the
util.idisk image to the floppy:dd if=util.i of=/dev/fd0 - Wait for the disk write to complete.
- Remove the disk from the drive and label it "Core Linux Utilities Disk"
- Under a Windows environment:
- You will need to use RawWrite, available from here.
- If you don't have it, download and install the RawWrite software before continuing.
- Insert the first blank floppy in the floppy disk drive.
- Run RawWrite.
- Click on the "Write" tab.
- In the "Image File" box type the full path of the
boot.idisk image, for example:c:\windows\desktop\core\boot.i - Alternatively, navigate to the image file using the "browse" button to the right of the "Image File" box.
- Click on the "Write" button and wait for the process to complete.
- Remove the disk from the drive and label it "Core Linux Boot Disk".
- Insert the second blank floppy in the floppy disk drive.
- In the "Image File" box type the full path of the
root.gzdisk image, for example:c:\windows\desktop\core\root.gz - Alternatively, navigate to the image file using the "browse" button to the right of the "Image File" box.
- Click on the "Write" button and wait for the process to complete.
- Remove the disk from the drive and label it "Core Linux Root Disk".
- Insert the third blank floppy in the floppy disk drive.
- In the "Image File" box type the full path of the
util.idisk image, for example:c:\windows\desktop\core\util.i - Alternatively, navigate to the image file using the "browse" button to the right of the "Image File" box.
- Click on the "Write" button and wait for the process to complete.
- Remove the disk from the drive and label it "Core Linux Utilities Disk".
- Close RawWrite.
- If you need to format your backup floppy with FAT, insert the floppy into the disk drive.
- Click on the "My Computer" icon on the desktop.
- Right-click on the floppy disk drive icon and select "Format..."
- Unselect the "Quick Format" option. (The exact procedure varies between different Windows versions.)
- Wait for the process to complete.
- Remove the disk from the drive and label "Core Linux Backup Disk".
- Under a Linux environment:
Booting
- Perform this stage and the subsequent stages using your "Core Linux" PC.
- Boot from the Core Linux Boot disk.
- Power on the computer with the "Core Linux Boot Disk" in the floppy disk drive.
- Ensure that your BIOS is set to boot from the floppy drive.
- Read your motherboard manufacturer's manual for advice on how to do this if you are not sure.
- The following prompt will appear:
LILO 22.1 boot : - Press Enter to start booting from the disk.
- Insert the Core Linux Root Disk when prompted.
- Wait for the following line to appear:
VFS: Insert root floppy disk to be loaded into RAM disk and press ENTER - Remove the Core Linux Boot Disk from the floppy disk drive and replace it with the Core Linux Root Disk.
- Press Enter. The boot process will continue.
- Wait for the following line to appear:
- Login as
root. You are not prompted to enter a password.- Wait for the following text to appear:
localhost login: - Type
rootand press Enter. - You will be shown a prompt that looks like this:
[/]#
- Wait for the following text to appear:
- Mount the Core Linux Utilies Disk under
/mnt/floppy.- Remove the Core Linux Root Disk and replace it with the Core Linux Utiliies Disk.
- At the prompt enter:
mount /dev/fd0 /mnt/floppy - You may see the following line appear:
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
Configuring Hard Disks
- Use
fdiskto create hard disk partitions as required.- Write out a quick list of how you want your hard disk setup.
- At the very least you will require two partitions, a main "root" partition and a swap partition.
- Many people suggest that the swap partition should be twice the size of the installed RAM on your machine, although this is not compulsory.
- You may wish to have separate partitions for some directories, such as
/usrwhich holds a lot of programs and source code and/homewhich may be a busy directory if you are using the computer for SMB File and Printer Sharing with your network. - This example will use separate partitions for both
/usrand/homedirectories. - Remember to include partition sizes in your list.
- The desired partitions can be listed as:
/dev/hda1 / 300Mb
/dev/hda2 swap 128Mb
/dev/hda3 /usr 1200Mb
/dev/hda4 /home 1200Mb - As there are only four partitions, they can all be primary partitions on the hard disk.
- Run
fdiskon the hard disk using the command:fdisk /dev/hda - You will then see the prompt:
Command (m for help): - First Partition
Typento create a new partition. - You will then see the prompt:
Command action
e extended
p primary partition (1-4) - Type
pto create a primary partition. - You will then see the prompt:
Partition number (1-4): - Type
1to create a primary partition. - You will then see the prompt:
The second number in the prompt depends on the number of cylinders on your hard disk, and won't be
First cylinder (1-780, default 1)780on all systems. - Press enter to accept the default.
- You will then see the prompt:
Last cylinder or +size or +sizeM or +sizeK (1-780, default 780) - As you want
/dev/hda1to be 300Mb in size, enter this:+300M - You will then see the prompt:
Command (m for help): - Second Partition
Typento create a new partition. - You will then see the prompt:
Command action
e extended
p primary partition (1-4) - Type
pto create a primary partition. - You will then see the prompt:
Partition number (1-4): - Type
2to create the second primary partition. - You will then see the prompt:
The new default is the first cylinder after the last partition we created. This means that there will be no unused disc space between the two partitions. (Remember that the default value won't be
First cylinder (78-780, default 78)78on all systems. - Press enter to accept the default.
- You will then see the prompt:
Last cylinder or +size or +sizeM or +sizeK (78-780, default 780) - As you want
/dev/hda2to be 128Mb in size, enter this:+128M - You will then see the prompt:
Command (m for help): - Third Partition
- Type
nto create a new partition. - You will then see the prompt:
Command action
e extended
p primary partition (1-4) - Type
pto create a primary partition. - You will then see the prompt:
Partition number (1-4): - Type
3to create the second primary partition. - You will then see the prompt:
The new default is the first cylinder after the last partition we created. This means that there will be no unused disc space between the two partitions. (Remember that the default value won't be
First cylinder (111-780, default 111)111on all systems. - Press enter to accept the default.
- You will then see the prompt:
Last cylinder or +size or +sizeM or +sizeK (111-780, default 780) - As you want
/dev/hda3to be 1200Mb in size, enter this:+1200M - You will then see the prompt:
Command (m for help): - Fourth Partition
Typento create a new partition. - You will then see the prompt:
Command action
e extended
p primary partition (1-4) - Type
pto create a primary partition. - You will then see the prompt:
Partition number (1-4): - Type
4to create the second primary partition. - You will then see the prompt:
The new default is the first cylinder after the last partition we created. This means that there will be no unused disc space between the two partitions. (Remember that the default value won't be
First cylinder (416-780, default 111)111on all systems. - Press enter to accept the default.
- You will then see the prompt:
Last cylinder or +size or +sizeM or +sizeK (416-780, default 780) - As you want
/dev/hda4to be 1200Mb in size, enter this:+1200M - You will then see the prompt:
Command (m for help): - Writing the changes
Typewto save your new configuration and exitfdisk. - You will text appear on the screen as
fdiskprocesses the changes to your hard disk:The partition table has been altered!
Calling ioctl() to re-read partition table.
hda: hda1 hda2 hda3 hda4
hda: hda1 hda2 hda3 hda4
Syncing disks.
- Write out a quick list of how you want your hard disk setup.
- Use
mke2fsto format new ext2 partitions.- Three of the four partitions need to be formatted with the ext2 filesystem:
/dev/hda1 /dev/hda3 /dev/hda4 - Use the
mke2fsprogram to format all three of the devices, one after the other.mke2fs /dev/hda1 && mke2fs /dev/hda3 && mke2fs /dev/hda4 - The program will run, finishing by printing a line saying:
This filesystem will be automatically checked every 26 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
- Three of the four partitions need to be formatted with the ext2 filesystem:
- Use
mkswapto format the swap partition.- The last remaining partition,
/dev/hda2needs to be formatted as a swap partition usingmkswap. Run themkswapprogram by entering:mkswap /dev/hda2 - The program will run, finishing by printing a line saying:
Of course, the exact size of your swap partition may vary from that shown here.
Setting up swapspace version 1, size = 136456248 bytes
- The last remaining partition,
- Mount the partition you will use as the root partition for your installation under
/mnt/root.- At the system prompt type:
mount /dev/hda1 /mnt/root - The system will not display a message if everything is OK.
- At the system prompt type:
- Use
mkdirto create empty directories under/mnt/rootwhere you will mount other hard disk partitions (eg/usror/home).- Change to the
/mnt/rootdirectory:cd /mnt/root - The prompt will change to:
[/mnt/root]# - Make the directory under which you will mount
/dev/hda3:mkdir usr - Make the directory under which you will mount
/dev/hda4:mkdir home
- Change to the
- Mount the other partitions at the directories you have just created.
- At the system prompt enter:
mount /dev/hda3 /mnt/root/usr - The system will not display a message if everything is OK.
- At the system prompt enter:
mount /dev/hda4 /mnt/root/home - The system will not display a message if everything is OK.
- At the system prompt enter:
Installing the "Core"
- Mount the CD with the Core source files at
/mnt/cdrom.- Insert the CD that you made in the "Preparation" section into the CD-ROM drive.
- Mount the CD-ROM drive at
/mnt/cdromusing the command:mount /dev/hdb /mnt/cdrom - The system will display a message telling you that the device is read-only:
mount: block device /dev/hdb is write-protected, mounting read-only
- Change to
/mnt/cdromand run the./install_corescript with the argument:./install_core /mnt/root.- To do this, first change to the directory under which we just mounted the CD-ROM drive:
cd /mnt/cdrom - Then run the install script with an argument giving the location of the destination directory (your new root filesystem):
./install_core /mnt/root - This may take a minute or two depending on your system.
- The system will not display a message if everything is OK.
- To do this, first change to the directory under which we just mounted the CD-ROM drive:
- Copy the Linux kernel
.tar.gzfile to the directory/mnt/root/usr/src.- Using the example of the
linux-2.4.19.tar.gzfile:cp linux-2.4.19.tar.gz /mnt/root/usr/src - This will take a few seconds to complete and the system will not display a message if everything is OK.
- Using the example of the
- Unmount the floppy disk drive and the CD drive.
- Move out of the mounted directory:
cd / - Unmount the CD-ROM drive:
umount /dev/hdb - The system will not display a message if everything is OK.
- Unmount the floppy drive:
umount /dev/fd0 - The system will not display a message if everything is OK. You may remove the floppy disk from the drive.
- Move out of the mounted directory:
- Change to the new root directory, using the command:
chroot /mnt/root /usr/bin/env HOME=/root /bin/bash --login- The system will not display a message if everything is OK. You are now working within your new root filesystem.
The Kernel
/usr/src. Unzip and untar the kernel source.
- Change to the
/usr/srcdirectory, which is where we copied the Linux kernel source files:cd /usr/src - The prompt will change to:
[/usr/src]# - Unzip and untar the kernel source code:
tar zxvf linux-2.4.19.tar.gz - A long stream of unzipping files and directories should scroll up the screen for a minute or two.
linux in the /usr/src directory to the unzipped Linux kernel source directory (eg linux-2.4.19).
- At the system prompt enter:
ln -s linux-2.4.19 linux - The system will not display a message if everything is OK.
- At the system prompt enter:
cd linux-2.4.19 - The system prompt will change to:
[/usr/src/linux-2.4.19]#
make mrproper && make menuconfig- This command cleans up the source tree and then starts the graphical configuration interface for the kernel.
- Use the arrow keys, space bar and enter button to navigate round the menu.
- If you have questions about how to configure your kernel, try the Kernel HOWTO at The Linux Documentation Project
- Try configuring the kernel without
loadable module supportto help keep things simple at first. Once the system is up and running, you can always recompile your kernel to include other features or to integrate loadable module support. - Remember to include support for the SMB filesystem if you are going to use your Core Linux machine to run Samba.
myconfig).
- From the Main Menu, select the last option:
Save Configuration to an Alternate File - Enter a memorable name:
myconfig - Select
Ok - The program then saves the configuration and returns you to the main configuration menu.
- Select
Exit - You are prompted to save your configuration:
Do you wish to save your new kernel configuration? - Select
Yes - The program then saves your configuration and exits with a short message. The last line of the message is:
*** Next, you must run 'make dep'.
make dep && make bzImage- The system will then generate the dependencies for your kernel configuration, and then the kernel itself, in the form of a kernel image file called
bzImage. This may take anything from 5 minutes to a couple of hours depending on your system. - If the keyboard isn't touched for five minutes the screen goes black. This is a screen-protection measure rather than a problem with the compiling process. Press one of the arrow keys to bring the display back.
- The program finishes with the line:
make[1]: Leaving directory '/usr/src/linux-2.4.19/arch/i386/boot'
System.map to /boot.
- At the system prompt enter:
cp System.map /boot - The system will not display a message if everything is OK.
arch/i386/boot/bzImage to /boot.
- At the system prompt enter:
cp arch/i386/boot/bzImage /boot - The system will not display a message if everything is OK.
Take time to backup
- Insert your backup floppy into the drive.
- Mount the floppy, remembering to use the
-t msdosswitch if necessary.- At the system prompt enter:
mount /dev/fd0 -t msdos /mnt/floppy - The system will not display a message if everything is OK.
- At the system prompt enter:
- Copy the file
/boot/System.mapto/mnt/floppy.- At the system prompt enter:
cp /boot/System.map /mnt/floppy - The system will not display a message if everything is OK.
- At the system prompt enter:
- Copy the file
/boot/bzImageto/mnt/floppy.- At the system prompt enter:
cp /boot/bzImage /mnt/floppy - The system will not display a message if everything is OK.
- If you have a "heavy" kernel, with many features compiled in, then it may not fit on a floppy disk! In which case, backup the config file so you can compile the kernel again if you need to.
- At the system prompt enter:
- You could also backup your kernel config settings if you wish to use them again.
- At the system prompt enter:
cp /usr/src/linux-2.4.19/myconfig /mnt/floppy - The system will not display a message if everything is OK.
- At the system prompt enter:
Configure LILO
- Change to the
/etcdirectory.- At the system prompt enter:
cd /etc - The system prompt will change to:
[/etc]#
- At the system prompt enter:
- Edit the file
lilo.conf.- Run the
nanoeditor on thelilo.conffile by entering:nano lilo.conf - The screen will show the contents of
lilo.confwith information about the file at the top and bottom of the screen.
- Run the
- Change the line
to read
image = /boot/vmlinuzimage = /boot/bzImage- Navigate the file using the arrow keys. Use the backspace key to erase the existing line, and type in the new line.
- You may want to add the line
after the
label = Coreimage = /boot/bzImageline. - Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:
File Name to write: lilo.conf - Press Enter.
- You will be returned to the system prompt.
- At the system prompt enter:
lilo- The system will display the message:
.
Warning: LBA32 addressing assumed
Added Core *
- The system will display the message:
Configure boot settings
- Edit
/etc/fstab.- At the system prompt enter:
nano /etc/fstab
- At the system prompt enter:
- Add lines for the swap partition and any other partitions you want mounted on startup.
- Navigate the file using the arrow keys.
- Underneath the two existing lines in the file, you need to add lines for the additional partitions on your hard disk.
- For the swap partition add the following line:
/dev/hda2 swap swap defaults 0 0 - For the other partitions add the following lines:
/dev/hda3 /usr ext2 defaults 1 1
/dev/hda4 /home ext2 defaults 1 1
- Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:
File Name to write: fstab - Press Enter.
- You will be returned to the system prompt.
- Change to the
/sbindirectory.- At the system prompt enter:
cd /sbin - The system prompt will change to:
[/sbin]#
- At the system prompt enter:
- Add a symlink to
swaponcalledswapoff.- At the system prompt enter:
ln -s swapon swapoff - The system will not display a message if everything is OK.
- At the system prompt enter:
- Change to the
/etc/rc.ddirectory.- At the system prompt enter:
cd /etc/rc.d - The system prompt will change to:
[/etc/rc.d]#
- At the system prompt enter:
- Locally backup the files:
rc.si rc.ha rc.rb rc.mu- At the system prompt enter:
cp rc.si rc.si.bak && cp rc.ha rc.ha.bak && cp rc.rb rc.rb.bak && cp rc.mu rc.mu.bak - The system will not display a message if everything is OK.
- At the system prompt enter:
- Edit
rc.si, the system initialisation script.- At the system prompt enter:
nano rc.si
- At the system prompt enter:
- Add the line
after the line
swapon -amount -aormount -av- Navigate the file using the arrow keys.
- Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:
File Name to write: rc.si - Press Enter.
- You will be returned to the system prompt.
- Edit
rc.ha, the system halt script.- At the system prompt enter:
nano rc.ha
- At the system prompt enter:
- Add the line
before the line
swapoff -aumount -a. Change the lineumount -ato readumount -afv- Navigate the file using the arrow keys.
- Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:
File Name to write: rc.ha - Press Enter.
- You will be returned to the system prompt.
- Edit
rc.rb, the system reboot script.- At the system prompt enter:
nano rc.rb
- At the system prompt enter:
- Add the line
before the line
swapoff -aumount -a. Change the lineumount -ato readumount -afv- Navigate the file using the arrow keys.
- Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:
File Name to write: rc.rb - Press Enter.
- You will be returned to the system prompt.
- Edit
rc.mu, the system initialisation script.- At the system prompt enter:
nano rc.mu
- At the system prompt enter:
- Change the line
to read
hostname localhostwherehostname coreboxcoreboxis the name you want to give your system. This is name that appears at the login prompt.- Navigate the file using the arrow keys.
- Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:
File Name to write: rc.mu - Press Enter.
- You will be returned to the system prompt.
Configure basic networking - optional
- You should already be in the
/etc/rc.ddirectory. If not, change to it.- At the system prompt enter:
cd /etc/rc.d - The system prompt will change to:
[/etc/rc.d]#
- At the system prompt enter:
- Edit the file
rc.mu, the initialistaion script for runlevel 3.- At the system prompt enter:
nano rc.mu
- At the system prompt enter:
- Add the following lines to the end of the file, after the comment
# network setup:ifconfig eth0 192.168.0.10 netmask 255.255.255.0 up- Navigate the file using the arrow keys.
- Add additional lines in a similar way for any other ethernet cards on your system.
- Add routing rules to the local network and the default gateway:
Thanks to DJ Ruden for the correction on this section!
route add -net 192.168.0.0/24 dev eth0
route add -net default gw 192.168.0.1 - You may wish to add comments or echoes to the file for your own information.
- Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:
File Name to write: rc.mu - Press Enter.
- You will be returned to the system prompt.
- Edit the file
rc.rb.- At the system prompt enter:
nano rc.rb
- At the system prompt enter:
- At the second line of the file add the line:
ifconfig eth0 down- Navigate the file using the arrow keys.
- Add similar lines for any other ethernet cards on your system, adapting the above example as necessary.
- You may wish to add comments or echoes to the file for your own information.
- Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:
File Name to write: rc.rb - Press Enter.
- You will be returned to the system prompt.
- Edit the file
rc.ha- At the system prompt enter
nano rc.ha
- At the system prompt enter
- At the second line of the file add the line
ifconfig eth0 down - Add similar lines for any other ethernet cards.
- You may wish to add comments of echoes to the file for your own information.
- Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:<
File Name to write: rc.ha - Press Enter.
- You will be returned to the system prompt.
- Edit
/etc/resolv.conf.- At the system prompt enter:
nano /etc/resolv.conf
- At the system prompt enter:
- Add the following lines to the file:
domain localhost
search
nameserver 192.168.0.1
nameserver 192.168.1.1 - If you have a FQDN for your machine, then you may substitute it into the
domainline instead oflocalhost. - Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:
File Name to write: /etc/resolv.conf - Press Enter.
- You will be returned to the system prompt.
Another Backup point
- Your backup floppy should still be in the drive and mounted.
- If it isn't, mount the floppy, remembering to use the
-t msdosswitch if necessary.- At the system prompt enter:
mount /dev/fd0 -t msdos /mnt/floppy - The system will not display a message if everything is OK.
- At the system prompt enter:
- Copy
/etc/lilo.confto/mnt/floppy.- At the system prompt enter:
cp /etc/lilo.conf /mnt/floppy - The system will not display a message if everything is OK.
- At the system prompt enter:
- Copy
/etc/fstabto/mnt/floppy.- At the system prompt enter:
cp /etc/fstab /mnt/floppy - The system will not display a message if everything is OK.
- At the system prompt enter:
- Copy
/etc/rc.d/*to/mnt/floppy.- At the system prompt enter:
cp /etc/rc.d/* /mnt/floppy - The system will not display a message if everything is OK.
- At the system prompt enter:
- Copy
/etc/resolv.confto/mnt/floppy.- At the system prompt enter:
cp /etc/resolv.conf /mnt/floppy - The system will not display a message if everything is OK.
- At the system prompt enter:
Rebooting to your new system
- Unmount the floppy drive and remove the disk.
- At the system prompt enter:
umount /dev/fd0 - The system will not display a message if everything is OK.
- Remove the floppy from the disk drive.
- At the system prompt enter:
- Reboot the system using:
shutdown -r now - If you receive an error message at this command and the system does not reboot, use the command:
shutdown -rn now- This command shuts the system down without unmounting the drives.
- This causes a file system check when the system is restarted, but subsequently,
rc.haandrc.rbcontrol the unmouting of the drives.
- When the system has rebooted log in as
root.- Wait for the following text to appear:
localhost login: - Type
rootand press Enter. - You will be shown a prompt that looks like this:
[~]#
- Wait for the following text to appear:
- At the system prompt enter:
passwd - Type and confirm a new password.
- The screen displays the following message:
Changing the password for root
Enter the new password (minimum of 5, maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
New password: - Enter your new password and press enter.
- The screen displays the message:
Re-enter new password: - Re-enter your password and press enter.
- The screen displays the message:
Password changed.
- The screen displays the following message:
Converting to ext3
- If you wish to use ext3, the journalling version of the ext2 file system, you can convert ext2 partitions to ext3 partitions. Kernel support for ext3 should be included in the kernel rather than as a module for stability.
- Hard disk partitions cannot be formatted in ext3 earlier in the installation process because the Linux kernel on the Core Linux boot disks does not support ext3. You could use an alternative boot disk to get around this.
- Convert your ext2 partitions to ext3 using the
tune2fscommand.- At the system prompt enter:
where
tune2fs -j /dev/hdaXhdaXis the partition you wish to convert. - The system will display the following message:
followed by two lines of help information.
Creating journal inode:done - Repeat the operation for the other partitions you wish to convert.
- At the system prompt enter:
- Edit
/etc/fstab.- At the system prompt enter:
nano /etc/fstab
- At the system prompt enter:
- Change the lines listing
ext2to readext3. For example:/dev/hda1 / ext3 defaults 1 1- Save the file and exit the text editor.
- Press Ctrl+x on the keyboard.
- The contents of the white line at the bottom of the screen will change to read:
Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? - Type
y. - The contents of the white line at the bottom of the screen will change to read:
File Name to write: /etc/fstab - Press Enter.
- You will be returned to the system prompt.
- Save the file and exit the text editor.
- Reboot the system using:
shutdown -r now

The text of this page is licensed under a Creative Commons License.
