installed FreeBSD to USB disk and it doesn't boot

Installing and upgrading FreeBSD.

installed FreeBSD to USB disk and it doesn't boot

Postby chrcol » 26 Apr 2012, 16:26

Ok, the situation is this: I am testing a USB install media which I cannot test on virtual machines and none I know of support emulation of USB sticks as boot devices. So I am using my laptop, however I don't want to change the OS on the internal HDD so I have a WD Raptor connected via a USB to SATA adapter. Every other OS has no issues booting off the raptor except [del]freebsd[/del] FreeBSD.

Here is what happens. I can use the HDD inside mfsbsd booted of the USB stick. I can copy files to it etc. and have installed the OS on it. Last night all was fine and I could boot off of it.

Today the boot loader comes up and then it loads the kernel, so I see all the detected devices going by on the screen but when it comes to the mount root file system it fails. I can see the detected devices and the USB HDD is missing. So it seems during the boot sequence the USB is either not detected or is disconnecting. To support the latter theory if I then reboot the laptop the HDD isn't detected on boot and I have to reboot a second time as it seems it has to reinitialize.

So I thought what was changed? Today I had unplugged the USB memory stick with mfsbsd on it. I plug it back in and the HDD is detected during the [FILE]dmesg[/FILE] stage and the root filesystem mounts on boot.

Any thoughts?

I am using labels in [FILE]fstab[/FILE] so this is not down to the device number changing, it actually isn't detected at all without the USB memory stick in as well.
chrcol
Member
 
Posts: 345
Joined: 17 Nov 2008, 12:31

Postby wblock@ » 26 Apr 2012, 16:36

Do you have longer timeouts set in [file]/boot/loader.conf[/file]?
Code: Select all
kern.cam.boot_delay=10000
kern.cam.scsi_delay=10000
User avatar
wblock@
Old Fart
 
Posts: 10173
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby chrcol » 26 Apr 2012, 17:29

It's blank so it's on defaults.
chrcol
Member
 
Posts: 345
Joined: 17 Nov 2008, 12:31

Postby wblock@ » 26 Apr 2012, 18:04

USB devices sometimes need those longer timeouts. The first one is usually enough.
User avatar
wblock@
Old Fart
 
Posts: 10173
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby chrcol » 26 Apr 2012, 19:02

Sorry I misunderstood you, I will add those and try again.
chrcol
Member
 
Posts: 345
Joined: 17 Nov 2008, 12:31

Postby chrcol » 26 Apr 2012, 20:42

I haven't tested what you said because I put 9.0 on there now and that doesn't have the issue, so it's an issue on 8.3 only not 9.0. I will probably at some point whack 8.3 back on and then test what you said so I can report back.
chrcol
Member
 
Posts: 345
Joined: 17 Nov 2008, 12:31


Return to Installing & Upgrading

Who is online

Users browsing this forum: Bing [Bot], helizeg, xtaz and 3 guests