Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2007 15:32:14 GMT
From:      Alexander Shiryaev<coumarin@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   usb/109397: [panic] on boot from USB flash
Message-ID:  <200702211532.l1LFWE1b051554@www.freebsd.org>
Resent-Message-ID: <200702211540.l1LFe4oL063925@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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

# 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

Also this operation damages data structure of USB flash (when I retry to boot, loader don't works).
>How-To-Repeat:
Read full description and try to reproduce. It reproduces 2 of 2 times on my system.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702211532.l1LFWE1b051554>