-
Working shrink script
Ignore the previous post. The mke2fs line was wrong.
Now I use the following script to shrink the minirt2*.gz file after
modifying linuxrc and other files inside minirt26.gz.
shrinkminirt.sh
Code:
#!/bin/sh
DEST=../master/boot/isolinux/
MFILE=${DEST}/minirt26
gunzip ${MFILE}.gz || exit 1
mv $MFILE ${MFILE}.old || exit 1
dd if=/dev/zero of=$MFILE bs=4096 count=1125 || exit 1
mke2fs -L "KNOPPIX miniroot" -b 1024 -N 8192 -O none -F -q -m 0 $MFILE || exit 1
mkdir $DEST/old || exit 1
mkdir $DEST/new || exit 1
mount -o loop ${MFILE}.old ${DEST}/old || exit 1
mount -o loop ${MFILE} ${DEST}/new || exit 1
cp -a ${DEST}/old/* ${DEST}/new || exit 1
umount ${DEST}/old || exit 1
umount ${DEST}/new || exit 1
rmdir ${DEST}/old || exit 1
rmdir ${DEST}/new || exit 1
rm -f ${MFILE}.old || exit 1
gzip --best ${MFILE}
Just change DEST to the path to the boot/isolinux dir on your drive.
Change MFILE to ${DEST}/minirt24 to shrink the minirt24.gz file instead.
Similar Threads
-
By srbanator in forum Knoppix DVD
Replies: 0
Last Post: 08-28-2005, 01:30 PM
-
By jesselong in forum Customising & Remastering
Replies: 5
Last Post: 05-26-2004, 01:24 PM
-
By AP in forum Customising & Remastering
Replies: 0
Last Post: 04-11-2004, 03:36 AM
-
By CHINAMAN in forum General Support
Replies: 2
Last Post: 09-22-2003, 03:05 PM
-
By hnt in forum General Support
Replies: 4
Last Post: 08-19-2003, 09:36 AM
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

RAM-HOL-SAM60CPU RAM USB-C Powered Dock for Samsung Tab Active5 - 3 - 2
$81.99

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot
$60.00

Lot of 5 Samsung PM9B1 256GB M.2 2280 PCIe Gen4 x4 NVMe SSD MZVL4256HBJD SSD
$200.00

New Samsung 512GB FIT Plus USB 3.2 Gen 1 Type-A Flash Drive MUF-512AB/AM NEW
$120.00

RAM-GDS-SKIN-SAM54-NG-1 RAM Mounts IntelliSkin® Next Gen for Samsung Tab Active4
$93.99

RAM-HOL-SAM52CPU RAM USB-C Powered Dock Samsung Tab Active4 Pro & Tab Active Pro
$81.99

Cell Phone Smartphone Computer repair banner poster sign iphone Samsung
$89.99

RAM-GDS-DOCK-SAM88CPU RAM GDS® Tough-Dock™ for Samsung Tab A9+
$174.99

NEW Samsung NoteBook NT930QCG touch LCD Full Screen Assembly Blue
$225.77

Samsung 24" S3 Essential IPS 100Hz Monitor | Sealed | Fast shipping
$50.00