* [gentoo-user] Boot Gentoo - by hand - line-by-line - command-by-command?
@ 2010-09-26 23:47 Mark Knecht
2010-09-27 0:43 ` Thomas Yao
2010-09-28 12:58 ` [gentoo-user] " James
0 siblings, 2 replies; 7+ messages in thread
From: Mark Knecht @ 2010-09-26 23:47 UTC (permalink / raw
To: gentoo-user
Hi,
I'm curious if there's a way to capture the exact set of command
that my machine executes as it boots up. I.e. - if I boot the machine,
letting the boot loader find the kernel but then stopping at a bash
prompt, before anything much has been done, I'd then like to know what
set of commands I could use from that bash prompt to make the machine
do whatever it does normally as it boots up.
Is that possible, and is it documented anywhere? Or instead of
capturing commands maybe just a list of things that happen and the
bash commands I'd use to execute them myself.
I think the init scripts, at least the ones I've found under
runlevels, are more generic than I would like to run. I'm looking for
something more like the portion of the install guide where we chroot
into the new build, except executing that from the command line of a
new machine that's booted. I.e.:
mount /dev/hda4 /mnt/gentoo
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
except modified to start from nothing and bring the machine up from
scratch. Mount /proc, mount /dev, start udev, check root filesystem,
etc.
This is totally for self-education and nothing else really. Just
curious about how it happens, what order things happen, etc. If anyone
can recommend a good _basic_ book that talks about this I'd appreciate
it.
Thanks,
Mark
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Boot Gentoo - by hand - line-by-line - command-by-command?
2010-09-26 23:47 [gentoo-user] Boot Gentoo - by hand - line-by-line - command-by-command? Mark Knecht
@ 2010-09-27 0:43 ` Thomas Yao
2010-09-27 0:53 ` Mark Knecht
2010-09-28 12:58 ` [gentoo-user] " James
1 sibling, 1 reply; 7+ messages in thread
From: Thomas Yao @ 2010-09-27 0:43 UTC (permalink / raw
To: gentoo-user
You may try Linux From Scratch and try to write the init script
yourself, it's good for self-education
Once you master the LFS you can learn more things interesting and
amazing in gentoo
On 9/27/10, Mark Knecht <markknecht@gmail.com> wrote:
> Hi,
> I'm curious if there's a way to capture the exact set of command
> that my machine executes as it boots up. I.e. - if I boot the machine,
> letting the boot loader find the kernel but then stopping at a bash
> prompt, before anything much has been done, I'd then like to know what
> set of commands I could use from that bash prompt to make the machine
> do whatever it does normally as it boots up.
>
> Is that possible, and is it documented anywhere? Or instead of
> capturing commands maybe just a list of things that happen and the
> bash commands I'd use to execute them myself.
>
> I think the init scripts, at least the ones I've found under
> runlevels, are more generic than I would like to run. I'm looking for
> something more like the portion of the install guide where we chroot
> into the new build, except executing that from the command line of a
> new machine that's booted. I.e.:
>
> mount /dev/hda4 /mnt/gentoo
> mount -t proc none /mnt/gentoo/proc
> mount -o bind /dev /mnt/gentoo/dev
>
> except modified to start from nothing and bring the machine up from
> scratch. Mount /proc, mount /dev, start udev, check root filesystem,
> etc.
>
> This is totally for self-education and nothing else really. Just
> curious about how it happens, what order things happen, etc. If anyone
> can recommend a good _basic_ book that talks about this I'd appreciate
> it.
>
> Thanks,
> Mark
>
>
--
@ghosTM55
Mechanism, not policy
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Boot Gentoo - by hand - line-by-line - command-by-command?
2010-09-27 0:43 ` Thomas Yao
@ 2010-09-27 0:53 ` Mark Knecht
0 siblings, 0 replies; 7+ messages in thread
From: Mark Knecht @ 2010-09-27 0:53 UTC (permalink / raw
To: gentoo-user
On Sun, Sep 26, 2010 at 5:43 PM, Thomas Yao <t.yao426@gmail.com> wrote:
> You may try Linux From Scratch and try to write the init script
> yourself, it's good for self-education
>
> Once you master the LFS you can learn more things interesting and
> amazing in gentoo
>
I was just looking at LFS in another tab.
Thanks!
> On 9/27/10, Mark Knecht <markknecht@gmail.com> wrote:
>> Hi,
>> I'm curious if there's a way to capture the exact set of command
>> that my machine executes as it boots up. I.e. - if I boot the machine,
>> letting the boot loader find the kernel but then stopping at a bash
>> prompt, before anything much has been done, I'd then like to know what
>> set of commands I could use from that bash prompt to make the machine
>> do whatever it does normally as it boots up.
>>
>> Is that possible, and is it documented anywhere? Or instead of
>> capturing commands maybe just a list of things that happen and the
>> bash commands I'd use to execute them myself.
>>
>> I think the init scripts, at least the ones I've found under
>> runlevels, are more generic than I would like to run. I'm looking for
>> something more like the portion of the install guide where we chroot
>> into the new build, except executing that from the command line of a
>> new machine that's booted. I.e.:
>>
>> mount /dev/hda4 /mnt/gentoo
>> mount -t proc none /mnt/gentoo/proc
>> mount -o bind /dev /mnt/gentoo/dev
>>
>> except modified to start from nothing and bring the machine up from
>> scratch. Mount /proc, mount /dev, start udev, check root filesystem,
>> etc.
>>
>> This is totally for self-education and nothing else really. Just
>> curious about how it happens, what order things happen, etc. If anyone
>> can recommend a good _basic_ book that talks about this I'd appreciate
>> it.
>>
>> Thanks,
>> Mark
>>
>>
>
>
> --
> @ghosTM55
> Mechanism, not policy
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-user] Re: Boot Gentoo - by hand - line-by-line - command-by-command?
2010-09-26 23:47 [gentoo-user] Boot Gentoo - by hand - line-by-line - command-by-command? Mark Knecht
2010-09-27 0:43 ` Thomas Yao
@ 2010-09-28 12:58 ` James
2010-09-28 15:08 ` Bill Longman
` (2 more replies)
1 sibling, 3 replies; 7+ messages in thread
From: James @ 2010-09-28 12:58 UTC (permalink / raw
To: gentoo-user
Mark Knecht <markknecht <at> gmail.com> writes:
> I'm curious if there's a way to capture the exact set of command
> that my machine executes as it boots up.
Hello Mark,
maybe 'app-admin/showconsole', is a good (quick) place to
start by logging console output during the boot process?
hth,
James
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Re: Boot Gentoo - by hand - line-by-line - command-by-command?
2010-09-28 12:58 ` [gentoo-user] " James
@ 2010-09-28 15:08 ` Bill Longman
2010-09-28 16:07 ` covici
2010-09-28 18:54 ` Mark Knecht
2 siblings, 0 replies; 7+ messages in thread
From: Bill Longman @ 2010-09-28 15:08 UTC (permalink / raw
To: gentoo-user
On 09/28/10 05:58, James wrote:
> Mark Knecht <markknecht <at> gmail.com> writes:
>
>
>> I'm curious if there's a way to capture the exact set of command
>> that my machine executes as it boots up.
> Hello Mark,
>
> maybe 'app-admin/showconsole', is a good (quick) place to
> start by logging console output during the boot process?
>
>
>
Thanks, James. I knew there was an application out there but I just
couldn't remember it!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Re: Boot Gentoo - by hand - line-by-line - command-by-command?
2010-09-28 12:58 ` [gentoo-user] " James
2010-09-28 15:08 ` Bill Longman
@ 2010-09-28 16:07 ` covici
2010-09-28 18:54 ` Mark Knecht
2 siblings, 0 replies; 7+ messages in thread
From: covici @ 2010-09-28 16:07 UTC (permalink / raw
To: gentoo-user
James <wireless@tampabay.rr.com> wrote:
> Mark Knecht <markknecht <at> gmail.com> writes:
>
>
> > I'm curious if there's a way to capture the exact set of command
> > that my machine executes as it boots up.
>
> Hello Mark,
>
> maybe 'app-admin/showconsole', is a good (quick) place to
> start by logging console output during the boot process?
>
How about where it says press I to enter interactive mode? This will
not be on the initrd, but it will work on the main and has worked for
me.
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Re: Boot Gentoo - by hand - line-by-line - command-by-command?
2010-09-28 12:58 ` [gentoo-user] " James
2010-09-28 15:08 ` Bill Longman
2010-09-28 16:07 ` covici
@ 2010-09-28 18:54 ` Mark Knecht
2 siblings, 0 replies; 7+ messages in thread
From: Mark Knecht @ 2010-09-28 18:54 UTC (permalink / raw
To: gentoo-user
On Tue, Sep 28, 2010 at 5:58 AM, James <wireless@tampabay.rr.com> wrote:
> Mark Knecht <markknecht <at> gmail.com> writes:
>
>
>> I'm curious if there's a way to capture the exact set of command
>> that my machine executes as it boots up.
>
> Hello Mark,
>
> maybe 'app-admin/showconsole', is a good (quick) place to
> start by logging console output during the boot process?
>
>
> hth,
> James
James,
Thanks. I've tried showconsole a couple of times in the past but
given up in frustration. I never get output, or don't know where to
look, or don't know how to configure it. (Or all of the above!)
The man page seems pretty useless. It's one of those 'If you
already know how to use this then this will make sense..." sorts of
things.
I've reemerged it and rebooted. What now?
Thanks,
Mark
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-09-28 18:55 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-26 23:47 [gentoo-user] Boot Gentoo - by hand - line-by-line - command-by-command? Mark Knecht
2010-09-27 0:43 ` Thomas Yao
2010-09-27 0:53 ` Mark Knecht
2010-09-28 12:58 ` [gentoo-user] " James
2010-09-28 15:08 ` Bill Longman
2010-09-28 16:07 ` covici
2010-09-28 18:54 ` Mark Knecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox