Specifications

Remote Booting Linux on Intel Processors (CERN Variant)
Concurrent Technologies Page 8 of 30
“mkdir /root/netboot”
“cp /usr/src/linux/arch/i386/boot/bzImage /root/netboot”
Configuring the root File System and Performing the Network Boot
As well as a kernel, the Client also needs a root file system. There are several ways of serving up a root file
system to the Client, we discuss three possibilities below and show how the kernel and root file system are
put together to perform a network boot using Etherboot.
NFS Only
1. Perhaps the most flexible method for serving a root file system to a diskless client is with
NFS. To create a root file system on the Server that NFS will serve up to the Client, Cut and
Paste the script below, save it to “/usr/bin/mknfsfs”, and type,
“dos2unix /bin/mknfsfs” #Ensure the file is in Unix format
“chmod 755 /bin/mknfsfs” #Make the file executable
“mknfsfs 192.67.84.171” #Creates a root file system in the /tftpboot directory
#!/bin/sh
if [ $# != 1 ]
then
echo Usage: $0 client-IP-addr
exit 1
fi
cd /
umask 022
echo -n Making Root File System template for $1.
mkdir -p /tftpboot/$1
# Just make these ones
for d in home mnt proc tmp usr root boot
do
mkdir /tftpboot/$1/$d
echo -n .
done
chmod 1777 /tftpboot/$1/tmp
touch /tftpboot/$1/fastboot
chattr +i /tftpboot/$1/fastboot
# Copy these ones
for d in bin lib sbin dev etc var usr/sbin
do
cp -a $d /tftpboot/$1/$d
echo -n .
done