root filesystem/
Here are the contents of Graham's root and utility diskettes. These lists are provided as an example only of the files included to create a working system. Graham has added some explanatory notes where it seemed useful.
total 18
drwxr-xr-x 2 root root 1024 Jul 29 21:16 bin/
drwxr-xr-x 2 root root 9216 Jul 28 16:21 dev/
drwxr-xr-x 3 root root 1024 Jul 29 20:25 etc/
drwxr-xr-x 2 root root 1024 Jul 28 19:53 lib/
drwxr-xr-x 2 root root 1024 Jul 24 22:47 mnt/
drwxr-xr-x 2 root root 1024 Jul 24 22:47 proc/
drwxr-xr-x 2 root root 1024 Jul 28 19:07 sbin/
drwxr-xr-x 2 root root 1024 Jul 29 20:57 tmp/
drwxr-xr-x 4 root root 1024 Jul 29 21:35 usr/
drwxr-xr-x 3 root root 1024 Jul 28 19:52 var/
/bin:
total 713
-rwxr-xr-x 1 root bin 7737 Jul 24 22:16 cat*
-rwxr-xr-x 1 root bin 9232 Jul 24 22:48 chmod*
-rwxr-xr-x 1 root bin 8156 Jul 24 22:48 chown*
-rwxr-xr-x 1 root bin 19652 Jul 24 22:48 cp*
-rwxr-xr-x 1 root root 8313 Jul 29 21:16 cut*
-rwxr-xr-x 1 root bin 12136 Jul 24 22:48 dd*
-rwxr-xr-x 1 root bin 9308 Jul 24 22:48 df*
-rwxr-xr-x 1 root root 9036 Jul 29 20:24 dircolors*
-rwxr-xr-x 1 root bin 9064 Jul 24 22:48 du*
-rwxr-x--- 1 root bin 69252 Jul 24 22:51 e2fsck*
-rwxr-xr-x 1 root bin 5361 Jul 24 22:48 echo*
-rwxr-xr-x 1 root bin 5696 Jul 24 22:16 hostname*
-rwxr-xr-x 1 root bin 6596 Jul 24 22:49 kill*
-rwxr-xr-x 1 root bin 10644 Jul 24 22:17 ln*
-rwxr-xr-x 1 root bin 13508 Jul 24 22:17 login*
-rwxr-xr-x 1 root bin 26976 Jul 24 22:17 ls*
-rwxr-xr-x 1 root bin 7416 Jul 24 22:49 mkdir*
-rwxr-x--- 1 root bin 34596 Jul 24 22:51 mke2fs*
-rwxr-xr-x 1 root bin 6712 Jul 24 22:49 mknod*
-rwxr-xr-x 1 root bin 20304 Jul 24 22:17 more*
-rwxr-xr-x 1 root bin 24704 Jul 24 22:17 mount*
-rwxr-xr-x 1 root bin 12464 Jul 24 22:17 mv*
-rwxr-xr-x 1 root bin 20829 Jul 24 22:50 ps*
-rwxr-xr-x 1 root bin 9424 Jul 24 22:50 rm*
-rwxr-xr-x 1 root bin 4344 Jul 24 22:50 rmdir*
-rwxr-xr-x 1 root root 299649 Jul 27 14:12 sh*
-rwxr-xr-x 1 root bin 9853 Jul 24 22:17 su*
-rwxr-xr-x 1 root bin 380 Jul 27 14:12 sync*
-rwxr-xr-x 1 root bin 13620 Jul 24 22:17 umount*
-rwxr-xr-x 1 root root 5013 Jul 29 20:03 uname*
/dev:
total 0
lrwxrwxrwx 1 root root 10 Jul 24 22:34 cdrom -> /dev/sbpcd
crw--w--w- 1 root tty 4, 0 Jul 24 21:49 console
brw-rw---- 1 root floppy 2, 0 Apr 28 1995 fd0
lrwxrwxrwx 1 root root 4 Jul 24 22:34 ftape -> rft0
crw-rw-rw- 1 root sys 10, 2 Jul 18 1994 inportbm
crw-rw---- 1 root kmem 1, 2 Jul 28 16:21 kmem
crw-rw---- 1 root kmem 1, 1 Jul 18 1994 mem
lrwxrwxrwx 1 root root 4 Jul 24 22:34 modem -> cua0
lrwxrwxrwx 1 root root 4 Jul 24 22:34 mouse -> cua1
crw-rw-rw- 1 root sys 1, 3 Jul 18 1994 null
brw-rw---- 1 root disk 1, 1 Jul 18 1994 ram
crw-rw---- 1 root disk 27, 0 Jul 18 1994 rft0
brw-rw---- 1 root disk 25, 0 Jul 19 1994 sbpcd
*** I have only included devices for the SCSI partitions I use.
*** If you use IDE, then use /dev/hdxx instead.
brw-rw---- 1 root disk 8, 0 Apr 29 1995 sda
brw-rw---- 1 root disk 8, 6 Apr 29 1995 sda6
brw-rw---- 1 root disk 8, 7 Apr 29 1995 sda7
brw-rw---- 1 root disk 8, 8 Apr 29 1995 sda8
lrwxrwxrwx 1 root root 7 Jul 28 12:56 systty -> console
*** this link from systty to console is required
crw-rw-rw- 1 root tty 5, 0 Jul 18 1994 tty
crw--w--w- 1 root tty 4, 0 Jul 18 1994 tty0
crw--w---- 1 root tty 4, 1 Jul 24 22:33 tty1
crw--w---- 1 root tty 4, 2 Jul 24 22:34 tty2
crw--w--w- 1 root root 4, 3 Jul 24 21:49 tty3
crw--w--w- 1 root root 4, 4 Jul 24 21:49 tty4
crw--w--w- 1 root root 4, 5 Jul 24 21:49 tty5
crw--w--w- 1 root root 4, 6 Jul 24 21:49 tty6
crw-rw-rw- 1 root tty 4, 7 Jul 18 1994 tty7
crw-rw-rw- 1 root tty 4, 8 Jul 18 1994 tty8
crw-rw-rw- 1 root tty 4, 9 Jul 19 1994 tty9
crw-rw-rw- 1 root sys 1, 5 Jul 18 1994 zero
/etc:
total 20
-rw-r--r-- 1 root root 2167 Jul 29 20:25 DIR_COLORS
-rw-r--r-- 1 root root 20 Jul 28 12:37 HOSTNAME
-rw-r--r-- 1 root root 109 Jul 24 22:57 fstab
-rw-r--r-- 1 root root 271 Jul 24 22:21 group
-rw-r--r-- 1 root root 2353 Jul 24 22:27 inittab
-rw-r--r-- 1 root root 0 Jul 29 21:02 issue
-rw-r--r-- 1 root root 2881 Jul 28 19:38 ld.so.cache
*** Lots of things get upset at boot time if ld.so.cache is missing, but
*** make sure that ldconfig is included and run from rc.x to
*** update it.
-rw-r--r-- 1 root root 12 Jul 24 22:22 motd
-rw-r--r-- 1 root root 606 Jul 28 19:25 passwd
-rw-r--r-- 1 root root 1065 Jul 24 22:21 profile
drwxr-xr-x 2 root root 1024 Jul 29 21:01 rc.d/
-rw-r--r-- 1 root root 18 Jul 24 22:21 shells
-rw-r--r-- 1 root root 774 Jul 28 13:43 termcap
-rw-r--r-- 1 root root 126 Jul 28 13:44 ttys
-rw-r--r-- 1 root root 0 Jul 24 22:47 utmp
/etc/rc.d:
total 5
*** I didn't bother with shutdown scripts - everthing runs on a
*** ramdisk, so there's not much point shutting it down.
-rwxr-xr-x 1 root root 1158 Jul 24 22:23 rc.K*
-rwxr-xr-x 1 root root 1151 Jul 28 19:08 rc.M*
-rwxr-xr-x 1 root root 507 Jul 29 20:25 rc.S*
/lib:
total 588
*** I have an ELF system, so I include the ELF loader ld-linux.so. if
*** you are still on a.out, then you need ld.so. Use the file command to
*** see which libraries you should include.
lrwxrwxrwx 1 root root 17 Jul 24 23:36 ld-linux.so.1 -> ld-linux.so.1.7.3*
-rwxr-xr-x 1 root root 20722 Aug 15 1995 ld-linux.so.1.7.3*
lrwxrwxrwx 1 root root 13 Jul 24 23:36 libc.so.5 -> libc.so.5.0.9*
-rwxr-xr-x 1 root root 562683 May 19 1995 libc.so.5.0.9*
*** Must include libtermcap
lrwxrwxrwx 1 root root 19 Jul 28 19:53 libtermcap.so.2 -> libtermcap.so.2.0.0*
-rwxr-xr-x 1 root root 11360 May 19 1995 libtermcap.so.2.0.0*
/mnt:
total 0
/proc:
total 0
/sbin:
total 191
*** I use Slackware, which uses agetty. Many systems use getty.
*** Check your /etc/inittab to see which it uses. Note that you
*** need (a)getty and login to be able to start doing much.
-rwxr-xr-x 1 root bin 11309 Jul 24 22:54 agetty*
-rwxr-xr-x 1 root bin 5204 Jul 24 22:19 halt*
*** Must have this to boot
-rwxr-xr-x 1 root bin 20592 Jul 24 22:19 init*
-rwxr-xr-x 1 root root 86020 Jul 28 19:07 ldconfig*
-rwxr-xr-x 1 root bin 5329 Jul 27 14:10 mkswap*
-rwxr-xr-x 1 root root 5204 Jul 24 22:20 reboot*
-rwxr-xr-x 1 root root 6024 Jul 24 22:20 rdev*
-rwxr-xr-x 1 root bin 12340 Jul 24 22:20 shutdown*
-rwxr-xr-x 1 root root 5029 Jul 24 22:20 swapoff*
-rwxr-xr-x 1 root bin 5029 Jul 24 22:20 swapon*
-rwxr-xr-x 1 root root 20592 Jul 27 18:18 telinit*
-rwxr-xr-x 1 root root 7077 Jul 24 22:20 update*
/tmp:
total 0
/usr:
total 2
drwxr-xr-x 2 root root 1024 Jul 29 21:00 adm/
drwxr-xr-x 2 root root 1024 Jul 29 21:16 lib/
/usr/adm:
total 0
/usr/lib:
total 0
/var:
total 1
*** Several things complained until I included this and
*** the /etc/rc.S code to initialise /var/run/utmp, but this
*** won't necessarily apply to your system.
drwxr-xr-x 2 root root 1024 Jul 28 19:52 run/
/var/run:
total 0
Previous Chapter
Table of contents of this chapter, General table of contents
Top of the document, Beginning of this Chapter