* [gentoo-user] root fs moved, but no init
@ 2011-07-23 23:49 Adam Carter
2011-07-24 20:08 ` [gentoo-user] " walt
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Adam Carter @ 2011-07-23 23:49 UTC (permalink / raw
To: gentoo-user
Summary;
Copied / from sda3 to sdb3
Updated the fstab in the new disk (/dev/sdb3 /
btrfs noatime,compress=lzo 0 0)
Updated the kernel line's root=/dev/sda3 to /dev/sdb3 in grub.conf,
but left the root (hd0,0) as it is. So, kernel is loaded from sda but
init should run from sdb.
When booting the kernel successfully mounts /dev/sdb3 as root fs
Then the system halts at one of the freeing memory messages, but I
assume the problem is that init isn't executed from /dev/sdb3
Since root is mounted, i know i have all the drivers I need in the
kernel. Any ideas why booting stops?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: root fs moved, but no init
2011-07-23 23:49 [gentoo-user] root fs moved, but no init Adam Carter
@ 2011-07-24 20:08 ` walt
2011-07-24 20:11 ` Nicolas Sebrecht
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: walt @ 2011-07-24 20:08 UTC (permalink / raw
To: gentoo-user
On 07/23/2011 04:49 PM, Adam Carter wrote:
> Summary;
> Copied / from sda3 to sdb3
> Updated the fstab in the new disk (/dev/sdb3 /
> btrfs noatime,compress=lzo 0 0)
> Updated the kernel line's root=/dev/sda3 to /dev/sdb3 in grub.conf,
> but left the root (hd0,0) as it is. So, kernel is loaded from sda but
> init should run from sdb.
> When booting the kernel successfully mounts /dev/sdb3 as root fs
> Then the system halts at one of the freeing memory messages, but I
> assume the problem is that init isn't executed from /dev/sdb3
>
> Since root is mounted, i know i have all the drivers I need in the
> kernel. Any ideas why booting stops?
Are the perms correct on the copied init?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: root fs moved, but no init
2011-07-23 23:49 [gentoo-user] root fs moved, but no init Adam Carter
2011-07-24 20:08 ` [gentoo-user] " walt
@ 2011-07-24 20:11 ` Nicolas Sebrecht
2011-07-24 23:29 ` Adam Carter
2011-07-25 7:57 ` [gentoo-user] " Neil Bothwick
2011-07-25 10:20 ` Albert Hopkins
3 siblings, 1 reply; 9+ messages in thread
From: Nicolas Sebrecht @ 2011-07-24 20:11 UTC (permalink / raw
To: gentoo-user; +Cc: Nicolas Sebrecht
On Sun, Jul 24, 2011 at 09:49:21AM +1000, Adam Carter wrote:
> Summary;
> Copied / from sda3 to sdb3
> Updated the fstab in the new disk (/dev/sdb3 /
> btrfs noatime,compress=lzo 0 0)
> Updated the kernel line's root=/dev/sda3 to /dev/sdb3 in grub.conf,
> but left the root (hd0,0) as it is. So, kernel is loaded from sda but
> init should run from sdb.
> When booting the kernel successfully mounts /dev/sdb3 as root fs
> Then the system halts at one of the freeing memory messages, but I
> assume the problem is that init isn't executed from /dev/sdb3
>
> Since root is mounted, i know i have all the drivers I need in the
> kernel. Any ideas why booting stops?
Unix rights on files? How did you copy the system?
--
Nicolas Sebrecht
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: root fs moved, but no init
2011-07-24 20:11 ` Nicolas Sebrecht
@ 2011-07-24 23:29 ` Adam Carter
0 siblings, 0 replies; 9+ messages in thread
From: Adam Carter @ 2011-07-24 23:29 UTC (permalink / raw
To: gentoo-user
> Unix rights on files? How did you copy the system?
Yep, identical to the original. I used tar to copy the files and
maintain permissions. Checksums match too.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] root fs moved, but no init
2011-07-23 23:49 [gentoo-user] root fs moved, but no init Adam Carter
2011-07-24 20:08 ` [gentoo-user] " walt
2011-07-24 20:11 ` Nicolas Sebrecht
@ 2011-07-25 7:57 ` Neil Bothwick
2011-07-25 10:25 ` Adam Carter
2011-07-25 10:20 ` Albert Hopkins
3 siblings, 1 reply; 9+ messages in thread
From: Neil Bothwick @ 2011-07-25 7:57 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 673 bytes --]
On Sun, 24 Jul 2011 09:49:21 +1000, Adam Carter wrote:
> When booting the kernel successfully mounts /dev/sdb3 as root fs
> Then the system halts at one of the freeing memory messages, but I
> assume the problem is that init isn't executed from /dev/sdb3
Doesn't the kernel say something along the lines of "unable to run" init"
when it can't find it. You can test whether it is getting as far as
trying to run init by adding "init=/bin/sh" to your kernel options, which
should drop you straight into a shell.
--
Neil Bothwick
"Two things are infinite: the universe and human stupidity;
and I'm not sure about the the universe."
(Albert Einstein)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] root fs moved, but no init
2011-07-23 23:49 [gentoo-user] root fs moved, but no init Adam Carter
` (2 preceding siblings ...)
2011-07-25 7:57 ` [gentoo-user] " Neil Bothwick
@ 2011-07-25 10:20 ` Albert Hopkins
3 siblings, 0 replies; 9+ messages in thread
From: Albert Hopkins @ 2011-07-25 10:20 UTC (permalink / raw
To: gentoo-user
On Sunday, July 24 at 09:49 (+1000), Adam Carter said:
> Summary;
> Copied / from sda3 to sdb3
> Updated the fstab in the new disk (/dev/sdb3 /
> btrfs noatime,compress=lzo 0 0)
> Updated the kernel line's root=/dev/sda3 to /dev/sdb3 in grub.conf,
> but left the root (hd0,0) as it is. So, kernel is loaded from sda but
> init should run from sdb.
> When booting the kernel successfully mounts /dev/sdb3 as root fs
> Then the system halts at one of the freeing memory messages, but I
> assume the problem is that init isn't executed from /dev/sdb3
I wouldn't assume. If init isn't executed you should get an explicit
error from the kernel:
Kernel panic - not syncing: No init found. Try passing init=
option to the kernel.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] root fs moved, but no init
2011-07-25 7:57 ` [gentoo-user] " Neil Bothwick
@ 2011-07-25 10:25 ` Adam Carter
2011-07-25 11:04 ` Adam Carter
0 siblings, 1 reply; 9+ messages in thread
From: Adam Carter @ 2011-07-25 10:25 UTC (permalink / raw
To: gentoo-user
On Mon, Jul 25, 2011 at 5:57 PM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Sun, 24 Jul 2011 09:49:21 +1000, Adam Carter wrote:
>
>> When booting the kernel successfully mounts /dev/sdb3 as root fs
>> Then the system halts at one of the freeing memory messages, but I
>> assume the problem is that init isn't executed from /dev/sdb3
>
> Doesn't the kernel say something along the lines of "unable to run" init"
> when it can't find it. You can test whether it is getting as far as
> trying to run init by adding "init=/bin/sh" to your kernel options, which
> should drop you straight into a shell.
No message about init, just no more console messages. I'll try the
kernel line. Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] root fs moved, but no init
2011-07-25 10:25 ` Adam Carter
@ 2011-07-25 11:04 ` Adam Carter
2011-07-25 11:17 ` Albert Hopkins
0 siblings, 1 reply; 9+ messages in thread
From: Adam Carter @ 2011-07-25 11:04 UTC (permalink / raw
To: gentoo-user
> No message about init, just no more console messages. I'll try the
> kernel line. Thanks.
Ok. i ran init from the shell, and it reported /dev/initctl no such
device or directory.
I hadnt copied the contents of /dev across - i thought it was created
automagically?
Anyway, its copied now and I have booted successfully from the sdb.
Thanks Neil and Albert!
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] root fs moved, but no init
2011-07-25 11:04 ` Adam Carter
@ 2011-07-25 11:17 ` Albert Hopkins
0 siblings, 0 replies; 9+ messages in thread
From: Albert Hopkins @ 2011-07-25 11:17 UTC (permalink / raw
To: gentoo-user
On Monday, July 25 at 21:04 (+1000), Adam Carter said:
> > No message about init, just no more console messages. I'll try the
> > kernel line. Thanks.
>
> Ok. i ran init from the shell, and it reported /dev/initctl no such
> device or directory.
>
> I hadnt copied the contents of /dev across - i thought it was created
> automagically?
>
> Anyway, its copied now and I have booted successfully from the sdb.
There is always (well usually)* an initial /dev created in root. This is needed
for before udev kicks in. You should always copy that (and make sure it's /dev on
the root fs, not the udev /dev that gets mounted over it.
* This was the cause of a bug in the stage3 tarballs a few weeks back, where some /dev
entries did not exist in the tarball and the result was that people were able to
successfully install Gentoo, but were not able to successfully boot into the
installation.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-07-25 11:19 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-23 23:49 [gentoo-user] root fs moved, but no init Adam Carter
2011-07-24 20:08 ` [gentoo-user] " walt
2011-07-24 20:11 ` Nicolas Sebrecht
2011-07-24 23:29 ` Adam Carter
2011-07-25 7:57 ` [gentoo-user] " Neil Bothwick
2011-07-25 10:25 ` Adam Carter
2011-07-25 11:04 ` Adam Carter
2011-07-25 11:17 ` Albert Hopkins
2011-07-25 10:20 ` Albert Hopkins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox