Gentoo Archives: gentoo-user

From: Saphirus Sage <saphirus497@×××××.com>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Gentoo from ext3 to ext4
Date: Fri, 30 Jan 2009 18:39:38
Message-Id: 6B9088FA-132E-4E88-8E1B-A652391094F0@gmail.com
In Reply to: Re: [gentoo-user] Gentoo from ext3 to ext4 by reQuiem23
1 On Jan 30, 2009, at 1:23 PM, reQuiem23 <niklas.baumstark@×××××.com>
2 wrote:
3
4 >
5 >
6 >
7 > Albert Hopkins-4 wrote:
8 >>
9 >> On Fri, 2009-01-30 at 08:48 -0800, reQuiem23 wrote:
10 >>> Hi all,
11 >>>
12 >>> i just had the idea to make a new ext4 partition (via mkfs.ext4)
13 >>> and copy
14 >>> (cp) my whole root-dir into that new partition, change the /etc/
15 >>> fstab,
16 >>> add
17 >>> an entry to the grub.conf and booting into that new partition. My /
18 >>> boot
19 >>> is
20 >>> on a separate ext3 partition, so this is not a problem. The kernel
21 >>> i use
22 >>> is
23 >>> gentoo-sources 2.6.28-r1 with ext4-support enabled. However, when
24 >>> i want
25 >>> to
26 >>> boot into my new system, the system starts, even the uvesafb
27 >>> starts, but
28 >>> than the booting process stops with a message like "tty starting"
29 >>> and the
30 >>> system reboots.
31 >>>
32 >>> I removed all the files in /proc /dev and /sys, so probably this
33 >>> could be
34 >>> the cause of the problem.
35 >>
36 >> Yeah, you probably shouldn't have done that. There are 'skeleton'
37 >> copies of /dev/ files in your root partition before udev kicks in and
38 >> those files are needed by the boot process (e.g. /dev/console).
39 >>
40 >> What I recommend doing is:
41 >> * boot into a livecd/usbstick
42 >> * mount your root partition (ro) somewhere (e.g. /tmp/root
43 >> * mount your empty destination partition somewhere
44 >> (e.g. /tmp/newroot)
45 >> * copy the files over to the new ext4 partition in whatever
46 >> manner
47 >> * reconfigure new fstab, grub.conf, etc and reboot.
48 >>
49 >> For livecd/usb I always use RipLinux. The latest version supports
50 >> ext4
51 >> and has both 32- and 64-bit kernels.
52 >>
53 >>
54 >>
55 >>
56 >
57 > I did it exactly the way you recommended, but i still get an error,
58 > even
59 > though it's another one than before:
60 >
61 > Kernel: Unable to open an initial console.
62 > Kernel panic - not syncing: No init found. Try passing init= option
63 > to
64 > kernel.
65 >
66 > An idea?
67 > --
68 > View this message in context: http://www.nabble.com/Gentoo-from-ext3-to-ext4-tp21750949p21752851.html
69 > Sent from the gentoo-user mailing list archive at Nabble.com.
70 >
71 >
72 I had a similar problem with my initial LiveCD install. Do you just
73 boot directly from the gzipped kernel image or use initramfs?

Replies

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