From owner-freebsd-current@FreeBSD.ORG Wed Jun 24 20:56:22 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20972106577B for ; Wed, 24 Jun 2009 20:56:22 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 6FBEC8FC19 for ; Wed, 24 Jun 2009 20:56:21 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=EZAxMBomRLgA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=twLvKiit2C_k5q18HwoA:9 a=MpI0z7L_W7MOX-eOwd4A:7 a=gZWPmu-DHrbbKmJyQUyZra5UVBkA:4 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1165414038; Wed, 24 Jun 2009 22:56:20 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Wed, 24 Jun 2009 22:55:46 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <66b068eb0906241248l7ef72f8dw5a245291a37731c1@mail.gmail.com> In-Reply-To: <66b068eb0906241248l7ef72f8dw5a245291a37731c1@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906242255.48194.hselasky@c2i.net> Cc: Prashant Vaibhav Subject: Re: External USB disk doesn't remount after suspend/resume X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 20:56:22 -0000 On Wednesday 24 June 2009 21:48:43 Prashant Vaibhav wrote: > Hi, > I've come across a problem running -CURRENT snapshot from June 12 (and > searching the mailing list for messages after this hasn't yielded anything > substantial). > I'm running SMP kernel on UP machine, booting from an external usb hdd. The > system suspends and resumes fine, except for one problem. Initially on boot > the external drive is brought up as "umass0" and attached to "scbus1", > however after resuming, the drive is brought up as umass1 and gets attached > to scbus2. Obviously this confuses the system as my root is mounted from > umass0. Thus everything works (ie. I was able to check dmesg for these > messages) that doesn't need access to the filesystem, but since the root > filesystem has disappeared from under us, nothing else works, not even a > 'shutdown now' or 'halt' or trying to remount root via 'mount' command. I > was unable to capture a dmesg log because of this. > Is this a known issue, and is there a workaround? It should be noted that > I have to set "kern.cam.scsi_delay=10000" in loader.conf before the kernel > can mount root from the external usb drive. > Best, > Prashant What you are trying to do is not supported. And I think that once the USB disk disappears, the kernel will not pick it up again after resume. --HPS