- Linux Training
- Desktop Tutorials
- Server Tutorials
|Remaster the DSL CD|
|Desktop Training - DSL|
Remaster the DSL CD
Remastering is a process where you rebuild the DSL CD with specific programs and settings that you need. You make the DSL CD to what you want
Preparing to Remaster
There are several things that you will need to make this happen. The setup is important because if you don't setup right you will be fighting it all the way.
This computer is a place that you can build your specific settings for the CD and you can then save to the hard drive on a prepared partition.
1. Partition for Your Specific Settings - this is where you will keep MyDSL programs, files, documents, anything you want to have burned into the CD. The size is reflective of what you will add. The size should be 1 MB or bigger.
2. Partition to Create the Build - this is where you will place your source and build the actual iso image. This should be at least 5 MB as you will want to keep several isos possibly.
3. Live CD - probably the easiest is to build the iso from the Live CD as you will have everything you need from the CD. The CDROM should be a good quality CDROM and CD so you can eliminate any errors. An old one that is flakey, may cost you a lot of time...I know. Make sure you cehck the CD with a md5sum from the dsl download site to verify that the CD you start with is perfect!
1c3a4ccdc34adcf8bfad7ac2495764ba # This is for dsl-2.3.iso
Burn CDs Computer
You will need to be able to burn the iso image that is created on a CD. This can be on the Remaster Computer or it can be a separate computer. If it is a separate computer it is best to network the computers to make it easy to move information.
This is a detailed outline that you need to follow closely. There may be many ways to do this...this is just one that worked. Note that this is setup for new versions, some of the earlier versions had a different file structure.
Boot the Live CD on the Remaster Machine
Mount All Needed Partitions
Open a terminal and become root with this command:
Mount the two partitions you will use.
Note that the partitions are mounted read/write. These parttions should be formatted as ext2 file systems.
mount -rw /dev/hda2 /mnt/hda2 # the MyDSL partiton
mount -rw /dev/hda3 /mnt/hda3 # the Remaster partition
Create Needed Directories on Remaster Partition
mkdir /mnt/hda3/source newcd newcd/KNOPPIX
Copy Files from CD to New Directories
The -Rp option copies all files in the dirctory and copies the current permissions.
cp -Rp /cdrom/boot newcd
cp -Rp /cdrom/lost+found newcd
cp -Rp /cdrom/index.html newcd
cp -Rp /cdrom/KNOPPIX/* source
cp -Rp /cdrom/.bash_profile source
Copy Personal Settings From /mnt/hda2
Move Into /mnt/hda3 Move your working directory into the remaster partition so you do not need to type all of the file paths.
Create a Compressed Image File
mkisofs -R source |create_compressed_fs - 65536 > newcd/KNOPPIX/KNOPPIX
Create iso Image
mkisofs -no-pad -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o mydsl.iso newcd
Move the New iso Image
This should create an iso image called mydsl.iso. Copy or move it to a location to be burned.
ReMaster a CD and then take the KNOPPIX file off of the ReMaster and exchange it for the Qemu version. Then you should be running your own ReMaster in Qemu.