[SOLVED] Install grub from debian install/rescue cd with a minimum of commands/steps?
by Jason_25 from LinuxQuestions.org on (#5AQG8)
I am having a strange time installing grub on a system. It should be as easy as choosing the device to install grub to or running grub-install nameofdevice.
The first real problem I have is that grub-install is not a valid command on an install/rescue cd.
The next problem is that any graphical attempt to install grub results in a fatal error.
Another problem is that it is not clear exactly what device to install grub to. It usually is the main device, in this case /dev/mmcblk0 but as I mentioned that gives a fatal error. Perhaps it should be the / device or the EFI device?
The final problem is that upon googling I see these multi-line solutions that involve manually mounting /proc filesystems and using chroots.
Those kind of methods are a no-go for me and I am looking for something simpler, easier to remember and integrate into my train of thought. It also bothers me that any recovery cd is essentially broken when it requires that many steps. For some reason it is also bothering me that so many tutorials have you entering the "for" bashism. I don't even use this in my scripting because it is too complicated to think about so it is kind of infuriating to have to type into the command line. Why is it a 15-step process when the install can take care of it automatically?
The exact configuration of the system in question is irrelevant as I am more interested in figuring out why the process itself is so broken and not the computer itself. After all I could have completely reinstalled and reconfigured 15 times over by now.
This is more of a problem I hope to come to an actual solution to, rather than a rant, so I will try to keep it up to date with what I end up doing.


The first real problem I have is that grub-install is not a valid command on an install/rescue cd.
The next problem is that any graphical attempt to install grub results in a fatal error.
Another problem is that it is not clear exactly what device to install grub to. It usually is the main device, in this case /dev/mmcblk0 but as I mentioned that gives a fatal error. Perhaps it should be the / device or the EFI device?
The final problem is that upon googling I see these multi-line solutions that involve manually mounting /proc filesystems and using chroots.
Those kind of methods are a no-go for me and I am looking for something simpler, easier to remember and integrate into my train of thought. It also bothers me that any recovery cd is essentially broken when it requires that many steps. For some reason it is also bothering me that so many tutorials have you entering the "for" bashism. I don't even use this in my scripting because it is too complicated to think about so it is kind of infuriating to have to type into the command line. Why is it a 15-step process when the install can take care of it automatically?
The exact configuration of the system in question is irrelevant as I am more interested in figuring out why the process itself is so broken and not the computer itself. After all I could have completely reinstalled and reconfigured 15 times over by now.
This is more of a problem I hope to come to an actual solution to, rather than a rant, so I will try to keep it up to date with what I end up doing.