Installation manual
12 3. Installation of the Debian Base System
/dev/disk/usr /usr ext3 defaults,ro 02
/dev/disk/var /var ext3 defaults,errors=remount−ro 02
/dev/disk/tmp /tmp ext2 defaults,errors=remount−ro 02
/dev/disk/cdr /cdr ext3 defaults,errors=remount−ro 02
/dev/disk/home /home ext3 defaults,errors=remount−ro 02
/dev/hdc /mnt/cdrom iso9660 user,ro,nosuid,nodev,exec,noauto 00
/dev/hdc /cdrom iso9660 defaults 00
proc /proc proc defaults 00
none /dev/pts devpts gid=5,mode=620 00
Finally we need to update the root device in /mnt/etc/lilo.conf to /dev/hda5, set the newsymlinks for the kernel
images and rerun lilo.
Update of the root device in /etc/lilo.conf:
#/etc/lilo.conf
root=/dev/hda5
Installing the new LILO boot loader:
#> cd /mnt
#> vi etc/lilo.conf
#> cd boot
#> ln −sf vmlinuz−2.4.18 vmlinuz
#> ln −sf vmlinuz−2.4.18−bf2.4 vmlinuz.old
#> chroot /mnt lilo
After rebooting to switch to the newhard-disk layout we can finally use fdisk to remove our preliminary linux
partition /dev/hda2 and replace it with a swap partition. And again we have toreboot to switch to the newhard-
disk layout. At last we can activate the swap partition and add it to /etc/fstab.
/etc/fstab:
/dev/hda1 /boot ext2 defaults,ro 02
/dev/hda2 none swap sw 00
/dev/hda5 / ext2 defaults,errors=remount−ro 01
/dev/disk/usr /usr ext3 defaults,ro 02
/dev/disk/var /var ext3 defaults,errors=remount−ro 02
/dev/disk/tmp /tmp ext2 defaults,errors=remount−ro 02
/dev/disk/cdr /cdr ext3 defaults,errors=remount−ro 02
/dev/disk/home /home ext3 defaults,errors=remount−ro 02
/dev/hdc /mnt/cdrom iso9660 user,ro,nosuid,nodev,exec,noauto 00
/dev/hdc /cdrom iso9660 defaults 00
proc /proc proc defaults 00
none /dev/pts devpts gid=5,mode=620 00
Creating and activating the swap partition:
#> mkswap /dev/hda2
#> swapon −a
Note: Wedont liketohav e our mount points in the root directory,wewant them in /mnt. Unfortunately,Debian
insists on /cdrom as the mount point for the installation. Wewill remove /cdrom and the respective entry in /etc/
fstab when we reconfigure apt for network installs and updates.