From owner-freebsd-usb@FreeBSD.ORG Thu Feb 22 16:20:25 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 66BE516A403 for ; Thu, 22 Feb 2007 16:20:25 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id F000E13C471 for ; Thu, 22 Feb 2007 16:20:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l1MGKOhe008567 for ; Thu, 22 Feb 2007 16:20:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l1MGKOQk008564; Thu, 22 Feb 2007 16:20:24 GMT (envelope-from gnats) Date: Thu, 22 Feb 2007 16:20:24 GMT Message-Id: <200702221620.l1MGKOQk008564@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "M. Warner Losh" Cc: Subject: Re: usb/109397: [panic] on boot from USB flash X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "M. Warner Losh" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Feb 2007 16:20:25 -0000 The following reply was made to PR usb/109397; it has been noted by GNATS. From: "M. Warner Losh" To: coumarin@gmail.com Cc: freebsd-gnats-submit@freebsd.org Subject: Re: usb/109397: [panic] on boot from USB flash Date: Thu, 22 Feb 2007 09:17:05 -0700 (MST) In message: <45DC8EBF.7060806@gmail.com> Alexander Shiryaev writes: : M. Warner Losh wrote: : > You might also try setting / and /usr to read only to see if the : > corruption occurs during boot or before. : > : > Warner : > : : I have following slice structure on USB flash (bsdlabel /dev/da0s1): : : # /dev/da0s1: : 8 partitions: : # size offset fstype [fsize bsize bps/cpg] : a: 262144 16 4.2BSD 1024 8192 32776 : c: 4016187 0 unused 0 0 # "raw" part, : don't edit : d: 131072 262160 4.2BSD 1024 8192 16392 : e: 131072 393232 4.2BSD 1024 8192 16392 : f: 1523696 524304 4.2BSD 2048 16384 28552 : : (newfs /dev/da0s1a; newfs -U /dev/da0s1d; newfs -U /dev/da0s1e; newfs -U : /dev/da0s1f) : : I have this /etc/fstab on USB flash: : : /dev/da0s1a / ufs ro,sync 1 1 : /dev/da0s1d /var ufs ro,sync 2 2 : /dev/da0s1e /tmp ufs ro,sync 2 2 : /dev/da0s1f /usr ufs ro,sync 2 2 : : Then I boot system from USB flash, and get the same result: : http://users.msu.dubna.ru/~shiryaev/files/fbsd/nokia020_1.jpg : : Then I retry to boot from USB flash, and see message "Missing operating : system". : : I.e. data structure is damaged even in case of specifying "ro,sync". : : Additional information: : 1. Kernel configuration: GENERIC, no CPUTYPE and CFLAGS in /etc/make.conf : 2. This bug does not take place in current version of DragonFlyBSD (but : there other bug takes place) : : Can somebody try to reproduce it? It can be 100% reproduced on my system. I have a usb 1.0 16MB flash that I was able to boot w/o any data corruption like you are seeing. The USB 1.0 flash is quite slow, but works. I have several of the USB 2.0 to SD card adapters, and none of them are able to boot on my laptop. Only my ancient 1.0 job is able to get the job done, but it too is slow. I was able to boot a dozen times w/o any data corruption. I will admit that I used the boot loader off of my hard disk to select the second drive and then select F1 to pick the partition to boot, but since you also see this with grub, I'm guessing that doesn't matter much. I created it from an image of a 6.2 snapshot that we use for our products at work from November 10th, 2006 (so there's maybe a dozen changes not in it that are in 6.2-RELEASE). I'll see if I can create an image for you to try (need permission to distribute). There is one snag: the system hangs just before I get a login prompt, so I can't poke around the system after it boots. Warner