From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Jr6Ea-0002y5-JP for garchives@archives.gentoo.org; Wed, 30 Apr 2008 06:56:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42B6AE027F; Wed, 30 Apr 2008 06:55:52 +0000 (UTC) Received: from md2.t-2.net (md2.t-2.net [84.255.209.81]) by pigeon.gentoo.org (Postfix) with ESMTP id E48F2E027F for ; Wed, 30 Apr 2008 06:55:51 +0000 (UTC) Received: from [192.168.0.11] (84-255-203-94.static.t-2.net [84.255.203.94]) by md2.t-2.net (MOS 3.8.5-GA) with ESMTP id CKA85329; Wed, 30 Apr 2008 08:55:39 +0200 (CEST) Message-ID: <48181818.5060502@avtomatika.com> Date: Wed, 30 Apr 2008 08:56:24 +0200 From: Branko Badrljica User-Agent: Thunderbird 2.0.0.12 (X11/20080302) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@lists.gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] boot Gentoo from USB key References: <1209537833.6170.62.camel@ws2912.agr.st.com> In-Reply-To: <1209537833.6170.62.camel@ws2912.agr.st.com> Content-Type: text/plain; charset=x-user-defined; format=flowed Content-Transfer-Encoding: 7bit X-Junkmail-Status: score=10/150, host=md2.t-2.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A0B0201.481817F7.008C,ss=1,fgs=0, ip=192.168.0.11, so=2007-07-31 18:51:00, dmn=5.4.3/2008-02-01 X-Archives-Salt: 9074805d-4cf0-467f-a279-5de143742bff X-Archives-Hash: 59cd83d3f010910912670d087f66bc0a I had the same two problems. WRT to grub, I don't remember anymore exactly what I have done, but I think I have copied sectors 1-62 from one conventional grub-bootable HDD to USB, Or maybe used some old HDD and formated it, parittioned it like the USB disk, copied /boot partition on it and set up grub on it, then copied sectors 1-62 back to USB disk. Sector 0 is for MBR codeand last few tens of bytes contain headers for first 4 partitions, so it shouldn't be touched and first partition begins with sector 63. Something like that. WRT to boot panics, kernel can't find USB key at boot since USB initialisation code needs more time for key to stabilise. Use kernel parameter rootdelay=10 for 10 second wait period for USB Hope this helps. BTW: You will in all likelyhood be dissapointed with USB key performance. Its R/W throughput is comparable to HDD only on paper. In reality it seems that USB can't cope efficiently with small sector-sized writes but also scattered reads seem to be far from optimal.Either that or USB driver really sucks on Linux. It is very useable as fallback though. Like having one USB key soldered directly on the MoBO and using it for boot if/when your HDD croaks or if something eats your main boot option... Regards, Branko Raffaele BELARDI wrote: > In the process of building an amd64 diskless box, I am trying to make a > bootable USB key with no success up to now. > > The first problem I encountered was related to ext2/vfat. I initially > tried to format the key as ext2, but grub refuses to install on it. Even > though I copied the /boot/grub/* directory into the key, and I see it is > there, grub does not see it. The problem does not happen with vfat. > > So I worked around that and created two partitions in the key, a small > vfat for the /boot and a 2Gb ext2 for the /. I copied the stage3 into > the / with no problem. In the /boot I put the kernel image which I am > already using on the same box, for now with discs still connected. All > the modules are compiled in. > > When I boot from the key, grub enters the shell (although I did create > the grub.conf and menu.1st, so I don't understand why it doesn't show > the menu). I manually specify the kernel file location and root > parameter: > > >> kernel /linux-2.6.24-gentoo-r4 root=/dev/sdg1 >> boot >> > > The kernel starts to load, but panics because it is unable to find the > root partition. When it stops it shows the available partitions, these > include all the hard disk partitions but no USB key partition. In fact, > if I omit the 'root' parameter from the grub shell the boot works fine > but it uses the hard disk root partition instead of the USB one. > > >From the log on the screen the USB controller seems correctly detected, > so I don't understand why it is not finding the root. While writing this > one idea comes to my mind, maybe it is failing because I attach the key > to a SDC/MMC/USB card reader? This evening I'll try to plug it into a > different USB slot. > > Any other ideas welcome. > > raffaele > > -- gentoo-amd64@lists.gentoo.org mailing list