install grub 2 to a disk image
install grub 2 to a disk image
Hi All, do you have any tutorial to install grub 2 (not legacy grub) to a disk image?
thanks
from Peter
thanks
from Peter
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: install grub 2 to a disk image
Google has one.
Re: install grub 2 to a disk image
Hi,
As far as I can tell, if you're not using Linux you're screwed, and if you are using Linux you're still screwed most of the time. The best option might be to use a Linux "Live" CD inside an emulator where the disk image looks like a real disk (and not a loopback device).
The thought of porting GRUB 2's installer to my "not a *nix clone" OS one day is enough to convince me that refusing to use GRUB 2 is the only sane approach in the long run.
Cheers,
Brendan
I honestly don't know (and google searches did not help me).mcheung63 wrote:Hi All, do you have any tutorial to install grub 2 (not legacy grub) to a disk image?
As far as I can tell, if you're not using Linux you're screwed, and if you are using Linux you're still screwed most of the time. The best option might be to use a Linux "Live" CD inside an emulator where the disk image looks like a real disk (and not a loopback device).
The thought of porting GRUB 2's installer to my "not a *nix clone" OS one day is enough to convince me that refusing to use GRUB 2 is the only sane approach in the long run.
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Re: install grub 2 to a disk image
It's easy to write a simple GRUB installer. But yeah you are right! Whether it is necessary?
If you have seen bad English in my words, tell me what's wrong, please.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: install grub 2 to a disk image
Fourth hit on the first try. Complete with commands and background information and reasons not to do it.and google searches did not help me
- Kazinsal
- Member
- Posts: 559
- Joined: Wed Jul 13, 2011 7:38 pm
- Libera.chat IRC: Kazinsal
- Location: Vancouver
- Contact:
Re: install grub 2 to a disk image
Use GRUB Legacy. From my experiments, I'm surprised that the FSF actually thinks GRUB2 is a brilliantly amazing bootloader and is the true successor to the good-enough GRUB Legacy. The automated grub.cfg generator creates absolutely massive config files, whereas a legacy menu.lst could boot Ubuntu with five or six lines (instead of a whopping 161!)
And then there's its hatred of installing to things that aren't physical hardware formatted in the way it wants, not the way you want. I'm considering writing an incredibly-cliche-titled short paper: "GRUB2 Considered Harmful".
And for the record, I still haven't found a pre-installed GRUB2 floppy image. Yet I know exactly where I could get GRUB Legacy images with a number of different filesystems...
And then there's its hatred of installing to things that aren't physical hardware formatted in the way it wants, not the way you want. I'm considering writing an incredibly-cliche-titled short paper: "GRUB2 Considered Harmful".
And for the record, I still haven't found a pre-installed GRUB2 floppy image. Yet I know exactly where I could get GRUB Legacy images with a number of different filesystems...
Re: install grub 2 to a disk image
Search for "GrubOnFloppy-198" on this forum. I prefer Legacy GRUB too because it's compact and because I have no GRUB 2 packed into one file (or two files) that need for installation of GRUB 2 as my second stage boot loader by my setup tool (I can use modified GRUB as one of my second stage boot loaders).
If you have seen bad English in my words, tell me what's wrong, please.
Re: install grub 2 to a disk image
I can use grub legacy too, but just not grub 2
Re: install grub 2 to a disk image
we have no way to specify a device for grub2-mkdevicemap command, so grub2 probably can't install to a disk image.
Re: install grub 2 to a disk image
It will can be installed if I will find a tool to copy files into floppy image. I have fat_imgen for Windows now but it has no support for nested folders to put /boot/grub/*.* files into image.
If you have seen bad English in my words, tell me what's wrong, please.
Re: install grub 2 to a disk image
I once managed to install a GRUB 2 from a tyndur VM and still keep the system booting. I don't remember the exact steps; it was a bit ugly in comparison to GRUB 1, but not impossible to figure out. Basically I built an image with grub-mkimage first and then used grub-bios-setup to actually install it to the image. I remember that one of the issues I had was convincing GRUB to take the right search path for its modules.Brendan wrote:As far as I can tell, if you're not using Linux you're screwed, and if you are using Linux you're still screwed most of the time.
More on topic, this is the shell script we use on Linux to create tyndur hard disk images with GRUB 2.