5.4. Implementation

5.4.1. System startup

Start the system using the following procedure:

The output should resemble the example below:

boot: bootdisk init=/bin/sh
Loading bootdisk
Uncompressing Linux... Ok, booting kernel.
.. [various kernel messages]
VFS: Insert root floppy to be loaded into RAM disk and press ENTER
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 178k freed
# _

5.4.2. Test proc_fs and local_fs scripts

Run the scripts by typing the following commands at the shell prompt:

bash# PATH=/sbin:/bin:/etc/init.d ; export PATH
bash# proc_fs
bash# cat /etc/mtab
bash# local_fs
bash# df

If everything is working properly, then the screen output should look something like the example below.

bash# PATH=/sbin:/bin:/etc/init.d ; export PATH
bash# proc_fs
bash# cat /etc/mtab
/dev/root / ext2 ro 0 0
proc /proc proc rw 0 0
bash# local_fs
/dev/ram0: clean 74/1024 files 3178/4096 blocks
Remounting / as read-write.
Mounting local filesystems.
bash# df
Filesystem      1k-blocks       Used Available Use% Mounted on
/dev/root       3963            3045 918        77% /

5.4.3. Create and mount additional filesystems

Remove the root disk floppy and insert a blank diskette labeled "home". Then type the following commands:

bash# mkfs /dev/fd0
bash# fsck /dev/fd0
bash# mount /dev/fd0 /home
bash# mkdir /home/floyd
bash# cd /home/floyd
bash# echo "Goodbye cruel world." > goodbye.txt
bash# cat goodbye.txt

5.4.4. System shutdown

bash# cd /
bash# umount /dev/fd0
bash# sync

Remove the diskette from fd0 and restart the system using CTRL-ALT-DELETE.