From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OyH5r-0003lg-SB for garchives@archives.gentoo.org; Wed, 22 Sep 2010 04:38:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2A0C0E07A4; Wed, 22 Sep 2010 04:36:59 +0000 (UTC) Received: from mail-pz0-f53.google.com (mail-pz0-f53.google.com [209.85.210.53]) by pigeon.gentoo.org (Postfix) with ESMTP id EDE77E07A4 for ; Wed, 22 Sep 2010 04:36:58 +0000 (UTC) Received: by pzk36 with SMTP id 36so55105pzk.40 for ; Tue, 21 Sep 2010 21:36:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ET5X5ur28Dx/JG94BRwGVXAWcI9m8rNtznU1B95KN1o=; b=Yyvy4Z/QZSF3ZZIAu/qNkQPTnVzkMwOIxTifZJ9fBfSqIEtxwIikfLa3tEQDvXhtmG 1k6fZEcE0LaWB2jp4LHm3Gk7dZlSgnXa9UfCEms7fNrqtX7BVj2Wxw6QORrPe8ynny5e OTc3GjnKPG6Z4MIIE+6M87+i6BV9nTCOOao5o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=bVtjNsrysBW3axSDGOsSt2+BOwaBNm1pOhd4j9L98oQTRe7RSd2C6IjUD1IIeM4l4U zaR8ZAKnGakkWMVoMPFtsd8L0IxfdgTYt8lwS3rhmqF8ugiE1PRVYVl1ijRMuiTJKCFh OPmAhOfEPS133C0LIZGs1QBG5s5cMffmNT6aI= Received: by 10.114.102.11 with SMTP id z11mr13209334wab.13.1285130218219; Tue, 21 Sep 2010 21:36:58 -0700 (PDT) Received: from [192.168.0.149] ([59.154.26.81]) by mx.google.com with ESMTPS id x9sm16806051waj.15.2010.09.21.21.36.55 (version=SSLv3 cipher=RC4-MD5); Tue, 21 Sep 2010 21:36:57 -0700 (PDT) Message-ID: <4C9987E2.60709@gmail.com> Date: Wed, 22 Sep 2010 14:36:50 +1000 From: Jake Moe User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100910 Lightning/1.0b3pre Thunderbird/3.1.3 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Booting Gentoo from USB stick References: <4C89BD8B.4020306@gmail.com> <201009161330.25890.joost@antarean.org> <4C984411.9090905@gmail.com> <201009210926.35850.joost@antarean.org> In-Reply-To: <201009210926.35850.joost@antarean.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: f286d2d1-1f22-4db9-bcbc-417f4d8a28a9 X-Archives-Hash: 38792f699f04defaa5eab51b18694a0e On 21/09/10 17:26, J. Roeleveld wrote: > On Tuesday 21 September 2010 07:35:13 Jake Moe wrote: >> On 16/09/10 21:30, J. Roeleveld wrote: > > >>> Please bear in mind, I have not actually used nor needed a ramdisk to >>> boot from ever since I started using Gentoo. >>> Not even when I played with booting from USB-sticks myself. >>> I simply build the kernel with all the necessary drivers compiled-in and >>> used that to boot from. >>> >>> This might also be an idea for you? >>> >>> -- >>> Joost >>> >>> Eg. if you do the mknod-commands to build the /dev/sda, /dev/sda1,.... >>> device nodes, then it should be able to continue. >> Well, I've finally gotten this to work with a manually config'ed >> kernel. Before, I was only getting kernel panics. Now, after your >> comment "all compiled-in", I took the old config I tried, did a sed to >> change all "=m" to "=y", and recompiled, and it worked. So obviously, >> there was some option that I wasn't building into the kernel (only as a >> module) that was needed to start from USB. > That's generally a good way to start, stick everything in the kernel :) > >> I had previously started from a working config I had previously used for >> the same model PC that I was doing my testing on, and just changed the >> USB drivers from modules to built-in, but apparently that's not enough. >> Any ideas what else is needed for a USB-stick boot that's not needed in >> a SATA boot? I'd like to a) find out what I missed, and b) be able to >> cull the kernel back down again, so I can build up lots of SATA, >> graphics and audio modules to make this able to boot (and work properly) >> on other systems. > Ok, doing this from memory here. > To be able to boot from USB, you need (additionally to what you normally > have): > 1) USB Host drivers (OHCI,UHCI,EHCI,...) > 2) USB Mass Storage > 3) file system on the USB-stick > 4) SCSI-disk (USB Mass storage depends on this) > > If others can also have a quick look on this list to check that I didn't miss > anything? > > -- > Joost > Well, now that I've managed to get it booting, the only problem is that I can't seem to get the disk label working right. In GRUB's menu.lst, if I use root=LABEL=UsbRoot, it doesn't work (kernel panic, label not found, but sda1 is listed as available), but if I use root=/dev/sda1, it works. However, later in the boot process, it mounts / using LABEL=UsbRoot in fstab just fine. Is that a problem with GRUB? Or the kernel? Or am I doing something else wrong? And for future reference, while looking into various things for this, I found these in the Gentoo Wiki: USB Portable Install - http://en.gentoo-wiki.com/wiki/USB_Portable_Install Portable USB Gentoo - http://en.gentoo-wiki.com/wiki/Portable_USB_Gentoo Unfortunately, both use genkernel instead of manually configured kernels, so that part doesn't help, but one mentions the option "scandelay=2" to add to the kernel boot line in GRUB to introduce the delay genkernel needed to see the USB device; would have been good to know that last week when I was trying genkernel. :-P Jake Moe