Page 1 of 1

Boot partition too small on new embedded install

Posted: 19 Nov 2015 10:27
by erik
I removed all partitions on a 8GByte USB stick, use winimage to store the embedded image onto the stick and boot from it.
Strangely I get the "Boot partition is too small" error.
Using gpart I get

Code: Select all

$ gpart list
Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 15359999
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: da0s1
   Mediasize: 477033984 (455M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 32256
   Mode: r0w0e0
   attrib: active
   rawtype: 165
   length: 477033984
   offset: 32256
   type: freebsd
   index: 1
   end: 931769
   start: 63
Consumers:
1. Name: da0
   Mediasize: 7864320000 (7.3G)
   Sectorsize: 512
   Mode: r0w0e0

Geom name: da0s1
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 931706
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: da0s1a
   Mediasize: 471859200 (450M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1048576
   Mode: r0w0e0
   rawtype: 7
   length: 471859200
   offset: 1016320
   type: freebsd-ufs
   index: 1
   end: 923584
   start: 1985
Consumers:
1. Name: da0s1
   Mediasize: 477033984 (455M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 32256
   Mode: r0w0e0
Would it be possible to resize the boot partition with the following commands?

Code: Select all

gpart resize -i 1 da0
gpart resize -i 1 da0s1
growfs /dev/da0s1a

Re: Boot partition too small on new embedded install

Posted: 19 Nov 2015 12:12
by b0ssman
from the readme
** Embedded.img.xz is only for upgrades by WEBGUI, do not extract and write to any media! **

Download NAS4Free livecd or liveusb and boot from it.
The compressed LiveUSB.img.gz needs to be extracted before you can write it to usb media,
you can use it with Win32DiskImager or any other tool.
Press 9 for the install menu and perform an embedded installation.

Re: Boot partition too small on new embedded install

Posted: 19 Nov 2015 17:45
by erik
You are right.
Just wandering if with only one usb stick (I disabled all other USB slots in the bios) and without a cdrom connected to the target system it would be possible to get an upgradable system

I tried the resize on another system (so not resizing the boot usb stick) directly after creating and no more boot size error message
Once I do the next upgrade I know for sure