usb/109397: [panic] on boot from USB flash

M. Warner Losh imp at bsdimp.com
Wed Feb 21 16:10:16 UTC 2007


The following reply was made to PR usb/109397; it has been noted by GNATS.

From: "M. Warner Losh" <imp at bsdimp.com>
To: coumarin at gmail.com
Cc: freebsd-gnats-submit at freebsd.org
Subject: Re: usb/109397: [panic] on boot from USB flash
Date: Wed, 21 Feb 2007 09:01:38 -0700 (MST)

 In message: <200702211532.l1LFWE1b051554 at www.freebsd.org>
             Alexander Shiryaev<coumarin at gmail.com> writes:
 : 
 : >Number:         109397
 : >Category:       usb
 : >Synopsis:       [panic] on boot from USB flash
 : >Confidential:   no
 : >Severity:       serious
 : >Priority:       medium
 : >Responsible:    freebsd-usb
 : >State:          open
 : >Quarter:        
 : >Keywords:       
 : >Date-Required:
 : >Class:          sw-bug
 : >Submitter-Id:   current-users
 : >Arrival-Date:   Wed Feb 21 15:40:04 GMT 2007
 : >Closed-Date:
 : >Last-Modified:
 : >Originator:     Alexander Shiryaev
 : >Release:        RELENG_6
 : >Organization:
 : MSU
 : >Environment:
 : FreeBSD aix-lame.hackers 6.2-STABLE FreeBSD 6.2-STABLE #3: Tue Feb  6 14:16:42 MSK 2007     aix-d at aix-lame.hackers:/usr/obj/usr/src/sys/Lassie_Kernel_2  i386
 : >Description:
 : I have installed FreeBSD to USB flash:
 : 
 : # dd if=/dev/zero of=/dev/da0 bs=32k count=1
 : # fdisk -B da0
 : # fdisk -v da0
 : # bsdlabel -r -w -B da0s1 auto
 : # bsdlabel -e da0s1
 : 
 : #        size   offset    fstype   [fsize bsize bps/cpg]
 :   a:     256m        0    4.2BSD     1024  8192
 :   c: <do not touch>
 :   d:        *        *    4.2BSD     2048 16384
 : 
 : # newfs /dev/da0s1a
 : # newfs -U /dev/da0s1d
 : 
 : # mkdir /mnt/da0
 : # mount /dev/da0s1a /mnt/da0
 : # mkdir /mnt/da0/var
 : # mkdir /mnt/da0/tmp
 : # mkdir /mnt/da0/usr
 : # mount /dev/da0s1d /mnt/usr
 : # chmod 1777 /mnt/da0/tmp
 : 
 : # cd /usr/src
 : # make installworld DESTDIR=/mnt/da0
 : # cd etc
 : # make distribution DESTDIR=/mnt/da0
 : # cd ..
 : # make installkernel DESTDIR=/mnt/da0
 : 
 : # cat > /mnt/da0/etc/fstab <<DATA
 : /dev/da0s1a  /      ufs     rw                        1   1
 : /dev/da0s1d  /usr   ufs     rw                        2   2
 : /dev/cd0     /cdrom cd9660  ro,-C=KOI8-R,noauto       0   0
 : DATA
 
 Try adding 'sync; sync; sync' here.
 
 : # reboot
 : 
 : Then I try to boot system from USB flash and get a panic:
 : http://users.msu.dubna.ru/~shiryaev/files/fbsd/nokia015_1.jpg
 
 This looks like the filesystem is corrupted, and the kernel is hitting
 one of the internal consistancy checks.
 
 Warner


More information about the freebsd-usb mailing list