◄  ▲  ► |
# etc/fstabI need to create an "fstab" file to specify what devices get mounted where automatically. The four entries I show here are pretty much required. Well, devpts may not be required, but leaving it in takes no room and may prevent future problems.
echo "Creating /etc/fstab"
> tempfs/etc/fstab echo "# Entry format - <device> <mount point> <fs type> <mount options> <dump> <fsck>"
>> tempfs/etc/fstab echo "/dev/root / ext2 rw,noauto 0 1"
>> tempfs/etc/fstab echo "devpts /dev/pts devpts defaults,gid=5,mode=620 0 0"
>> tempfs/etc/fstab echo "proc /proc proc defaults 0 0"
>> tempfs/etc/fstab echo "/dev/ram0 / ext2 defaults 0 0"
You may notice I seem to have my "echo" commands and my redirection ">" stuff backwards here. It's another DOS trick to help things line up neater. Once again, I was very happy to see the same syntax working in Linux.