Quote |
Remastering HOWTO for Damn Small Linux (Copying manually) Start by running from the live DSL-cdrom Become root and mount the right partition $sudo su #mount -rw /dev/hda3 /mnt/hda3 Make the directories needed #mkdir /mnt/hda3/source #mkdir /mnt/hda3/newcd #mkdir /mnt/hda3/newcd/KNOPPIX Copy necessary files to directory /newcd #cp -Rp /cdrom/autorun.bat /mnt/hda3/newcd (MY NOTE – no such file on my cd) #cp -Rp /cdrom/autorun.inf /mnt/hda3/newcd (MY NOTE – no such file on my cd) #cp -Rp /cdrom/index.html /mnt/hda3/newcd Copy files to directory /newcd/KNOPPIX #cp -Rp /cdrom/KNOPPIX/boot.cat /mnt/hda3/newcd/KNOPPIX #cp -Rp /cdrom/KNOPPIX/boot.img /mnt/hda3/newcd/KNOPPIX Copy the sources to the right directory #cp -Rp /KNOPPIX/* /mnt/hda3/source #cp -Rp /KNOPPIX/.bash_profile /mnt/hda3/source Go through and copy wanted things to /mnt/hda3/source I usually keep scripts, studyprojects and whatever I want to have handy in a directory on a usb-drive. That makes it easy to copy it to what will be the home directory on the live cd. In that way all I have to take along is the live cd, knowing it's all right there (and perhaps some favorite mp3's on the usb-drive): (Don't forget to mount your usb-drive first with mount.app if you try this) #cp -Rp /mnt/sda1/Docs/* /mnt/hda3/source/home/damnsmall Create the custom compressed image file: #mkisofs -R /mnt/hda3/source | create_compressed_fs - 65536 > /mnt/hda3/newcd/KNOPPIX/KNOPPIX Create the iso-file as follows: #cd /mnt/hda3 #mkisofs -r -J -b KNOPPIX/boot.img -c KNOPPIX/boot.cat -o myknoppix.iso newcd Copying your new iso-file to another partition to be able to burn it First be sure that you have mounted the target partition (You can use the mount.app) #cp /mnt/hda3/myknoppix.iso /mnt/hda1 Now just burn the iso with whatever software you have installed in the target partition. It can surely be done in many ways, but this is the way I do it |
Quote |
Follow this procedure with all the modules so they all end up in /mnt/hda3/source/home/dsl #chroot source #cd home/dsl OBS! Make sure there are two hyphens "-" before --same in same-owner. I doesn't look so in the standard firefox browser. #tar -zxvf gnu-utils.dsl –same-owner -C / #rm gnu-utils.dsl #exit |