public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] cloning problem
@ 2013-02-04 15:53 Helmut Jarausch
  2013-02-04 21:52 ` Neil Bothwick
  0 siblings, 1 reply; 4+ messages in thread
From: Helmut Jarausch @ 2013-02-04 15:53 UTC (permalink / raw
  To: gentoo-user

Hi,

since not too long I have a problem when cloning a Gentoo system
on to a machine with identical hardware.
I copy / /usr and /LOCAL to the new machine, edit several files in /etc
rebuilt the kernel and reinstall grub:0. Furthermore I have adapted the
fstab file in the initramfs.

On the very first boot the cloned system fails to mount all file systems
even /dev/pts which is a bit problematic when doing all this from  
remote.

I get PTY allocation request failed on channel 0

Luckily I still can use the console on the remote system although I  
don't
get a prompt.

Just doing
mount -a

and rebooting seems to fix the problem.

Still, I'm interested what's going there?

Many thanks for a hint,
Helmut.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] cloning problem
  2013-02-04 15:53 [gentoo-user] cloning problem Helmut Jarausch
@ 2013-02-04 21:52 ` Neil Bothwick
  2013-02-05  8:26   ` Helmut Jarausch
  0 siblings, 1 reply; 4+ messages in thread
From: Neil Bothwick @ 2013-02-04 21:52 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 618 bytes --]

On Mon, 04 Feb 2013 16:53:09 +0100, Helmut Jarausch wrote:

> On the very first boot the cloned system fails to mount all file systems
> even /dev/pts which is a bit problematic when doing all this from  
> remote.
> 
> I get PTY allocation request failed on channel 0
> 
> Luckily I still can use the console on the remote system although I  
> don't
> get a prompt.


Did you copy /dev/null and /dev/console to the new machine. These need to
exist on the root partition as they are needed before udev starts.


-- 
Neil Bothwick

WinErr 00F: Unexplained error - Please tell us how this happened

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] cloning problem
  2013-02-04 21:52 ` Neil Bothwick
@ 2013-02-05  8:26   ` Helmut Jarausch
  2013-02-05  8:47     ` Neil Bothwick
  0 siblings, 1 reply; 4+ messages in thread
From: Helmut Jarausch @ 2013-02-05  8:26 UTC (permalink / raw
  To: gentoo-user

On 02/04/2013 10:52:44 PM, Neil Bothwick wrote:
> On Mon, 04 Feb 2013 16:53:09 +0100, Helmut Jarausch wrote:
> 
> > On the very first boot the cloned system fails to mount all file  
> systems
> > even /dev/pts which is a bit problematic when doing all this from
> > remote.
> >
> > I get PTY allocation request failed on channel 0
> >
> > Luckily I still can use the console on the remote system although I
> > don't
> > get a prompt.
> 
> 
> Did you copy /dev/null and /dev/console to the new machine. These  
> need to
> exist on the root partition as they are needed before udev starts.
> 

Thanks Neil,
what do you mean by copy?

When cloning, I transfer a tarball of the root and usr partition.
Doesn't that suffice?

The only thing which comes to my mind now is that the tarball was  
created from
a live root partition.

Helmut.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] cloning problem
  2013-02-05  8:26   ` Helmut Jarausch
@ 2013-02-05  8:47     ` Neil Bothwick
  0 siblings, 0 replies; 4+ messages in thread
From: Neil Bothwick @ 2013-02-05  8:47 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 842 bytes --]

On Tue, 05 Feb 2013 09:26:06 +0100, Helmut Jarausch wrote:

> > Did you copy /dev/null and /dev/console to the new machine. These  
> > need to
> > exist on the root partition as they are needed before udev starts.
> >   
> 
> Thanks Neil,
> what do you mean by copy?
> 
> When cloning, I transfer a tarball of the root and usr partition.
> Doesn't that suffice?
> 
> The only thing which comes to my mind now is that the tarball was  
> created from
> a live root partition.

There's the problem. The live root partition has a devfs mounted on /dev
so the contents of /dev on the root filesystem are unavailable. Either
use a live CD or bind mount / somewhere and copy that.

mount --bind / /mnt/tmp
cd /mnt/tmp
tar -czf tarball.tgz .


-- 
Neil Bothwick

Unable to open TROUSER.ZIP - replace floppy and retry.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-05  8:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-04 15:53 [gentoo-user] cloning problem Helmut Jarausch
2013-02-04 21:52 ` Neil Bothwick
2013-02-05  8:26   ` Helmut Jarausch
2013-02-05  8:47     ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox