VectorLinux
April 19, 2014, 07:12:54 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Poll
Question: How to Dual boot with Grub 2 as in Debian?  (Voting closed: December 01, 2011, 11:22:17 pm)
yes - 0 (0%)
no - 0 (0%)
Total Voters: 0

Pages: [1]
  Print  
Author Topic: [Solved] Dual booting with Grub 2 as in Debian  (Read 1495 times)
Chdslv
Member
*
Posts: 6


« 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 » Logged
Chdslv
Member
*
Posts: 6


« 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!





Logged
hata_ph
Packager
Vectorian
****
Posts: 3206


-- Just being myself --


« 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. Smiley
Logged
Chdslv
Member
*
Posts: 6


« 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!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!