[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: install grub2 to root partition



Hi Skippy,

You probably need to run
“sudo update-grub”
which will regenerate your config file & should provide the menu. Any persistent changes you want should therefore be made in /etc/default/grub first.

Afterwards, if your 'buntu system is grub2 you could usefully run update-grub from there too. If it is a grub1, then you probably have an entry for Debian in menu.lst something like

title     Debian (Direct)
root     (hd0,5)
kernel    /vmlinuz root=/dev/sda6
initrd    /initrd.img  


To boot via grub 2 needs another entry like

title     Debian (Grub2)
root     (hd0,5)
kernel    /boot/grub/core.img
boot

Note that partition numbering scheme changes in grub2, it starts from 1 instead of 0.


"grub-install /dev/sda6"
Will not work, there is only one MBR on a disk, not one per partition.

"grub-install /dev/sda"
will update the MBR to boot the system you ran the command from, but I don't suggest trying that until UR really sure that grub2 is working OK, and preferably you have some backup boot-able media in case it all goes pear shaped.


HTH


Reply to: