1 |
Dale, |
2 |
|
3 |
Friday, April 13, 2012, 10:35:43 PM, you wrote: |
4 |
|
5 |
>> I have ran into a issue here. I copied everything over to sdb, my temp |
6 |
>> drive. When I try to boot it, it still boots from sda which is the |
7 |
>> primary drive. I can not get it to boot from the copy. I did update |
8 |
>> the fstab file to point to the new sdb partitions, I use labels for that |
9 |
>> and they have different names. I also edited grub and told it root was |
10 |
>> sdb2. When I boot, everything mounted is sda. |
11 |
>> |
12 |
>> Those are from the copy. Here is grub: |
13 |
>> |
14 |
>> title=Initramfs-new_drive |
15 |
>> root (hd0,0) |
16 |
>> kernel /bzImage-3.3.1-1 root=/dev/sdb2 init=/sbin/init nox |
17 |
>> initrd /initramfs-3.3.1-1-tmp.img |
18 |
|
19 |
if you want to boot from /dev/sdb, why do you tell grub |
20 |
to use (hd0,0), which usually maps to /dev/sda1? |
21 |
|
22 |
I'd expect to see root (hd1,0) in there somewhere. |
23 |
|
24 |
Depending on boot flags and BIOS settings, you might still |
25 |
be using the MBR on /dev/sda. |
26 |
|
27 |
When I migrated a client's data over to a new disk a while |
28 |
ago, I basically used "tar cf - /sda | tar xf - -C /sdb" and |
29 |
then switched SATA cables before rebooting. The former /dev/sdb |
30 |
became /dev/sda and everything was fine. |
31 |
|
32 |
s. |
33 |
|
34 |
>> |
35 |
>> I have done this in the past and it worked but not now. Is this the |
36 |
>> init thingy mounting sda stuff and then Gentoo carries on from there? |
37 |
>> If so, how do I tell the init thingy to point to sdb stuff? |
38 |
>> |
39 |
>> Thoughts? |
40 |
>> |
41 |
>> Dale |
42 |
>> |
43 |
>> :-) :-) |
44 |
>> |
45 |
|
46 |
|
47 |
D> OK. I thought of something else to try. I created a new grub entry. |
48 |
D> This is a plain entry with no init thingy at all. It looks like this: |
49 |
|
50 |
D> title Gentoo no init tmp drive |
51 |
D> kernel (hd0,0)/bzImage-3.3.1-1 root=/dev/sdb2 nox |
52 |
|
53 |
D> Simple but it still boots the sda drive instead of the sdb drive. What |
54 |
D> am I missing here? I looked in dmesg, the root=/dev/sdb2 line is in |
55 |
D> there so grub passes it on. |
56 |
|
57 |
D> This is weird. I need ideas folks. I'm running out of things to try. |
58 |
|
59 |
D> Dale |
60 |
|
61 |
D> :-) :-) |
62 |
|
63 |
|
64 |
|
65 |
|
66 |
-- |
67 |
Stefan Schmiedl |
68 |
EDV-Beratung Schmiedl, Berghangstr. 5, D-93413 Cham |
69 |
im Büro: 09971 9966 989, am Handy: 0160 9981 6278 |
70 |
|
71 |
"This is why Science and Mathematics are still much fun: |
72 |
You discover things that seem impossible to be true |
73 |
and then get to figure out why it's impossible for them not to be." |
74 |
|
75 |
-- Vi Hart: Spirals, Fibonacci, and Being a Plant, Part 3 |