meo
Group: Members
Posts: 552
Joined: April 2004 |
|
Posted: Oct. 11 2004,12:19 |
|
Clacker!
Thanks for your post on remastering only in ram (and just 256 MB, just the same amount as i have in my laptop). I just had to try it out! And with some tweaks it worked just fine. Im posting this from this remaster actually. Here comes the complete HOWTO on how I did it:
Remastering HOWTO for Damn Small Linux
Change the keyboard-layout (unless you have a us keyboard)
$sudo loadkeys se-latin1 (I have a swedish keyboard-layout) $startx
Mount the partition where you have stored the files you want to add
$sudo su #mount -rw /dev/hda4 /mnt/hda4 (Here I have stored files I want to add)
Make the directories needed
#mkdir source #mkdir newcd #mkdir newcd/KNOPPIX
Copy necessary files to directory /newcd
#cp -Rp /cdrom/boot newcd #cp -Rp /cdrom/lost+found newcd #cp -Rp /cdrom/index.html newcd
Copy the sources to the right directory
#cp -Rp /KNOPPIX/* source #cp -Rp /KNOPPIX/.bash_profile source
Go through and copy wanted things to source
#cp -Rp /mnt/hda4/backgrounds source/etc/skel/.fluxbox #cp -Rp /mnt/hda4/styles/* source/usr/share/fluxbox/styles #cp -Rp /mnt/hda4/Skins/* source/etc/skel/.xmms/Skins
Create the custom compressed image file:
#mkisofs -R source | create_compressed_fs - 65536 > newcd/KNOPPIX/KNOPPIX
Then I had to remove the source-dir to gain space and make it work
Create the iso-file as follows:
#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 partition where you have your favourite cd-burning program
#cp mydsl.iso /mnt/hda1 (Here I have my favourite cd-burning program)
In my case I had to delete the whole source-dir in order to make it work. Otherwise i got error messages about not enough space etc. I might mention also that i have a full GB of swap on my drive. And this was the first time I can remember that it was used ever (during the remaster-process). About 10 % was used at the most. OK thats all for now!
Have fun everybody, meo
P.S. Albert_sr I'll come back to your script after checking it out. Thanks! D.S.
-------------- "Live and let live" Treat others the way you want to be treated because that's what you should expect from them.
"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire
|