Other Help Topics :: ReMastering HOWTO for DSL



If you're trying to add sylpheed settings to a remaster, you need to copy both the .sylpheed and Mail directories from your home directory to the etc/skel directory of remaster source before you use mkisofs and create_compressed_fs.  If you put it in KNOPPIX/home/dsl it doesn't show up after you boot the remastered disk.

Anything you want to wind up in the home/dsl directory needs to go into the etc/skel directory of the remaster.

Thank you to everybody that has helped me forward with this Remastering HOWTO!!! Here it comes ready for the changes in the most recent version 0.8:

Remastering HOWTO for Damn Small Linux

Change the keyboard-layout (unless you have a us-keyboard)

$sudo loadkeys se-latin1
$startx

Format the partition with the ext2 filesystem

$sudo mke2fs /dev/hda3

Become root and mount the right partition

$sudo su
#mount -rw /dev/hda1 /mnt/hda1
#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/boot /mnt/hda3/newcd
#cp -Rp /cdrom/lost+found /mnt/hda3/newcd
#cp -Rp /cdrom/index.html /mnt/hda3/newcd

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

#cp -Rp /mnt/hda1/Docs/* /mnt/hda3/source/home/dsl
#cp -Rp /mnt/hda1/styles/* /mnt/hda3/source/usr/share/fluxbox/styles

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 -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

Copy the iso-file to the first partition on your harddrive

#cp /mnt/hda3/mydsl.iso /mnt/hda1

Well this is at least one way to do it (and it works).

Have fun everybody!
meo

And to ask a really silly question:

If we'd managed to remaster with open office, and used a CD-RW instead of CR-R, could we also then use the remastered CD to do some work offsite with a few Microsoft office files (yes, many people do use them, sadly) on our own laptop, save the docs in word and excel format on a directory on the CD-RW, let colleagues copy the files if necessary from the CD-RW at the end of the day, and then bring back the remastered CD-RW with the extra wrd/xls files and dump them on the main desktop machine?

In other words, could a remastered DSL on CD-RW become a portable and dynamic workspace?  (Recognising, of course, you'd periodically run out of space on a CD-RW, but you'd just start another one.)

DSL could be very good for this because it leaves so much spare space on a full size CD.  Also, works for machines that can't boot from USB etc.

Essentially, would the script work with CD-RW, and if CD-RW is used, can a rw directory be mounted on it?

Islander

Meo-

Huge thanks to you for the remaster howto-
have just used it on 8.1.1 and the only problem I had
was my own fault- I wanted to put some things in /home/dsl before
I made the iso, but of course they are not there when you run live-
they are still in the KNOPPIX directory on the cd.But thats no big problem.
In hindsight, I should have remembered what Clacker said.
Thanks again for taking the time and trouble to post this up-
it has been a great help.



Adraker

Question:

Is there a Very Good Reason for using mkisofs rather than building an appropriately-sized ext2 image file, then filling it?

ie (for a system of 112M uncompressed):

dd if=/dev/zero of=remaster.img bs=1M count=112
mke2fs remaster.img
mkdir /mnt/temp
mount remaster.img /mnt/temp -o loop
cp -a /stuff/to/remaster /mnt/temp
sync
umount /mnt/temp
create_compressed_fs -b remaster.img 65536 > remaster.ci

The only advantage this has, if it works, is that you have filesystem control at a processing level closer to final product (less to wait for in those "oops! lemme change that one line in /etc/wtf" moments)

I tested manual mount of ext2 as cloop today, so I know that part works (and knows to be read-only)...

Next Page...
original here.