| Linux Forum Index » Linux Development - Applications » grub... |
|
Page 1 of 1 |
|
| Author |
Message |
| Bill Cunningham... |
Posted: Mon Aug 31, 2009 5:06 pm |
|
|
|
Guest
|
I want to install grub stage 1 and 2 files into my HD by using dd. I
know stage1 going into the MBR no problem. But there must be a jump to
stage2. Where should I install stage 2 ?
Bill |
|
|
| Back to top |
|
|
|
| Joe Pfeiffer... |
Posted: Mon Aug 31, 2009 9:04 pm |
|
|
|
Guest
|
"Bill Cunningham" <nospam at (no spam) nspam.invalid> writes:
Quote: I want to install grub stage 1 and 2 files into my HD by using dd. I
know stage1 going into the MBR no problem. But there must be a jump to
stage2. Where should I install stage 2 ?
Why? There are perfectly reasonable ways to install grub; why are you
working at making things difficult for yourself?
--
As we enjoy great advantages from the inventions of others, we should
be glad of an opportunity to serve others by any invention of ours;
and this we should do freely and generously. (Benjamin Franklin) |
|
|
| Back to top |
|
|
|
| Bill Cunningham... |
Posted: Wed Sep 02, 2009 6:58 pm |
|
|
|
Guest
|
"Jerry Peters" <jerry at (no spam) example.invalid> wrote in message
news:h7ml7u$bss$1 at (no spam) news.eternal-september.org...
Quote: There is one way that should work: with the standard 63 sectors /
track, grub installs the filesystem specific stage1.5 in the sectors
following the MBR on the first track. The stage1.5 understands the
filesystem, so it can find stage2 by name, not hardware address. So
saving the first 63 sectors should do what you want. The code in the
MBR will point to stage1.5, and stage1.5 will find stage2 by accessing
the filesystem.
I'd experiment with a USB stick first, before trying this on an
important disk.
I tried something and everything hung up on me. But I have a program
called grubinstall.exe and it uses stage1 and stage2 to boot linux. I don't
know what the internals of the .exe are but this doesn't use 1.5
Bill |
|
|
| Back to top |
|
|
|
| Robert Nichols... |
Posted: Sat Sep 05, 2009 4:41 am |
|
|
|
Guest
|
In article <1br5upunfh.fsf at (no spam) babs.wb.pfeifferfamily.net>,
Joe Pfeiffer <pfeiffer at (no spam) cs.nmsu.edu> wrote:
:
:Verify that I'm right on this, but I believe the standard grub install
:process does make a backup of the old MBR.
No, it (GNU GRUB 0.97) doesn't, at least nowhere that I can find.
You're probably remembering what LILO did. Really, more than just the
MBR would need to be saved. Both NTLDR and GRUB store boot code in the
free sectors following the MBR in the first track, so that data would
have to be saved and restored as well if you wanted to undo the GRUB
install.
--
Bob Nichols AT comcast.net I am "RNichols42" |
|
|
| Back to top |
|
|
|
| Joe Pfeiffer... |
Posted: Sat Sep 05, 2009 9:03 am |
|
|
|
Guest
|
Robert Nichols <SEE_SIGNATURE at (no spam) localhost.localdomain.invalid> writes:
Quote: In article <1br5upunfh.fsf at (no spam) babs.wb.pfeifferfamily.net>,
Joe Pfeiffer <pfeiffer at (no spam) cs.nmsu.edu> wrote:
:
:Verify that I'm right on this, but I believe the standard grub install
:process does make a backup of the old MBR.
No, it (GNU GRUB 0.97) doesn't, at least nowhere that I can find.
You're probably remembering what LILO did. Really, more than just the
MBR would need to be saved. Both NTLDR and GRUB store boot code in the
free sectors following the MBR in the first track, so that data would
have to be saved and restored as well if you wanted to undo the GRUB
install.
Looks like you're right, sorry.
--
As we enjoy great advantages from the inventions of others, we should
be glad of an opportunity to serve others by any invention of ours;
and this we should do freely and generously. (Benjamin Franklin) |
|
|
| Back to top |
|
|
|
|