-
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

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN
$145.00

pfSense Firewall 16-Core Atom C3958 8GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI VPN
$184.99

OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN
$258.00

SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED
$999.99

OPNsense Firewall VPN QAT 8-Core Atom C3758 2.20GHz 16GB DDR4 128GB SSD 8xNIC
$175.00

Fortinet FortiGate 60F FG-60F P24286-03-13 Network Firewall Security Appliance
$155.75

Firewalla Gold Pro - 10 Gbps Cyber Security Firewall
$680.00

Palo Alto PA-220 Next-Gen Firewall 520-000309-00J
$40.00

Cisco Meraki MX67-HW Security Appliance Firewall NEW Unused Unclaimed
$202.50

NETGEAR ProSafe 8-Port Gigabit VPN Firewall FVS318G NEW IN BOX
$69.99