4.3.beta001 USB stick size usb_inst.sh

You can report problems, make suggestions, about the new BETA versions in this forum. For stuff related to final releases, please post a message in other forums
vanepp
Posts: 85
Joined: 22 Jun 2012, 02:24

4.3.beta001 USB stick size usb_inst.sh

Postby vanepp » 08 Sep 2014, 04:30

4.3.beta001 USB stick size usb_inst.sh


Reproduce:

Attempt to use a 500 meg usb key to install a custom iso to. In

/var/tmp/usb_inst.log you get:

Installation on /dev/sdc at 2014-09-07_20:29
usb_inst.sh: error: The device [/dev/sdc] is only 477 MB. It is too small
to copy all the files, an USB-stick of at least 512MB is recommended

Fix:

Change /mnt/custom/customcd/isoroot/usb_inst.sh

MINSIZEMB=512 to MINSIZEMB=477

and all works as expected (as there is in fact enough space)
/var/tmp/usb_inst.log:

Installation on /dev/sdc at 2014-09-07_20:42
The device [/dev/sdc] seems to be big enough: 477 MB.
--> /var/tmp/usb_inst.tmp/install-mbr /dev/sdc --force
--> /var/tmp/usb_inst.tmp/parted -s /dev/sdc mklabel msdos
--> /var/tmp/usb_inst.tmp/parted -s /dev/sdc mkpart primary fat32 0 100%
--> /var/tmp/usb_inst.tmp/parted -s /dev/sdc set 1 boot on
The device [/dev/sdc1] seems to be big enough: 477 MB.
mkfs.vfat 3.0.9 (31 Jan 2010)
Partition /dev/sdc1 has been successfully formatted
The device [/dev/sdc1] seems to be big enough: 477 MB.
/dev/sdc1 successfully mounted on /mnt/usbstick
DEBUG: diskspace(/mnt/usbstick): freespace=477, sysrcdspc=0, realfreespace=477
Free space on /mnt/usbstick is 477MB
...

patch usb_inst.sh.dif

*** /mnt/custom/customcd/isoroot/usb_inst.sh.orig 2014-08-24 12:35:53.000000000 +0000
--- usb_inst.sh 2014-08-24 12:39:19.000000000 +0000
***************
*** 7,13 ****

logfile="/var/tmp/usb_inst.log"
TMPDIR="/var/tmp/usb_inst.tmp"
! MINSIZEMB=512
PROGIMG="${0}"
PROGLOC="$(dirname ${0})"
CDFILES=('sysrcd.dat' 'sysrcd.md5' 'version' '???linux/initram.igz'
--- 7,13 ----

logfile="/var/tmp/usb_inst.log"
TMPDIR="/var/tmp/usb_inst.tmp"
! MINSIZEMB=477
PROGIMG="${0}"
PROGLOC="$(dirname ${0})"
CDFILES=('sysrcd.dat' 'sysrcd.md5' 'version' '???linux/initram.igz'

Peter Van Epp

Return to “Beta versions (report a bug found in a beta)”

Who is online

Users browsing this forum: Google [Bot] and 1 guest