new usb stack - boot problem from usb hdd
Vinicius Abrahao
vinnix.bsd at gmail.com
Sat Jun 27 05:02:16 UTC 2009
Hi Guys,
0) First sorry for this annoying and long email...
I'm probably having the same problem here:
1) FreeBSD 8.0-CURRENT #6: Tue Jun 23 02:37:12 BRT 2009
2) When I boot from my external usb hard disk[1] :p
I had this problem with boot[2]:
"Trying to mount root from ufs:/dev/da0s1a
ROOT MOUNT ERROR: "
3) If I, at the "mountroot>" prompt, try to mount the root filesystem with
mountroot> ufs:da0
The error occurs again, but I don't know why, doing this It's make possible now
trying boot from da0s1a
4) mountroot> ufs:da0s1a
Now the system boot normally!
5) It's my first time for these "boot from usb" occasions, so I'm
thinking that I made
something wrong at the installation of disk. Anyway here is my lsusb
-v result[3].
6) umass is on KERNELFILE, I put these lines at /boot/loader.conf:
umass_load="YES"
kern.cam.scsi_delay=1000
but this not affect the problem.
7) Marcus, this patch is off (404)
http://people.freebsd.org/~thompsa/root_wait.diff
8) fdisk and bsdlabel results:
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=9729 heads=255 sectors/track=63 (16065 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=9729 heads=255 sectors/track=63 (16065 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 62910477 (30718 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 62910540, size 93385845 (45598 Meg), flag 0
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
# /dev/da0s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 62910461 79 4.2BSD 0 0 0
c: 62910477 63 unused 0 0 # "raw" part, don't edit
partition a: partition extends past end of unit
partition c: partition extends past end of unit
bsdlabel: partition c doesn't start at 0!
bsdlabel: An incorrect partition c may cause problems for standard
system utilities
[1]: http://www.triarius.com.br/vinicius/bsd/hd_note_usb.jpg
[2]: http://www.triarius.com.br/vinicius/bsd/dmesg.txt
[3]: http://www.triarius.com.br/vinicius/bsd/lsusb.txt
9) What I'm doing wrong?
Thanks for your attention,
Best regards,
Vinicius
More information about the freebsd-current
mailing list