-
A patch for "/usr/bin/flash-knoppix2" fixing the error "Overlay size is too small..."
Just like philo I attempted to use the experimental /usr/bin/flash-knoppix2 to create a USB flash storage medium with a big reiserfs rw overlay partition. I also got the error dialog with:
Overlay size is too small!\n(minimum 400MB required)
When I ran the script in a terminal window, I noticed a shell error message complaining about numeric format in the line
Code:
let avail=total-ksize
After changing the format of the calculated media size in MiB from floating point to integer, I could successfully finish the "remastering" of the Knoppix 7.0.5 EN DVD onto my flash medium using only the script, with a 7 GiB writable overlay filesystem. The flash medium only contained an empty (DOS FDISK-style) partition table before I used the script.
/usr/bin/flash-knoppix2.patch:
Code:
--- /usr/bin/flash-knoppix2 2012-12-21 00:27:14.000000000 +0000
+++ flash-knoppix2 2012-12-28 09:01:10.000000000 +0000
@@ -364,7 +364,7 @@
ERROR="${FLASH}:\n$MSG_ERROR_INCOMPATIBLE"; bailout 2
fi
elif [ "p" = "$METHOD" ]; then
- total="$(awk '{print ($1 / 2048)}' /sys/block/"${FLASH##*/}"/size 2>/dev/null)"
+ total="$(awk '{printf( "%d", ($1 / 2048) ) }' /sys/block/"${FLASH##*/}"/size 2>/dev/null)"
ksize="$(du -sm --exclude='knoppix-data.*' . 2>/dev/null | awk '{size=$1}END{print size}')"
let avail=total-ksize
let avail-=200
Please note the change from "print ..." to "printf( "%d, ... )"
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
Vintage 1972 Photo 35mm Slide Lot: Computer Usage Public Attitude Time Magazine
$24.99
Vintage Apple McIntosh 10 foot Serial 8 pin mini DIN to DB25 Printer cable VGC
$12.95
Vintage Quadram AT 01-9027-R3 PC Card 1985
$45.00
Vintage IBM Fixed Disk Floppy Diskette Controller 6133921 PC Card 61-031099-00
$45.00
Vintage Eddie Bauer Brown Faux Leather 3-Pocket Computer Laptop Bag Briefcase
$25.00
VINTAGE AST Advantage 16-Bit ISA Memory Adapter Board 202051-001
$75.00
Flip n File 5.25 Inch Floppy Disk Diskette Folding Compact Storage Vintage PC
$23.41
Dell Inspiron 600M vintage laptop computer, 40GB HD, Windows 98 SE
$95.00
Vintage Dell Precision 420 MT - Intel Pentium II 866MHz - 384MB Ram - No HDD/OS
$149.99
Vintage Dell Precision 410 Intel Pentium II 600 MHz 768 MB Ram I No HDD I No OS
$129.99