Gentoo Archives: gentoo-user

From: Allan Gottlieb <gottlieb@×××.edu>
To: gentoo-user@l.g.o
Subject: [gentoo-user] is grub in my mbr?
Date: Wed, 21 May 2008 01:11:10
Message-Id: yu9r6bwv4ux.fsf@nyu.edu
1 I believe that when I upgrade grub I am supposed to re-run it.
2
3 I would like to keep the same configuration I have know but am not
4 sure if I installed grub in the MBR (I dual boot windows since it is
5 often needed when calling Dell Support).
6
7 I believe that I do have grub in the mbr, but wish to confirm it so
8 executed an od to confirm.
9
10 Here is my disk layout (a one disk laptop)
11
12 ajglap ~ # fdisk -l
13
14 Disk /dev/sda: 100.0 GB, 100030242816 bytes
15 255 heads, 63 sectors/track, 12161 cylinders
16 Units = cylinders of 16065 * 512 = 8225280 bytes
17 Disk identifier: 0x08000000
18
19 Device Boot Start End Blocks Id System
20 /dev/sda1 1 6 48163+ de Dell Utility
21 /dev/sda2 * 7 1963 15716352 7 HPFS/NTFS
22 /dev/sda3 1963 1975 98683+ 83 Linux
23 /dev/sda4 1976 12161 81819045 5 Extended
24 /dev/sda5 1976 2098 987966 82 Linux swap / Solaris
25 /dev/sda6 2099 4531 19543041 83 Linux
26 /dev/sda7 4532 5991 11727418+ 83 Linux
27 /dev/sda8 5992 8424 19543041 83 Linux
28 /dev/sda9 8425 10857 19543041 83 Linux
29 ajglap ~ #
30
31 Here is an od of the mbr
32
33 ajglap ~ # dd if=/dev/sda ibs=512 count=1 | od -c --address-radix=d
34 1+0 records in
35 1+0 records out
36 0000000 353 H 220 320 274 \0 | 216 300 216 330 276 \0 | 277 \0
37 0000016 006 271 \0 002 374 363 244 P h 034 006 313 373 271 004 \0
38 0000032 275 276 \a 200 ~ \0 \0 | \v 017 205 020 001 203 305 020
39 0000048 342 361 315 030 210 V \0 U 306 F 021 005 306 F 003 002
40 512 bytes (512 B) copied, 1.8159e-05 s, 28.2 MB/s
41 0000064 377 \0 \0 001 \0 \0 \0 \0 002 372 220 220 366 302 200
42 0000080 u 002 262 200 352 Y | \0 \0 1 300 216 330 216 320 274
43 0000096 \0 373 240 @ | < 377 t 002 210 302 R 276 177 }
44 0000112 350 4 001 366 302 200 t T 264 A 273 252 U 315 023 Z
45 0000128 R r I 201 373 U 252 u C 240 A | 204 300 u 005
46 0000144 203 341 001 t 7 f 213 L 020 276 005 | 306 D 377 001
47 0000160 f 213 036 D | 307 004 020 \0 307 D 002 001 \0 f 211
48 0000176 \ \b 307 D 006 \0 p f 1 300 211 D 004 f 211 D
49 0000192 \f 264 B 315 023 r 005 273 \0 p 353 } 264 \b 315 023
50 0000208 s \n 366 302 200 017 204 352 \0 351 215 \0 276 005 | 306
51 0000224 D 377 \0 f 1 300 210 360 @ f 211 D 004 1 322 210
52 0000240 312 301 342 002 210 350 210 364 @ 211 D \b 1 300 210 320
53 0000256 300 350 002 f 211 004 f 241 D | f 1 322 f 367 4
54 0000272 210 T \n f 1 322 f 367 t 004 210 T \v 211 D \f
55 0000288 ; D \b } < 212 T \r 300 342 006 212 L \n 376 301
56 0000304 \b 321 212 l \f Z 212 t \v 273 \0 p 216 303 1 333
57 0000320 270 001 002 315 023 r * 214 303 216 006 H | ` 036 271
58 0000336 \0 001 216 333 1 366 1 377 374 363 245 037 a 377 & B
59 0000352 | 276 205 } 350 @ \0 353 016 276 212 } 350 8 \0 353
60 0000368 006 276 224 } 350 0 \0 276 231 } 350 * \0 353 376 G
61 0000384 R U B \0 G e o m \0 H a r d D
62 0000400 i s k \0 R e a d \0 E r r o r \0
63 0000416 273 001 \0 264 016 315 020 254 < \0 u 364 303 \0 \0 \0
64 0000432 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \b \0 \0 \0 001
65 0000448 001 \0 336 376 ? 005 ? \0 \0 \0 G x 001 \0 200 036
66 0000464 031 006 \a 376 377 377 \0 200 001 \0 \0 240 337 001 \0 376
67 0000480 377 377 203 376 377 377 \0 341 001 367 002 003 \0 \0 376
68 0000496 377 377 005 376 377 377 367 " 344 001 J 353 300 \t U 252
69 0000512
70
71 Am I right that seeing `GRUB' in bytes 383-386 (decimal) is proof that
72 I did install grub in the MBR?
73
74 thanks,
75 allan
76
77 --
78 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] is grub in my mbr? Dirk Heinrichs <dirk.heinrichs.ext@×××.com>