-
Senior Member
registered user
New KNOPPIX remastering HOWTO
update : this version is now maintained at http://www.knoppix.net/docs/index.ph...masteringHowto so use that version instead of this
This is a guide that will show you howto remaster KNOPPIX.
( notes : commands showen in bold are on one line, so please mazimise the window, if you have any comments/sugestions please post below )
Requirements:
- at least 1.5 Gig of RAM+Swap total
- 3 gig free on a disk
Instructions:
- Boot from Knoppix CD
- Configure your internet connection ( we'll need this later )
- Open a root shell ( Kmenu->Knoppix->Root Shell ) - all commands below are ru
n from root shell - Make 2 directories, one for your new Master CD, one for the source, on a dis
k partition. You'll have to m - Make 2 directories, one for your new Master CD, one for the source, on a dis
k partition. You'll have to make sure these are mounted read-write. If say, you
have a partition with 3 gig free, mounted read-write /mnt/hda4, then mkdir /
mnt/hda4/knxmaster; mkdir /mnt/hda4/knxsource - mkdir /mnt/hda4/knxsource/KNOPPIX ( replace /mnt/hda4 with where your
harddisk is mounted ) - now, copy the KNOPPIX files to your source directory : cp -Rp /KNOPPIX/* /
mnt/hda4/knxsource/KNOPPIX that will take a little while 
- [b]mkdir /mnt/hda4/knxmaster/KNOPPIX
- cp /cdrom/index.html /mnt/hda4/knxmaster/
- now, copy everything in /cdrom/KNOPPIX/ to /mnt/hda4/knxmaster/KNOPPIX/ except the ~700 Mb KNOPPIX file.
- Now you can "chroot" into the copied KNOPPIX : chroot /mnt/hda4/knxsource
/KNOPPIX - new - I get a whole lot of /dev/null permission denied
errors, I'm not sure what thats all about, but I press CTRL+C and carry on anyway...
Update : fixed ! Well, check your mount status if you met the problem:
# mount
/dev/hda12 on /mnt/hda12 type ext3 (rw,nosuid,nodev)
where "nodev" means that you are not accessible on mounted filesystem
and you can not access /dev/null. And some scripts get output redirect
to /dev/null...
To solve this you should mount target partition before you do chroot
like this:
# mount /dev/hda12 /mnt/hda12
And see whats changed:
# mount
/dev/hda12 on /mnt/hda12 type ext3 (rw)
then you can carry on and chroot.
- You are now chrooted. "/" is actually "/mnt/hda4/knxsource/KNOPPIX"
- To use the internet you need to mount proc mount -t proc /proc proc
- now edit /etc/resolv.conf and add your nameserver
- check your chrooted internet connection : ping google.com
- Now you can change stuff. If you want to add programs, you'll probally have
to remove some programs to free up space. apt-get remove <program>
will remove that program. - change stuff.. user settings are in /etc/skel
- ...
- Unmount /proc - very imporntant! umount /proc
- Press CTRL+D to leave being chrooted.
Notes :
interesting stuff in /etc/init.d/knoppix-autoconfig :
The X background file is /cdrom/KNOPPIX/background.gif
As well as floppyconfig, there is cdromconfig which will run /cdrom/KNOPPIX/knoppix.sh
interesting stuff in /etc/init.d/xsession
it ALSO sets background as /usr/local/lib/knoppix.gif
Now, onto creating the ISO file
- we've finished customizing and ready to burn!
- first do some cleanup : remove .bash_history files, tmp files etc
- rm -rf /mnt/hda4/knxsource/KNOPPIX/.rr_moved
- Now we'll make the big KNOPPIX file which is a cloop compressed ISO 9660 filesystem : mkisofs -R -U -V "KNOPPIX.net filesystem" -P "KNOPPIX www.knoppix.net" -hide-rr-moved -cache-inodes -no-bak -pad /mnt/hda4/knxsource/KNOPPIX | nice -5 /usr/bin/create_compressed_fs - 65536 > /mnt/hda4/knxmaster/KNOPPIX/KNOPPIX
- if all went well, onto making the final CD-ROM Image :
- cd /mnt/hda2/knxmaster
- mkisofs -pad -l -r -J -v -V "KNOPPIX" -b KNOPPIX/boot.img -c KNOPPIX/boot.cat -hide-rr-moved -o /some/where/knoppix.iso /mnt/hda2/knxmaster ( replace /some/where/ with where you want to store the final image ready for burning. )
- all done!
Thats it. This is an updated version of my previous howto. This is not meant for linux beginers, you will need to know your way around linux... to get this to work. I'll update this as corrections/improvemtns/etc come through.
Thanks to aay for some corrections
Similar Threads
-
By PrOCesSkIlL in forum Customising & Remastering
Replies: 29
Last Post: 04-02-2004, 01:32 AM
-
By Alexxx in forum Customising & Remastering
Replies: 3
Last Post: 02-24-2004, 08:02 PM
-
By hanx in forum Customising & Remastering
Replies: 1
Last Post: 09-02-2003, 05:31 AM
-
By MichielioZ in forum Customising & Remastering
Replies: 11
Last Post: 04-15-2003, 12:13 AM
-
By Robert Michel in forum Ideas
Replies: 7
Last Post: 03-06-2003, 11:33 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray
$169.99

Lenovo ThinkPad T14S Gen 1 8-Core 4750U 1.70 GHz 512 GB SSD 16 GB RAM Win11Pro
$240.00

Intel Core i9-9900K SRG19 3.60GHz 16MB 8-Core LGA1151 B Grade CPU Processor
$175.00

HP Pavilion Laptop Computer 15.6 8-Core Intel i3 8GB RAM 628GB Storage, Open Box
$299.00

Intel Xeon E5 - 2667V2 / SR19W 3.30GHz 25MB 8-Core CPU Socket LGA2011
$30.00

AMD Ryzen 7 9700X 8-Core 16-Thread 40MB Cache Socket AM5 9000 Series Processor
$245.99

AMD Ryzen 7 5800X 8-core, 16-Thread Unlocked Desktop Processor
$189.99

Microsoft Surface Go 2 Laptop Core i5 1135G7 2.4GHz 8GB 128GB SSD
$179.99

Dell T7810 Workstation 8-Core 2.40GHz E5-2630 v3 No RAM GPU HDD OS
$259.98

Dell OptiPlex 5070 SFF i7-9700 (8-Core) 3.0GHz 16GB 256 SSD Windows 11
$250.00