mkisofs in linux

If you have a tutorial or tip related to the UBCD, why not share it with other users here?

Moderators: Icecube, StopSpazzing

Locked
Message
Author
coin
Posts: 21
Joined: Thu Sep 18, 2008 5:27 pm
Location: CA, US

mkisofs in linux

#1 Post by coin » Thu Sep 18, 2008 5:56 pm

Hi,
Am new to UBCD and its forums.
Work mostly in Linux, and found that the following Command Line Interface command was effective in compiling a working ubcd411.iso CD:

Code: Select all

mkisofs -o ./ubcd411.iso -N -J -joliet-long -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table ./
Key things to note are:
1. The so-called source directory a.k.a. the "root" directory was /home/<localuser>/ubcd-extract (and WITHOUT a "C:\" as in MS-Windows)
2. The entire ubcd-extract directory was chown'ed to the localuser rather than to the superuser, and after assembling the UBCD source tree with customizations, no Write permission was granted, i.e., all individual files were chmod'ed to 0555 a.k.a. r-xr-xr-x
3. As written in the syslinux-3.71 archive doc/isolinux.txt file and at http://syslinux.zytor.com/wiki/index.php/ISOLINUX, there does NOT need to be a pre-existing isolinux/boot.cat as this is generated by the above mkisofs command sequence.
OTOH, there certainly DOES need to be a pre-existing and correct isolinux/isolinux.bin as this is NOT generated [correctly] by the above CLI command sequence.

Any corrections, suggestions, or ways to optimize the UBCD mastering process are certainly welcome!
accrc j.h., are you reading this??

Current goal is to find the easiest way(s) to create, in Linux, floppy disk images and their gzip'ped .igz counterparts for UBCD remastering.

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#2 Post by Icecube » Fri Sep 19, 2008 2:57 am

I have unpacked UBCD5 beta 5 in ./ubcd/ubcd50b5

This is my mkisofs-ubcd.sh (it is located inside the ./ubcd directory):
# You can double click on this script to remaster UBCD.
# It will automatically CD to the directory of the script
currrent_dir=`dirname $0`
echo Change directory to: "$currrent_dir".
cd $currrent_dir
echo

# Name of the iso that you want to create
isoimagefilename="./ubcd50b5-custom.iso"

# Directory where you have unpacked UBCD
root_of_iso_tree="./ubcd50b5/"

# Volume Id of the CD (label of the CD)
VOLUME_ID="UBCD50b5"

# Make the iso.
mkisofs -N -J -joliet-long -D -V "$VOLUME_ID" -o "${isoimagefilename}" -b "isolinux/isolinux.bin" -c "isolinux/boot.cat" -hide "isolinux/boot.cat" -no-emul-boot -boot-load-size 4 -boot-info-table "${root_of_iso_tree}"
You have to make this script executable (chmod a+x mkisofs-ubcd.sh) and edit the root_of_iso_tree, the isoimagefilename and VOLUME_ID parameter. Afterwards you can just double click on it, without opening a terminal and cd-ing to the right directory.

If you remaster UBCD, I recommend that you update isolinux / syslinux also. Don't use the syslinux package which is included in your distro, it is probably very outdated.
http://syslinux.zytor.com/

Update also the freedos image (there should be soon an update that correct the errors in the last version, so wait a little bit more).
@ as702: Which is the best version of your freedos image for UBCD411? I suspect that you don't need the last version for it (can be wrong).
http://ultimatebootcd.com/forums/viewtopic.php?t=1422

UBCD50beta5 contains Parted Magic (linux). It also has antivirus software.
http://ultimatebootcd.com/forums/viewforum.php?f=7

If you want to edit .igz files, rename them to .img.gz or .gz, unpack them with gzip of file-roller (GUI).

Making floppy images in linux:
For a 1.44MiB floppy image:
dd if=/dev/zero of=./newimage.img bs=1440k count=1

For a 2.88MiB floppy image:
dd if=/dev/zero of=./newimage.img bs=1440k count=2
or
dd if=/dev/zero of=./newimage.img bs=2880k count=1

See man dd for more information.
You can format the images with mkfs.msdos. They won't be bootable. You need to transfer a bootsector from a bootable floppy (image)

You can find bootable freedos images at: http://bootcd.narod.ru/images.htm.

See also: Question: Where do I get disk images > 2.88MB? : http://ultimatebootcd.com/faq.html.

Locked