2010/3/10 Andrei Popescu <andreimpopescu@gmail.com
<mailto:andreimpopescu@gmail.com>>
On Wed,10.Mar.10, 00:27:19, Umarzuki Mochlis wrote:
> So now i had installed grub2 and it does not automatically
detects a distro
> i had installed (before installing debian) on /dev/sda3
>
> I saw this message on /boot/grub/grub.cfg
> # DO NOT EDIT THIS FILE
> #
> # It is automatically generated by /usr/sbin/grub-mkconfig using
templates
> # from /etc/grub.d and settings from /etc/default/grub
>
> and do i proceed from here?
Install os-prober and re-run update-grub.
Thanks, the following is the steps taken (which is successful, of course)
1. mount /dev/sda3 (the ext4 os partition) "tune2fs -E test_fs
/dev/sda3;Â mount -t ext4dev /dev/sda3 /mnt/"
2. copy its menu entry entry in /mnt/boot/grub/grub.cfg
to /etc/grub.d/40_custom
3. run update-grub (it should say that it detects the other os's kernel)
4. new entries for that os will be appended in /boot/grub/grub.cfg