Last Edited: 01 May 2008 by superuser
Importered from old WiKi -- 30/04-08 18:04.

~ Remaster scripts by AlienX


The most updated versions are:

1-remaster-livecd-0.0.4.tar.gz

http://www.murga.org/%7Epuppy/download.php?id=1121

2-remaster-livecd-fast.tar.gz

http://www.murga.org/%7Epuppy/download.php?id=1183

(experimental, not yet tested by me in real burning and booting, the main difference is that it doesn't
touch usr_cram.fs, the changes to folder /usr goes to usr_more.sfs, very fast, the remaster is done in
a minute or two)

How to use both of them:

1-Boot Puppy 1.05 or 1.06 live cd (don't use Puppy installled on hd)

2-install whatever you want: dotpups or pupgets

3-do some cleanup of your /root folder (dont let movies, mp3 or any big files on /root/my-docuyments and /root)

4-run the script

5-the main and first question for the script is to where to create the remaster folder

don't choose any folder inside /root, it will not work!

choose a folder on a ext2 or ext3 partition on hd with enough space (about 300 mb)

if you have a lot of ram (768 or more) you can accept the default (/mnt/remaster) and do all work in ramdisk

6-burn the iso that will be in the remaster folder you have choosen

The script do all for you, is fully automatic, creates a new image.gz, put the ramdisk_size= value in isolinux.cfg
and creates a new usr_cramfs or usr_more.sfs and the final iso...

TIP:

when we install a lot of dotpups, folder /root/my-applications becomes big and then file image.gz also

this is not good for low ram computers!

so I suggest that before renning script user moves /root/my-applications to /usr and symlink it back to /root,
file image.gz will be smaller

AlienX

Remaster image.gz


1. mkdir mountdir
2. gunzip image.gz
3. mount -o loop image mountdir
4. ...now change things as you like...then get out of mountdir!...
5. umount mountdir
6. gzip image

here is how i made a new image.gz from scratch

i wanted to add some new kernel modules that would grow the image size > 12mb so editing the default image.gz
was not an option for me.

in copied files from image.gz -> /my-documents/imagep/ as follows
gunzip image.gz
mount -o loop image /mnt/data
copied the data folder to /my-doc..

then i added new files and made a new image.gz as follows

dd if=/dev/zero of=image bs=1k count=13312 (13 Mb)
mke2fs -F -m 0 -b 1024 image
mkdir /mnt/tmpimage
mount -o loop image /mnt/tmpimage
copy the files from /my-doc../imagep to /mnt/tmpimage
umount tmpimage
gzip image

now when booting don't forget to add RAMDISK_SIZE=

well whatever the new size is otherwise you'll get problems when booting



CategoryHowto

Syndicate content Comments

old wikka link does not resolve

the old url

http://www.puppylinux.org/wiki/archives/old-wikka-wikki/categorydocumentation/RemasterThings

does not resolve to this page