Code: Select all
1.# slapt-get --remove lilo
2.# slapt-get -i grub
3.# grub-install /dev/sda -(will install Grub to the MBR)
4.# update-grub
5.# reboot
Code: Select all
#update-grub
#reboot
Code: Select all
1.# slapt-get --remove lilo
2.# slapt-get -i grub
3.# grub-install /dev/sda -(will install Grub to the MBR)
4.# update-grub
5.# reboot
Code: Select all
#update-grub
#reboot
Code: Select all
bobo[~]$ sudo slapt-get --remove lilo
Reading Package Lists...Done
The following packages will be REMOVED:
lilo
0 upgraded, 0 reinstalled, 0 newly installed, 1 to remove, 0 not upgraded.
After unpacking 1.5MB disk space will be freed.
Do you want to continue? [y/N] y
Removing package lilo-24.0-x86_64-1gv...
Done
bobo[~]$ spii grub
Reading Package Lists...Done
The following NEW packages will be installed:
grub
0 upgraded, 0 reinstalled, 1 newly installed, 0 to remove, 0 not upgraded.
Need to get 9.8MB of archives.
After unpacking 39.3MB of additional disk space will be used.
1/1 Get http://salix.hostingxtreme.com/x86_64/14.1/ grub 2.00-x86_64-6cp [9.8MB]...Done
Preparing to install grub-2.00-x86_64-6cp
Installing package grub-2.00-x86_64-6cp...
| grub (the second GNU GRand Unified Bootloader)
|
| GRUB 2 has been rewritten from scratch to clean up everything for
| modularity and portability.
| Features are: Scripting support, Graphical interface, Rescue mode,
| cross-platform and many more
| Briefly, boot loader is the first software program that runs when a
| computer starts. It is responsible for loading and transferring
| control to the operating system kernel software (such as the Hurd or
| the Linux). The kernel initializes the rest of the operating system.
| * gettextvar, eval, getdate commands added.
|
|
Done
bobo[~]$ sudo grub-install /dev/sda
Installation finished. No error reported.
bobo[~]$ sudo update-grub
Generating grub.cfg ...
Found background: /boot/grub/salix.png
Found linux image: /boot/vmlinuz-huge-3.10.17
No volume groups found
Found Slackware Linux (Slackware 14.1) on /dev/sda2
done
bobo[~]$ sudo reboot
It's not all that fine, most recent LTS removed the option 'not to install grub' so it breaks MBR every time.knome wrote:It's just i noticed that a fresh install of, for example, Xubuntu would set up grub all fine and dandy but whenever doing update-grub in Salix or Xubuntu it would only write a grub.cfg.new which had to be manually amended to grub.cfg.
FWIW, similar thing for 'update-grub' in GRUB2 of a fresh install of Debian testing/"stretch" (https://www.debian.org/releases/stretch/) over Salix.It's just i noticed that a fresh install of, for example, Xubuntu would set up grub all fine and dandy but whenever doing update-grub in Salix or Xubuntu it would only write a grub.cfg.new which had to be manually amended to grub.cfg.