-
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

Fujinet 1.7.1 Atari 400 800 800XL 130XE 65XE XEGS Assembled, Tested, Working
$99.99

Atari 130 XE/Atari 1050 Bundle W/ Cords And Extras (Powered On)
$300.00

Atari 800 8-bit Computer System Fully Tested Great Condition 48k READ
$350.00

DEFECTIVE Atari 810 Vintage Computer Disk Drive powers on Unit Only Boo G3D
$49.29

Atari XE 130XE Computer NTSC with Power Supply Powers On Untested
$159.95

Atari 520ST Vintage Home Computer Keyboard Unit
$199.97

Gotek USB Floppy Emulator v3.44 OLED (no speaker) Amiga Atari IBM Roland AKAI
$44.00

SOLD AS IS Lot of 5.25" Floppy Disks w/ Games & Software? Commodore 64 Atari 800
$59.99

ATARI HDD Drive ACSI Emulator 520-1040ST/STF/STFM, STE, Mega STE, TT030 acsi2stm
$48.95

VTG Atari 1200XL Home Computer System 1200 XL ** Tested ** Parts or Repair
$323.75