public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Raffaele BELARDI <raffaele.belardi@st.com>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] boot Gentoo from USB key
Date: Wed, 30 Apr 2008 09:44:53 +0200	[thread overview]
Message-ID: <1209541493.6170.87.camel@ws2912.agr.st.com> (raw)
In-Reply-To: <48181818.5060502@avtomatika.com>

Thanks to you and Kyle for the hint on rootdelay, I will give it a try.

Regarding the performance, it should not be a real issue in my case. I
will only use the key to boot the kernel and send a Wake-on-Lan packet
to a file server, then I'll mount the discs over NFS.

bye,

raf

On Wed, 2008-04-30 at 08:56 +0200, Branko Badrljica wrote:
> 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



  reply	other threads:[~2008-04-30  7:40 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-30  6:43 [gentoo-amd64] boot Gentoo from USB key Raffaele BELARDI
2008-04-30  6:49 ` Kyle Liddell
2008-04-30  6:56 ` Branko Badrljica
2008-04-30  7:44   ` Raffaele BELARDI [this message]
2008-05-05  8:40     ` Raffaele BELARDI
2008-04-30 10:47 ` [gentoo-amd64] " Duncan
2008-04-30 12:35 ` [gentoo-amd64] " Jason
2008-04-30 14:29   ` Branko Badrljica
2008-04-30 14:47     ` Jason
2008-04-30 15:05       ` Branko Badrljica
2008-04-30 15:40         ` Jason
2008-04-30 15:55           ` Branko Badrljica
2008-05-05  8:53           ` Raffaele BELARDI
2008-04-30 17:39 ` Hernan Lopez
2008-04-30 17:58   ` Branko Badrljica
2008-05-01  7:26     ` Branko Badrljica
2008-04-30 18:03 ` Drake Donahue
2008-04-30 18:21   ` Drake Donahue
2008-05-02 11:22 ` [gentoo-amd64] " Duncan
2008-05-02 15:33   ` Drake Donahue
2008-05-05  8:38     ` Raffaele BELARDI
2008-05-06 13:18       ` Raffaele BELARDI
2008-05-06 17:08         ` Duncan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1209541493.6170.87.camel@ws2912.agr.st.com \
    --to=raffaele.belardi@st.com \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox