The final step in this long process is getting the distro onto a CD for installation. First, we need to make ISOs from our discs, for which we use the mkisofs command. For the first disc, we'll use a few extra arguments to make the CD bootable. The other CDs are made similarly. For UBLinux 4, we mounted RHEL 4 discs 2-4(as in Selecting Packages) and copied the entire contents over, edited the .discinfo file, and rebuilt with a UBLinux 4 label.
When we copy over the CD images, there are a lot of extra TRANS.TBL files that can be deleted. To do this, run this command for each CD image you copy over:
find DiskX -name TRANS.TBL -exec rm -f {} \;
To make the first CD, we need to execute mkisofs inside the Disk1 directory.
Change to the Disk1 directory:
cd /home/ublinux/i386/Disk1
Make the CD ISO image. NOTE: The following command should all be on one line, it is cut in half here to fit on the screen.
mkisofs -r -T -J -V "UBLinux 4 Disk 1" -b isolinux/isolinux.bin -c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table -o UBLinux4-Disk1.iso /home/ublinux/i386/Disk1Move the ISO image back down a directory:
mv UBLinux4-Disk1.iso ..
For each subsequent CD, we can leave off the -b and -c arguments.
mkisofs -r -T -J -V "UBLinux 4 Disk 2 of 4" -o /home/ublinux/i386/UBLinux4-Disk2.iso /home/ublinux/i386/disc2
mkisofs -r -T -J -V "UBLinux 4 Disk 3 of 4" -o /home/ublinux/i386/UBLinux4-Disk3.iso /home/ublinux/i386/disc3
mkisofs -r -T -J -V "UBLinux 4 Disk 4 of 4" -o /home/ublinux/i386/UBLinux4-Disk4.iso /home/ublinux/i386/disc4
Finally, you'll need to implant the MD5 into the isos. Forgetting to do this could cause the ISOs to fail the media check, with an error saying "Unable to read the disc checksum from the primary volume descriptor".
To do this, we use the implantmd5sum command, which is part of the anaconda-runtime package:
/usr/lib/anaconda-runtime/implantmd5sum UBLinux4-Disk1.iso
/usr/lib/anaconda-runtime/implantmd5sum UBLinux4-Disk2.iso
/usr/lib/anaconda-runtime/implantmd5sum UBLinux4-Disk3.iso
/usr/lib/anaconda-runtime/implantmd5sum UBLinux4-Disk4.iso
To burn these ISOs, use the cdrecord command:
(for <=2.4 kernel)
cdrecord -v speed=32 dev=0,0,0 -data UBLinux-Disk1.iso
(for 2.6 kernel)
cdrecord -v speed=32 dev=/dev/cdwriter -data UBLinux-Disk1.iso
That covers our step-by-step documentation on how we created UBLinux. If there are any questions or comments, please feel free to send them to ublinux-support@buffalo.edu.
References:
Send Questions and comments to ublinux-support@buffalo.edu.
Last Modified 10/20/05