-
remastering while booted from harddrive
Thought I'd share my approach to remastering. This works for me partly because the ISOs I am working with are small, but you probably could do the same with the full Knoppix iso if you have a powerful enough computer. There is nothing new here, I borrowed form the howto on this site and from one floating around about remastering lnx-bbc.
Using this approach the parent environment is your hard drive, not the CD -- which has a lot of advantages.
You need cloop-utils and rsync to do this.
I start out by making a directory, '~/knp/' in this case, and sticking the iso I am working off of in there.
mkdir tmp-cdrom
mount -o loop vsmall-x.iso tmp-cdrom/
cd tmp-cdrom/
extract_compressed_fs KNOPPIX/KNOPPIX > ../UNCOMPRESSED_KNOPPIX
cd ..
mkdir tmp-cloop
mount -o loop UNCOMPRESSED_KNOPPIX tmp-cloop/
rsync -plarv tmp-cloop/ cloop/
rsync -plarv tmp-cdrom/ cdrom/
umount tmp-cloop
umount tmp-cdrom
rm UNCOMPRESSED_KNOPPIX
rm -r tmp-cloop tmp-cdrom
chroot cloop/
do what you want...
(apt-get, hack, delete, etc)
**I've found that it isn't necessary to mount and unmount proc/ when you are working off of the hard drive**
Ctrl + D
cd cloop/
rm -r rr_moved/
cd ..
mkisofs -R -U -V "KNOPPIX filesystem" -P "KNOPPIX" -hide-rr-moved -cache-inodes -no-bak -pad /home/john/knp/cloop/ | nice -5 /usr/bin/create_compressed_fs - 65536 > KNOPPIX
cp KNOPPIX cdrom/KNOPPIX/
cd cdrom/
mkisofs -pad -l -r -J -v -V "KNOPPIX" -b KNOPPIX/boot.img -c KNOPPIX/boot.cat -hide-rr-moved -o /home/john/vsmall-x.iso /home/john/knp/cdrom
After you are done, leave the cloop/ and cdrom/ behind, then you can chroot in and out when you want and skip most of the above steps next time.
Similar Threads
-
By TanZed in forum General Support
Replies: 6
Last Post: 05-23-2004, 08:17 PM
-
By nachral in forum General Support
Replies: 0
Last Post: 12-17-2003, 04:33 AM
-
By j.drake in forum General Support
Replies: 14
Last Post: 09-08-2003, 04:39 PM
-
By doogie in forum General Support
Replies: 2
Last Post: 08-15-2003, 10:02 PM
-
By arkaine23 in forum Customising & Remastering
Replies: 1
Last Post: 07-19-2003, 11:23 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

AMD Ryzen 5 5500 Processor ( read Description)
$59.00

Intel Core i7-4770 3.40GHz Quad Core SR149 LGA 1150 CPU Processor tested
$35.00

INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH
$179.99

Lenovo ThinkCentre M920s SFF Barebones PC Motherboard PSU DVD No CPU RAM SSD
$27.99

Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151
$79.99

Intel Core i7-3770K 3.5 GHz Processor
$39.00

Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor
$114.99

Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor
$67.99

INTEL CORE I9-10980XE PROCESSOR | 3.00GHZ | SRGSG
$299.99

Intel Core i7-10700 8-Core 16-Thread 2.9GHz Desktop CPU LGA1200 SRH6Y Z490 Z590
$129.00