-
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, ... )"
-
I have tried with an 8GB fat32 partition (let me state here again that the drive in question is a verbatim tuff 'n' tiny 8GB thumb drive) and that failed with that message.
Yes, that was my first step. Since the problem seems to be with the new flash-knoppix2 and likely some combination of my hardware/flash drive, where is the best place to report the issue? Is there a bugzilla for Knoppix?
-
The best place to report issue is
http://lists.debian.org/debian-knoppix/
(but not: http://knoppix.net/wiki/Category:Bug_Pages)
-
Member
Rerring to philo in post #10
My step #5 is the normal warning that all data will be erased....
I do it again and it still propose the same message
No error for me
#5
sdd: Sony Storage Media (14904MB)
Repartition and format device?
CAUTION: All data will be erased!
#6
sdd: Sony Storage Media (14904MB)
Do you really want to do this?
WARNING: ALL DATA ON WILL BE ERASED!
Last edited by Blacksimon; 12-28-2012 at 06:16 PM.
-
Well, it's good (and bad, lol) to see I'm not the only one experiencing the issue. And it seems we all experience it in the same place. I, too, had run the script in terminal and was informed the error was on like line 369 or some where around that point and had glanced at the script briefly to see if it was malformed and it looked about right to me, I simply didn't know the calls it was using so I couldn't be certain. I will try that fix for the script that AMSTraute proposed.
-
Member
assuming you have created an encrypted partition of 5GB and copied from the old knoppix-data.aes all the content, now I wonder ...
having more available space on USB, this partition can be increased in size as it can usually be done with the file knoppix-data.aes?
Yes, you could make it larger since the beginning .... but that's not the point .... it is curious to know if it is feasible ...
-
I am back and still confused.
When I started this thread (post #1), I called for help when I could not use the Knoppix installer (experimental version) to install Knoppix 7.0.5 to a Sandisk Ultra 32GB with the 'p' option.
I tokk another USB key, this time a Sandisk Ultra 16GB. The 'p' option worked like a breeze, giving me an ovverlay of almost 12GB.
Does it mean that my Sandisk Ultra 32GB is rotten? Probably not, because it allowed me to install with the 'i' option. Note, howeer, that Knoppix at first refused to boot. I had the FAT32 partition checked by GParted and rebooted : all OK now and Knoppix gladly created the traditional 4GB persistent image.
Where do I/we go from there?
-
Member
Philo, try this:
- syslinux -if /dev/sdx (replace sdx with your Sandisk Ultra 32GB)
- Format FAT32 the whole USB with Gparted and set boot flag
- Again the Flash-Knoppix2
-
Thanks Blacksimon. I tried this with my 32GB key:
step #1
I typed in a terminal : "ssyslinux -if /dev/sde" but it complained sayiing: 'invalid media signature (not a fat system?)".
step #2
I then create a small FAT32 partition at the beginning of the key, with GParted.
and typed "syslinux -if /dev/sde1". The command was accepted.
step #3
I formated the whole key in FAT32 with GParted and added the boot flag.
step #4
Next I run knoppix installer with the 'p' option and again received the infamous error message that the "overlay is too small".
So no joy so far.
Note - Not better if the whole key was formated in FAT32 before doing step #1.
-
Member
try to remove partition and then recreate....i don't know
do not give up....
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
For Lenovo IdeaPad 3 15IIL05 15IML05 15ADA05 15ARE05 Palmrest Keyboard Touchpad
$59.25
NEW Palmrest Keyboard For Lenovo Thinkpad E15 Gen 2 20T8 20T9 Black 5M10W64513
$80.99
New For Lenovo Yoga 7 14IRL8 Palmrest Keyboard 5CB1L40794 82YL0005US 82YL0006US
$147.95
Lenovo ThinkPad T480 14" Touchscreen Laptop i5 256GB NVMe 16GB RAM Win 11 Pro
$249.00
Lenovo 100e Chromebook Laptop 2nd Gen | 11.6" HD | MTK 1.7GHz | 4GB RAM | 32GB
$39.99
Lenovo - LOQ 15.6" Gaming Laptop FHD - Intel Core i5-13420H with 8GB Memory -...
$629.99
Lenovo Ideapad 1i 15.6" FHD Notebook Intel Core i5-1235U 8GB RAM 256GB SSD
$349.99
Lenovo ThinkPad X1 Nano 13" Touchscreen 2K i7-1180G7 16GB/256GB Win 10 Pro
$535.00
Lenovo ThinkPad 14" Laptop Computer Core i7 16GB RAM 256GB SSD Windows 10 Pro
$229.99
Lenovo Yoga C940 2-in-1 Laptop, 14" FHD 400nit, i7-1065G7, 12GB, 256GB SSD
$472.49