From: Jake Moe <jakesaddress@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Booting Gentoo from USB stick
Date: Tue, 21 Sep 2010 15:35:13 +1000 [thread overview]
Message-ID: <4C984411.9090905@gmail.com> (raw)
In-Reply-To: <201009161330.25890.joost@antarean.org>
On 16/09/10 21:30, J. Roeleveld wrote:
> On Thursday 16 September 2010 12:01:43 Jake Moe wrote:
>> On 09/16/10 16:22, J. Roeleveld wrote:
>>> On Thursday 16 September 2010 00:34:39 Jake Moe wrote:
>>>> On 16/09/10 08:26, Dale wrote:
>>>>> Jake Moe wrote:
>>>>>> Thanks for that, I'll rebuild the genkernel with blkid support.
>>>>>>
>>>>>> As to the second suggestion, there is *no* /dev/sda1 (the partition in
>>>>>> question). It just doesn't exist for some reason. However, fstab
>>>>>> shows that it's mounted, and /sys/block has entries for the disk, so
>>>>>> I'm not sure why it's dropped out. I'm guessing it has something to
>>>>>> do with udevd, or uevents? Because shortly before that, I tell it to
>>>>>> find the root partition at /dev/sda1, and it starts to boot, but then
>>>>>> it loses it.
>>>>>>
>>>>>> Jake Moe
>>>>> The file fstab doesn't show what is mounted. Either use the command
>>>>> "mount" with no options or cat /etc/mtab to see what is actually
>>>>> mounted.
>>>>>
>>>>> Dale
>>>>>
>>>>> :-) :-)
>>>> Gah, it's too early. That's what I meant to say (and previously said in
>>>> my original post): when I run "mount", it shows /dev/sda1 is mounted on
>>>> /.
>>>>
>>>> Jake Moe
>>> I wonder if it looses the "/dev" tree when it mounts the root-partition
>>> read only prior to running the fsck.
>>> That could explain why it's not there.
>>>
>>> Try building a dummy /dev-tree on your root partition with the correct
>>> device- nodes hardcoded for /dev/sdxxxxxx and see how far you get then?
>>>
>>> --
>>> Joost
>> Erm, you've gone a bit beyond my knowledge there. Are you saying I
>> should go into the maintenance console, create a dummy /devdir, and try
>> to mknod the hard drive? I assume I'd use something like 'mknod
>> /dev/sda c 8 0'? If not, what do you mean, cause you've lost me.
>>
>> Jake Moe
> Ok, what I mean is that I think the following might happen:
>
> 1) root-dir from ramdisk is mounted under /
> 2) dev-tree is mounted under /dev
> 3) /dev/sda1 is mounted under /
> 4) at this point, /dev might no longer be accessible.
>
> Now, if you make sure that on the USB-root (/dev/sda1) the folder /dev is
> actually populated, then it might continue through the boot-process.
>
> Or, as you mentioned, issue "mknod ......." commands while in that
> maintenance console, then it might be able to find the /dev/sda, /dev/sda1,...
> devices and continue.
>
> 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.
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.
Jake Moe
next prev parent reply other threads:[~2010-09-21 5:35 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-10 5:09 [gentoo-user] Booting Gentoo from USB stick Jake Moe
2010-09-10 7:27 ` Maciej Grela
2010-09-10 8:43 ` Jake Moe
2010-09-10 9:05 ` J. Roeleveld
2010-09-10 11:29 ` David Relson
2010-09-14 18:28 ` YoYo Siska
2010-09-14 22:34 ` Jake Moe
2010-09-15 10:10 ` YoYo Siska
2010-09-15 22:03 ` Jake Moe
2010-09-15 22:18 ` Al
2010-09-15 22:43 ` Jake Moe
2010-09-15 23:04 ` Al
2010-09-16 0:21 ` Jake Moe
2010-09-16 11:08 ` Al
2010-09-15 22:26 ` Dale
2010-09-15 22:34 ` Jake Moe
2010-09-16 6:22 ` J. Roeleveld
2010-09-16 10:01 ` Jake Moe
2010-09-16 11:30 ` J. Roeleveld
2010-09-21 5:35 ` Jake Moe [this message]
2010-09-21 7:26 ` J. Roeleveld
2010-09-22 4:36 ` Jake Moe
2010-09-22 7:02 ` Al
2010-09-22 8:57 ` Jake Moe
2010-09-22 7:16 ` J. Roeleveld
2010-09-22 9:13 ` Jake Moe
2010-09-22 11:23 ` J. Roeleveld
2010-09-10 10:51 ` Al
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=4C984411.9090905@gmail.com \
--to=jakesaddress@gmail.com \
--cc=gentoo-user@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