Please support VectorLinux!

Poll

How to Dual boot with Grub 2 as in Debian?

yes
0 (0%)
no
0 (0%)

Total Members Voted: 0

Voting closed: December 01, 2011, 11:22:17 pm

Author Topic: [Solved] Dual booting with Grub 2 as in Debian  (Read 1955 times)

Chdslv

  • Member
  • *
  • Posts: 6
[Solved] Dual booting with Grub 2 as in Debian
« on: November 30, 2011, 11:22:17 pm »
This is about Vector 7.0. as it has Lilo, I declined the offer of the boot loader. I have Crunchbang and I'd like to dual boot with it. When I use update-grub, I get
}
menuentry "linux (on /dev/sda8)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos8)'
        search --no-floppy --fs-uuid --set e3f491a0-9d21-4357-807e-ea5b07972215
        linux /boot/vmlinuz root=/dev/sda2 ro vga = normal append = "
}
menuentry "linux-tui (on /dev/sda8)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos8)'
        search --no-floppy --fs-uuid --set e3f491a0-9d21-4357-807e-ea5b07972215
        linux /boot/vmlinuz root=/dev/sda2 ro append = "2

The Vector Linux name is not there. Only linux (on /dev/sda8) is shown, and when I click on that, I get kernel panic. When I check it both the above sections are there under linux (on /dev/sda8)

So, I used /etc/grub.d/40_custom to add extra line for Vector Linux as below, but still I get kernel panic. There are only two files in the /boot, i.e., initrd and vmlinuz

}
menuentry "Vector Linux (on /dev/sda8)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos8)'
        search --no-floppy --fs-uuid --set e3f491a0-9d21-4357-807e-ea5b07972215 ro quiet splash vt.handoff=7
        linux /boot/vmlinuz root=UUID=e3f491a0-9d21-4357-807e-ea5b07972215
        initrd /boot/initrd
}

The above is the same for any other Linux distro to be entered into grub 2.

This doesn't work, says kernel panic. Is there another way?

Thanks!

« Last Edit: December 01, 2011, 06:43:57 am by Chdslv »

Chdslv

  • Member
  • *
  • Posts: 6
[Solved] Dual booting with Grub 2 as in Debian
« Reply #1 on: December 01, 2011, 06:42:20 am »
I got it to work. The live CD didn't install the way it should, meaning another distro could see it in Grub. So, I downloaded the install CD, which installed Vector 7.0 quite well, but grub got distorted. The Crunchbang Linux was shown as below in grub.cfg

}
menuentry "Debian GNU/Linux (wheezy/sid) (on /dev/sda10)" --class gnu-linux --class gnu --class os {
   insmod part_msdos
   insmod ext2
   set root='(hd0,msdos10)'
   search --no-floppy --fs-uuid --set=root 7ac6d462-c874-4cde-855e-a45fd33b3199
   linux16 /boot/vmlinuz-2.6.39-bpo.2-amd64 root=/dev/sda10 splash=silent vga=791
   initrd16 /boot/initrd
}

and also in any other distro.

It made menuentries with linux16 and initrd16. This was always initrd16 /boot/initrd in any other distros too. I tried to update-grub in terminal, but it didn't work. So, I changed the linux16 to linux and initrd16 to initrd and added to look like this; initrd16 /boot/initrd.img-2.6.39-bpo.2-amd64 and got Crunchbang to boot. After that made Crunchbang as first boot option by using setup-grub /dev/sda and update-grub as root. Crunchbang's grub did the trick.

What I noticed is the installation CD doesn't really see the other distros and corrupt the grub menu list in this case the file /boot/grub/grub.cfg, and this is a problem to be solved. I am not exactly a newbie, so I got through, but what about others, who want to try Vector 7.0, but not resigning from using other distros?

Have a nice day!






hata_ph

  • Packager
  • Vectorian
  • ****
  • Posts: 3261
  • -- Just being myself --
Re: [Solved] Dual booting with Grub 2 as in Debian
« Reply #2 on: December 01, 2011, 10:44:41 am »
chdslv,

thanks for your tutorial on grub2 on VL7...VL dev will take note of your finding and will try to make the correction in the next release of VL. :)

Chdslv

  • Member
  • *
  • Posts: 6
Re: [Solved] Dual booting with Grub 2 as in Debian
« Reply #3 on: December 01, 2011, 09:24:37 pm »
I am glad I could be of some help. When I found out that Vector is from Vancouver, Canada, I really wanted to have it. I've been there and in B.C. for some time and I can say it is one of the most beautiful regions I have ever seen. I have lived in many countries, but it was in B.C. I felt really free. The feeling of freedom in B.C. is unbelievable. Wherever you live, wish you all the best!