#1067 closed defect (fixed)

boot from flashdrive fails

Reported by: sadai Owned by:
Priority: major Milestone:
Component: FreeBSD Version: 8.0.2-RELEASE
Keywords: Cc:

Description

I have set up freenas on a flashdrive, but it always runs into the 'mountroot' prompt, then I have to replug it and it works.

I know investigating on this is not worth much effort due to the drives are cheap, but maybe there is an easy solution.

Attachments (2)

pciconf.txt (3.6 KB) - added by sadai 18 months ago.
dmesg.txt (30.2 KB) - added by sadai 18 months ago.

Download all attachments as: .zip

Change History (9)

Changed 18 months ago by sadai

Changed 18 months ago by sadai

comment:1 Changed 18 months ago by gcooper

Does the same issue occur with FreeBSD 9 (I could do a quick one-off image of FreeNAS with FreeBSD 9 and see if that fixes things)? Also, what USB stick did you purchase?

Last edited 18 months ago by gcooper (previous) (diff)

comment:2 follow-up: Changed 18 months ago by sadai

that would be great, I didn't try FreeBSD 9

It's an Intenso Microline 4GB

Last edited 18 months ago by sadai (previous) (diff)

comment:3 in reply to: ↑ 2 ; follow-up: Changed 18 months ago by sadai

Is your image still in progress?

Regards
sadai

comment:4 in reply to: ↑ 3 Changed 18 months ago by gcooper

Replying to sadai:

Is your image still in progress?

I was politely asked not to produce the image :/.

There are some other avenues you could explore, like trying out FreeBSD 9 with the USB live media instead of FreeNAS 8 as it essentially uses the same tech that we do in FreeNAS 8 for mounting USB media; the download link for the 9.0-RC2 amd64 image is available here: ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/9.0/FreeBSD-9.0-RC2-amd64-memstick.img . If the beforementioned image boots, then it's most likely (95% sure) a kernel problem with the USB stack; I'd need to talk with some other folks internally to determine whether or not we could backport the fixes / enhancements (it might not be easy because there was some rototilling that occurred in the driver between 8.2 and 9.x).

comment:5 Changed 14 months ago by gcooper

The issue was probably with USB device probe timing, which has been worked around in the upcoming 8.2.0 release by increasing the timeout.

Verifying this is simple: at the boot menu choose option 6 to drop into the loader prompt, then type in...

set kern.cam.boot_delay="30000"

... and press <Enter>. If it's indeed the timing issue then it will most likely boot with the above delay. This shouldn't be an issue with 9.0 as the USB stack has evolved a bit since then, but that requires more research and testing.

comment:6 Changed 14 months ago by gcooper

  • Component changed from Build System to FreeBSD

comment:7 Changed 12 months ago by william

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.