Gentoo Archives: gentoo-user

From: Albert Hopkins <marduk@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Gentoo from ext3 to ext4
Date: Fri, 30 Jan 2009 17:25:54
Message-Id: 1233336216.2842.6.camel@localhost.localdomain
In Reply to: [gentoo-user] Gentoo from ext3 to ext4 by reQuiem23
1 On Fri, 2009-01-30 at 08:48 -0800, reQuiem23 wrote:
2 > Hi all,
3 >
4 > i just had the idea to make a new ext4 partition (via mkfs.ext4) and copy
5 > (cp) my whole root-dir into that new partition, change the /etc/fstab, add
6 > an entry to the grub.conf and booting into that new partition. My /boot is
7 > on a separate ext3 partition, so this is not a problem. The kernel i use is
8 > gentoo-sources 2.6.28-r1 with ext4-support enabled. However, when i want to
9 > boot into my new system, the system starts, even the uvesafb starts, but
10 > than the booting process stops with a message like "tty starting" and the
11 > system reboots.
12 >
13 > I removed all the files in /proc /dev and /sys, so probably this could be
14 > the cause of the problem.
15
16 Yeah, you probably shouldn't have done that. There are 'skeleton'
17 copies of /dev/ files in your root partition before udev kicks in and
18 those files are needed by the boot process (e.g. /dev/console).
19
20 What I recommend doing is:
21 * boot into a livecd/usbstick
22 * mount your root partition (ro) somewhere (e.g. /tmp/root
23 * mount your empty destination partition somewhere
24 (e.g. /tmp/newroot)
25 * copy the files over to the new ext4 partition in whatever manner
26 * reconfigure new fstab, grub.conf, etc and reboot.
27
28 For livecd/usb I always use RipLinux. The latest version supports ext4
29 and has both 32- and 64-bit kernels.

Replies

Subject Author
Re: [gentoo-user] Gentoo from ext3 to ext4 reQuiem23 <niklas.baumstark@×××××.com>