Embedded install doesn't create bootable stick
Posted: 01 May 2013 01:54
Hello everybody,
I'm stuck with my embedded NAS4Free 9.1.0.1.636 install on an HP DC7800 CMT.
N4F boots fine from CD and seems to recognize the HW. When I install it to embedded, it writes an image to my stick and reports success (something like "You can now safely remove the CD and reboot").
When I open a shell from the basic N4F menu, manually mount the stick and look at its contents, the stick looks OK, occupying 96 MB.
BUT: The machine won't boot from that stick. It seems to hang with blinking text cursor before any booting begins. It doesn't even give a "non-system disk" error.
The same PC does boot 64-bit Linux live CD ISOs from stick so USB booting can't be the problem.
The same stick doesn't boot on other machines, either. Of course I have tried different sticks, but to no avail.
So I think the image on the stick is the problem.
When I look at the stick on other systems, they see a 26 MB partition (not 96 MB!) on an otherwise empty stick. That partition can't be mounted, though:
Error mounting /dev/sdg at /media/theuser/disk:
Command-line `mount -t "ufs" -o
"uhelper=udisks2,nodev,nosuid" "/dev/sdg"
"/media/theuser/disk"' exited with non-zero
exit status 32: mount: wrong fs type,
bad option, bad superblock on /dev/sdg,
missing codepage or helper program, or other error
GNU Parted says the following about that stick (my translation from german):
(parted) select /dev/sdg
using /dev/sdg
(parted) print
error: invalid partition table - recursive partition on /dev/sdg.
Am I right that the stick's partitioning looks wrong?
To examine the strange partition from inside a running N4F, I mounted it on the shell after the N4F installer had written the image. "du -hs" shows the contents at 96 MB.
When I ask
geom disk list
I see the stick as "geom da0" but
gpart show da0
reports "No such geom: da0".
so I didn't really learn anything there. I don't get it.
Then I tried other things:
* wrote the NAS4Free-x64-LiveUSB-9.1.0.1.636.img file to the stick with imagewriter - won't boot.
* wrote the NAS4Free-x64-embedded-9.1.0.1.636.img to the stick with dd as alexej123 described in viewtopic.php?f=15&t=3106
- won't boot, but different message this time ("non-system disk or disk error").
* Booted the ISO inside a VirtualBox, installed to stick and moved that stick to the real machine - won't boot.
* used the older 9.1.0.1.573 ISO: same result.
* Wrote the live-CD iso file to the stick with Unetbootin. Interestingly, the stick booted but then the Unetbootin menu didn't contain an entry for the N4F iso.
All this makes me think there's something wrong with the image itself. Maybe it's somehow not marked as bootable.
But then I must be making an idiotic mistake because this is working so nicely for everybody else!
What can I do...?
Any help would be appreciated - thanks a lot!
I'm stuck with my embedded NAS4Free 9.1.0.1.636 install on an HP DC7800 CMT.
N4F boots fine from CD and seems to recognize the HW. When I install it to embedded, it writes an image to my stick and reports success (something like "You can now safely remove the CD and reboot").
When I open a shell from the basic N4F menu, manually mount the stick and look at its contents, the stick looks OK, occupying 96 MB.
BUT: The machine won't boot from that stick. It seems to hang with blinking text cursor before any booting begins. It doesn't even give a "non-system disk" error.
The same PC does boot 64-bit Linux live CD ISOs from stick so USB booting can't be the problem.
The same stick doesn't boot on other machines, either. Of course I have tried different sticks, but to no avail.
So I think the image on the stick is the problem.
When I look at the stick on other systems, they see a 26 MB partition (not 96 MB!) on an otherwise empty stick. That partition can't be mounted, though:
Error mounting /dev/sdg at /media/theuser/disk:
Command-line `mount -t "ufs" -o
"uhelper=udisks2,nodev,nosuid" "/dev/sdg"
"/media/theuser/disk"' exited with non-zero
exit status 32: mount: wrong fs type,
bad option, bad superblock on /dev/sdg,
missing codepage or helper program, or other error
GNU Parted says the following about that stick (my translation from german):
(parted) select /dev/sdg
using /dev/sdg
(parted) print
error: invalid partition table - recursive partition on /dev/sdg.
Am I right that the stick's partitioning looks wrong?
To examine the strange partition from inside a running N4F, I mounted it on the shell after the N4F installer had written the image. "du -hs" shows the contents at 96 MB.
When I ask
geom disk list
I see the stick as "geom da0" but
gpart show da0
reports "No such geom: da0".
so I didn't really learn anything there. I don't get it.
Then I tried other things:
* wrote the NAS4Free-x64-LiveUSB-9.1.0.1.636.img file to the stick with imagewriter - won't boot.
* wrote the NAS4Free-x64-embedded-9.1.0.1.636.img to the stick with dd as alexej123 described in viewtopic.php?f=15&t=3106
- won't boot, but different message this time ("non-system disk or disk error").
* Booted the ISO inside a VirtualBox, installed to stick and moved that stick to the real machine - won't boot.
* used the older 9.1.0.1.573 ISO: same result.
* Wrote the live-CD iso file to the stick with Unetbootin. Interestingly, the stick booted but then the Unetbootin menu didn't contain an entry for the N4F iso.
All this makes me think there's something wrong with the image itself. Maybe it's somehow not marked as bootable.
But then I must be making an idiotic mistake because this is working so nicely for everybody else!
What can I do...?
Any help would be appreciated - thanks a lot!