Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Moving root filesystem to a new partition
Date: Mon, 23 Nov 2009 22:10:04
Message-Id: 200911232151.28693.wonko@wonkology.org
In Reply to: [gentoo-user] Moving root filesystem to a new partition by "Alan E. Davis"
1 Alan E. Davis writes:
2
3 > I copied the root (/) partition with the new partition at /dev/sdb5
4 > mounted as /newroot, using
5 > # cp -ax / /newroot
6 >
7 > I checked that /proc, /dev, and /sys are there, and empty. I recall
8 > there are some other steps necessary.
9
10 /dev needs at least the entries console and null, and tty1 for splash
11 things (I think). You could create them like this:
12 mknod c 5 1 /dev/console
13 mknod c 1 3 /dev/null
14 mknod c 4 1 /dev/tty1
15
16 Or copy over your original /dev directory (without the stuff udev added)
17 from the old system:
18 mount -o bind / /mnt
19 cp -a /mnt/dev /newroot/
20
21 Wonko