Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] is grub in my mbr?
Date: Wed, 21 May 2008 15:33:27
Message-Id: 200805211732.33606.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] is grub in my mbr? by Mark Knecht
1 On Wednesday 21 May 2008, Mark Knecht wrote:
2
3 > I think this answer would be good to have on a Gentoo grub Wiki
4 > somewhere. (If it isn't already.) There have been times I've wondered
5 > the same thing and didn't know how to extract the data out fo the MBR
6 > the way you did. It would also be good to add a second example of how
7 > to get it out of a partition instead of the MBR in case grub is
8 > installed there.
9
10 I skipped over most of this thread, I now wished I hadn't :-) Not having
11 the previous posts handy, this might already have been answered, but
12 I'll go ahead anyway. The way I normally do the extraction is very
13 simple:
14
15 from mbr:
16 dd if=/dev/sda of=/dev/pts/0 bs=512 count=1
17
18 from disk partition:
19 dd if=/dev/sda1 of=/dev/pts/0 bs=512 count=1
20
21 Change the of= appropriately, of course
22
23
24 --
25 Alan McKinnon
26 alan dot mckinnon at gmail dot com
27
28 --
29 gentoo-user@l.g.o mailing list