[Fedora-livecd-list] livecd-iso-to-disk.sh and extension size
D. Hugh Redelmeier
hugh at mimosa.com
Sat Jul 6 19:06:00 UTC 2013
I've often had problems with putting Linux on USB sticks. Fedora,
Ubuntu, and CentOS have been hit or miss. I decided to be a little more
adventurous with Fedora 19.
I decided to use livecd-iso-to-disk.sh so that I could know better what
was going on.
(Is it time to change the name? Fedora Live no longer fits on a CD
these days. It's great on DVDs and USB sticks.)
I wanted a LARGE overlay (I wanted to experiment with installing
updates). When I tried
sudo ./livecd-iso-to-disk.sh --format --overlay-size-mb 4095 --home-size-mb 200 --unencrypted-home Fedora-Live-Desktop-x86_64-19-1.iso /dev/sdi
it tried to create an MSDOS filesystem and consequently complained
that it was too big:
mkfs.fat 3.0.20 (12 Jun 2013)
Can't have an overlay of 2048MB or greater on VFAT
Why didn't it use ext[34]? Reading the script, I found the answer: I
hadn't installed the systlinux-extlinux package on my host system.
There was no message to this effect.
I suggest something like this (untested!) patch be applied:
==== start
diff --git a/tools/livecd-iso-to-disk.sh b/tools/livecd-iso-to-disk.sh
index c4fb4db..0e65d3e 100755
--- a/tools/livecd-iso-to-disk.sh
+++ b/tools/livecd-iso-to-disk.sh
@@ -868,7 +868,10 @@ if [ -n "$format" -a -z "$skipcopy" ]; then
if [ -n "$efi" ]; then
createGPTLayout $TGTDEV
- elif [ -n "$usemsdos" -o ! -x /sbin/extlinux ]; then
+ elif [ -n "$usemsdos" ]; then
+ createMSDOSLayout $TGTDEV
+ elif [ ! -x /sbin/extlinux ]; then
+ echo "Warning: syslinux-extlinux package not installed; formatting as VFAT filesystem instead of EXT"
createMSDOSLayout $TGTDEV
else
createEXTFSLayout $TGTDEV
==== end
More information about the livecd
mailing list