SLAC CPE Software Engineering Group
 

Create Boot CD


SLAC Detailed
SLAC Computing
Software Home
Software Detailed
 

 

 


 

              

 

 

 

You can create a new boot cd either by using the existing boot cd or by creating one using mkbootdisk command.

Creating a new  boot/install CD using existing boot/install CD provided by SCCS –

 

  • Mount the SCCS provided CD.

mount  /dev/cdrom  /mnt

 

  • mkdir  /tmp/mybootcd
  • cp -pR /mnt/*  /tmp/mybootcd
  • Eject the SCCS  CD

Eject

  • Determine and customize your kickstart file. This particular example uses nfs:172.27.8.11:/export/mccfs/usr/local/admin/kickstart/ks.cfg  as kickstart file. Customize your kickstart file from mccfs5.
  • Edit the /tmp/mybootcd/isolinux/isolinux.cfg  file for customizing your kickstart

It will look like this after editing –

# cat  /tmp/mybootcd/isolinux/isolinux.cfg

default linux

prompt 1

timeout 600

display boot.msg

F1 boot.msg

F2 options.msg

F3 general.msg

F4 param.msg

F5 rescue.msg

label linux

  kernel vmlinuz

  append initrd=initrd.img ks=nfs:172.27.8.11:/export/mccfs/usr/local/admin/kickstart/ks.cfg ksdevice=eth0  ip=134.79.151.67 netmask=255.255.255.0 gateway=134.79.151.1

 

label text

  kernel vmlinuz

  append initrd=initrd.img text

label ks

  kernel vmlinuz

  append ks initrd=initrd.img

label local

  localboot 1

label memtest86

  kernel memtest

  append -

  • Now create an ISO file of /tmp/mybootcd/isolinux directory.

# cd   /tmp/mybootcd

       # mkisofs -o ./bootcd.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot  -boot-load-size 4                                                      -booot-info-table   .       <<<-    Note don’t forget the  “.”

 

 

# ls -la /tmp/mybootcd/

total 25188

drwxr-xr-x 3 root root     4096 Mar 16 18:58 .

drwxrwxrwt 8 root root     4096 Mar 17 09:42 ..

-r--r--r-- 1 root root      220 Jul 11  2011 TRANS.TBL

-rw-r--r-- 1 root root 12863488 Mar 16 18:57 bootcd.iso 

drwxrwsr-x 2 root 5443     4096 Mar 16 17:43 isolinux

 

  • Now burn the new cd (normally we can do this from OPIs )

Put a brand new cd in cdrom drive.

#  cdrecord   -scanbus

#  cd  /tmp/mybootcd

#  cdrecord -v -dao -speed=2 -eject bootcd.iso

 

 

Miscellaneous –

Commands in case you want to create your boot cd using mkbootdisk command –

mkbootdisk

mount -o loop -t iso9660 /tmp/boot.iso /mnt

 

For having the same boot cd to cater for different configurations  edit following files from the cd –

 isolinux/boot.msg  and  isolinux/isolinux.cfg

 

 

 

# cat  /tmp/mybootcd/isolinux/boot.msg  (This is what you see immediately after you boot from cd )

 

 

splash.lss

 -  To install or upgrade in graphical mode, press the 01<ENTER>07 key.

 -  To install or upgrade in text mode, type: 01linux text <ENTER>07.

 -  Use the function keys listed below for more information.

 

0f[F1-Main] [F2-Options] [F3-General] [F4-Kernel] [F5-Rescue]07

 

# cat /tmp/mybootcd/isolinux/isolinux.cfg    (In this file you can put different entries for different configurations)

 

default linux

prompt 1

timeout 600

display boot.msg

F1 boot.msg

F2 options.msg

F3 general.msg

F4 param.msg

F5 rescue.msg

label linux

  kernel vmlinuz

  append initrd=initrd.img ks=nfs:172.27.8.11:/export/mccfs/usr/local/admin/kickstart/ks.cfg ksdevice=eth0  ip=134.79.151.67 netmask=255.255.255.0 gateway=134.79.151.1

 

label text

  kernel vmlinuz

  append initrd=initrd.img text

label ks

  kernel vmlinuz

  append ks initrd=initrd.img

label local

  localboot 1

label memtest86

  kernel memtest

  append -

 

 

 



 

 

[SLAC CPE Software Engineering Group][ SLAC Home Page]

 

Author: Ken Brobeck, 10-Aug-2007
Last updated, 19-Mar-2012