[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug in7.4.0 flash-knoppix script.



I wonder if that is why my v7.2 USB stick failed to boot.

Jim


Sent from my HTC

----- Reply message -----
From: "Eric Kudzin" <knoppix1337@yahoo.com>
To: "debian-knoppix@lists.debian.org" <debian-knoppix@lists.debian.org>
Subject: Bug in7.4.0 flash-knoppix script.
Date: Thu, Sep 11, 2014 6:18 PM

I think I found a bug in the v7.4.0 flash-knoppix script that it doesn't set the "boot" flag in the MBR partition table, so the card never boots.

I believe:
MAKE_BOOTABLE="true"

is not set when you select:
n No Overlay (read-only like CD/DVD)

so:
# Finally mark partition 1 as bootable, if not already done.
# this may cause another udev run, which we can ignore here
if [ -n "$MAKE_BOOTABLE" ]; then
 sfdisk -A1 "${FLASH}" 2>"$TMP.err" || { ERROR="$(<$TMP.err)"; bailout 2; }
 blockdev --flushbufs "${FLASH}"
fi
is never called

Screenshots of steps at:
https://www.flickr.com/photos/126934570@N05/sets/72157647506682635/

This has happen to me twice on 2 different cards. 

Eric

Reply to: