Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] grub and what happens exactly when booting.
Date: Fri, 16 Sep 2011 08:13:50
Message-Id: 20110916101146.12a84e2b@rohan.example.com
In Reply to: [gentoo-user] grub and what happens exactly when booting. by Dale
1 On Thu, 15 Sep 2011 20:49:02 -0500
2 Dale <rdalek1967@×××××.com> wrote:
3
4 > OK. The Chief Idiot is going to experiment some. You ALL know what
5 > this means right? Yep, I'm about to really make a mess of things so
6 > here comes some questions. This is a result of the /usr and udev
7 > crap. So, go to -dev and blame them, not me. ;-)
8
9 Uh-oh! :-)
10
11 >
12 > OK. I have three drives in my rig. One is for data files, mounted
13 > on /data ironically, and has nothing to do with the OS. So, for that
14 > reason I'm going to leave it out of this. So, I now have two drives
15 > in my rig that are about to be OS related. sda is a 160Gb and sdb is
16 > a 250Gb. I'm going to leave the first one, sda, as is and will use
17 > sdb for testing. Before I start, I want to sort of get my brain
18 > wrapped back around this. It has been a LONG time since I dual
19 > booted Linux and that was only for a month or so. I have grub
20 > installed on the MBR of sda. My boot partition is on sda1 like most
21 > likely 99% of the rest of you and it will stay there even after all
22 > this is done. I got /boot from the old handbook days. When I put my
23 > new install on sdb, with this new initramfs thingy and quite possibly
24 > LVM, do I leave grub on sda's MBR and just point to sdb for the
25 > kernel and init thingy and all will be well?
26
27 The basic idea is you set the boot drive in the bios and which runs grub
28 from that drive's mbr. When you installed that grub you hard-coded it
29 to know where to find it's grub.conf.
30
31 You can use the existing grub and it's config files just fine. Add a
32 new entry for your new stuff on sdb - grub will reference that drive as
33 (hd1) in grub.conf - and configure the root, kernel and initrd
34 settings appropriately.
35
36 If I were you I'd install grub to the mbr on sdb as well. If you happen
37 to switch sda and sdb around, you'll still have code to boot from on
38 the new first drive and not need to change the boot drive settings in
39 the bios. It's not a necessity, just a convenience.
40
41
42
43 >
44 > If this all works out, I will be moving everything from sdb to sda
45 > anyway. My plan is to get them both bootable, then use one to copy
46 > to another after I have learned a bit about this mess. I haven't got
47 > that far yet but wanting to figure this init thingy out before I'm
48 > forced to which will only make it taste even worse.
49 >
50 > What I am reading so far:
51 >
52 > http://en.gentoo-wiki.com/wiki/Initramfs
53 >
54 > I did a google search and found some others boot this is more Gentoo
55 > oriented. So, anything wrong with this as a guide? Pointers to
56 > others if they are better would be great.
57 >
58 > Here starts a learning process. It could get bumpy. lol
59 >
60 > Dale
61 >
62 > :-) :-)
63 >
64
65
66
67 --
68 Alan McKinnnon
69 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] grub and what happens exactly when booting. Dale <rdalek1967@×××××.com>