Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM.
Date: Fri, 13 Apr 2012 20:37:42
Message-Id: 4F888E1F.9050205@gmail.com
In Reply to: Re: [gentoo-user] About ready to move /usr, /var and /home to LVM. by Dale
1 Dale wrote:
2 > I have ran into a issue here. I copied everything over to sdb, my temp
3 > drive. When I try to boot it, it still boots from sda which is the
4 > primary drive. I can not get it to boot from the copy. I did update
5 > the fstab file to point to the new sdb partitions, I use labels for that
6 > and they have different names. I also edited grub and told it root was
7 > sdb2. When I boot, everything mounted is sda.
8 >
9 > I tried chrooting in and building a init thingy, still boots to sdb.
10 >
11 > What gives here?
12 >
13 > Name Flags Part TypeFS Type [Label] Size (MB)
14 > -------------------------------------------------------------------
15 > sdb1 Primary ext2 [boot-250g] 197.41
16 > sdb2 Primary ext4 [root-250g] 74998.11
17 > sdb5 Logical ext4 [home-250g] 50001.48
18 >
19 >
20 >
21 > LABEL=boot-250g /boot ext2 defaults 1 2
22 > LABEL=root-250g / ext4 defaults 0 1
23 > LABEL=home-250g /home ext4 defaults 0 2
24 >
25 >
26 > Those are from the copy. Here is grub:
27 >
28 > title=Initramfs-new_drive
29 > root (hd0,0)
30 > kernel /bzImage-3.3.1-1 root=/dev/sdb2 init=/sbin/init nox
31 > initrd /initramfs-3.3.1-1-tmp.img
32 >
33 > I have done this in the past and it worked but not now. Is this the
34 > init thingy mounting sda stuff and then Gentoo carries on from there?
35 > If so, how do I tell the init thingy to point to sdb stuff?
36 >
37 > Thoughts?
38 >
39 > Dale
40 >
41 > :-) :-)
42 >
43
44
45 OK. I thought of something else to try. I created a new grub entry.
46 This is a plain entry with no init thingy at all. It looks like this:
47
48 title Gentoo no init tmp drive
49 kernel (hd0,0)/bzImage-3.3.1-1 root=/dev/sdb2 nox
50
51 Simple but it still boots the sda drive instead of the sdb drive. What
52 am I missing here? I looked in dmesg, the root=/dev/sdb2 line is in
53 there so grub passes it on.
54
55 This is weird. I need ideas folks. I'm running out of things to try.
56
57 Dale
58
59 :-) :-)
60
61 --
62 I am only responsible for what I said ... Not for what you understood or
63 how you interpreted my words!
64
65 Miss the compile output? Hint:
66 EMERGE_DEFAULT_OPTS="--quiet-build=n"

Replies

Subject Author
Re[2]: [gentoo-user] About ready to move /usr, /var and /home to LVM. Stefan Schmiedl <s@×××.de>