1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] Questions on dualbooting/grub/bootloader-utils
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Questions%20on%20dualbooting/grub/bootloader-utils&In-Reply-To=%3C50F93AA8.50701%40ono.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="021781.html">
<LINK REL="Next" HREF="021802.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] Questions on dualbooting/grub/bootloader-utils</H1>
<B>JA Magallón</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Questions%20on%20dualbooting/grub/bootloader-utils&In-Reply-To=%3C50F93AA8.50701%40ono.com%3E"
TITLE="[Mageia-dev] Questions on dualbooting/grub/bootloader-utils">jamagallon at ono.com
</A><BR>
<I>Fri Jan 18 13:06:00 CET 2013</I>
<P><UL>
<LI>Previous message: <A HREF="021781.html">[Mageia-dev] Freeze push: maven-changes-plugin
</A></li>
<LI>Next message: <A HREF="021802.html">[Mageia-dev] Questions on dualbooting/grub/bootloader-utils
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#21782">[ date ]</a>
<a href="thread.html#21782">[ thread ]</a>
<a href="subject.html#21782">[ subject ]</a>
<a href="author.html#21782">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Hi...
I have a curious problem...
I have a box with tow drives, the first one has Windows7 and the second
Mageia Cauldron.
I tweaked the W7 bootloader to add an entry for the second drive with EasyBCD
(it gets wrong the hd1,1 part for its grub entry, it shoud be hd1,0, but that
is another story...).
I can boot Mageia from W7 bootloader, so my linux disk is sdb, and win
is sda. Root is right as it should be, /dev/sdb1:
direwolf:~# lsscsi
[0:0:0:0] cd/dvd HL-DT-ST DVD-RAM GH22NP20 2.00 /dev/sr0
[2:0:0:0] disk ATA ST3400833AS 3.AA /dev/sda
[3:0:0:0] disk ATA ST3250310AS 3.AA /dev/sdb
direwolf:~# df
Filesystem Type Size Used Avail Use% Mounted on
rootfs rootfs 244G 6.1G 226G 3% /
devtmpfs devtmpfs 1.6G 0 1.6G 0% /dev
tmpfs tmpfs 1.6G 87k 1.6G 1% /dev/shm
tmpfs tmpfs 1.6G 877k 1.6G 1% /run
/dev/sdb1 ext4 244G 6.1G 226G 3% /
tmpfs tmpfs 1.6G 0 1.6G 0% /sys/fs/cgroup
tmpfs tmpfs 1.6G 13k 1.6G 1% /tmp
/dev/sda2 fuseblk 400G 134G 267G 34% /media/win
I rewrote GRUBs device.map like:
(hd0) /dev/sda
(hd1) /dev/sdb
and menu.lst to use (hd1,0) as root.
But every time I install/update a kernel, GRUBs files get rewritten to invert
the disk mapping, so (hd0) is sdb, and menu.lst changed to boot from (hd0,0),
and install.sh to write grub on hd0.
But that settings do no work on boot, after EasyBCD chainloads to second drive,
it is still the _second_ drive...and grub runs to hd0 to look for kernel/initrd...
AFAIK, the map hd0->sdb is only usefull for grub installation, once the boot
sector is stored it is just something like 'ask bios which is the first drive',
so it fails.
Why do bootloader-utils (I think?) change device.map, menu.lst settings ?
Why forces the boot disk to be always hd0 ?
Is there anyway to tell them I dont want to change anything ?
TIA
PD: is there an easier way to tell 'boot from the second drive' in the
Win7 boot menu than using EasyBCD (I think it is doing some things not so well,
like numbering first partition in second drive as hd1,1 instead of hd1,0...).
--
J.A. Magallon <jamagallon()ono!com> \ Winter is coming...
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="021781.html">[Mageia-dev] Freeze push: maven-changes-plugin
</A></li>
<LI>Next message: <A HREF="021802.html">[Mageia-dev] Questions on dualbooting/grub/bootloader-utils
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#21782">[ date ]</a>
<a href="thread.html#21782">[ thread ]</a>
<a href="subject.html#21782">[ subject ]</a>
<a href="author.html#21782">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|