I have installed latest kubuntu (10.04) on sda7, ext4 , and i selected the advanced feature of the installer to install kubuntu bootloader on sda7.
11.1 is on sda5 .
First , it destroyed my 11.1 grub bootloader on mbr .
I managed to restore it with the 11.1 installation DVD.
Now i try to boot kubuntu from the sda7 bootloader, without success .
I searched the forums and tried some hints i found but found no similar problems.
Here are the different entries i tried on grub (mbr) , content of the /boot/grub/menu.lst :
# Modified by YaST2. Last modification on ven. juin 11 15:41:32 CEST 2010
default 0
timeout 3
gfxmenu (hd0,4)/boot/message
##YaST - activate
###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX
root (hd0,4)
kernel /boot/vmlinuz root=/dev/disk/by-id/ata-OCZ-VERTEX_v1.10_2RFE124024W6E2A47M11-part5 repair=1 resume=/dev/disk/by-id/ata-OCZ-VERTEX_v1.10_2RFE124024W6E2A47M11-part1 splash=silent showopts vga=0x314
initrd /boot/initrd
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX
root (hd0,4)
kernel /boot/vmlinuz root=/dev/disk/by-id/ata-OCZ-VERTEX_v1.10_2RFE124024W6E2A47M11-part5 showopts ide=nodma apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x314
initrd /boot/initrd
title sda7
rootnoverify (hd0,6)
makeactive
chainloader +1
title kubuntu-initrd.img
root (hd0,6)
kernel /vmlinuz root=/dev/disk/by-id/ata-OCZ-VERTEX_v1.10_2RFE124024W6E2A47M11-part6 ro quiet splash
initrd /initrd.img
title kubuntu-initrd
root (hd0,6)
kernel /vmlinuz root=/dev/disk/by-id/ata-OCZ-VERTEX_v1.10_2RFE124024W6E2A47M11-part6 ro quiet splash
initrd /initrd
title kubuntu-boot
root (hd0,6)
kernel /boot/vmlinuz root=/dev/disk/by-id/ata-OCZ-VERTEX_v1.10_2RFE124024W6E2A47M11-part6 ro quiet splash
initrd /boot/initrd
title sda7-inactif
rootnoverify (hd0,6)
chainloader +1
title sda7-inactif-verify
rootnoverify (hd0,6)
chainloader +1
None of my clumsy tries succeeded.
Anyone able to help ???
Thanks.
According to the link you gave i added this entry :
title kubuntu
root (hd0,4)
kernel /boot/vmlinuz root=/dev/disk/by-id/ata-OCZ-VERTEX_v1.10_2RFE124024W6E2A47M11-part6 ro quiet splash
initrd /boot/initrd.img
But it did not work…
But I thought your Ubuntu was sda7 (hd0,6)?
You are right, i made a typo. I’ll try with the corrected grub and will report…
Well…
It didn’t work.
Actually, for this entry :
title kubuntu
root (hd0,6)
kernel /vmlinuz root=/dev/disk/by-id/ata-OCZ-VERTEX_v1.10_2RFE124024W6E2A47M11-part6 ro quiet splash
initrd /initrd.img
i get something but it gets stuck at some point. It says something like :
“no init found. Try passing init = args.”
Strange, isn’t it ?
Isn’t the GRUB in 11.1 incapable of handling ext4 filesystems? You may have to chainload to an Ubuntu GRUB in the PBR.
You are correct @ken_yap
Actually, I would just drop SUSE’s grub and install grub2 and let Ub* do the booting.
To do this with the Ubuntu CD
* Open a terminal and type
sudo fdisk -l
* Now, you need to remember which device listed is your linux distribution, for reference, /dev/sda1 will be used. Now we need to mount the filesystem to /mnt
sudo mount /dev/sda1 /mnt
* Now mount the rest of your devices
sudo mount --bind /dev /mnt/dev
* Now chroot into your system
sudo chroot /mnt
*
When that is done you need to run update-grub to create the configuration file.
update-grub
*
To install GRUB 2 to the MBR, next you need to run grub-install /dev/sda
grub-install /dev/sda
And your done
Yes , that’s the first thing i tried.
This part :
title sda7
rootnoverify (hd0,6)
makeactive
chainloader +1
is supposed to chainload the kubuntu grub on sda7 . But i don’t know why it doesn’t work . Do you have a clue ?
Ugly hack : shall i change the value “+1” after “chainloader”, to something different like “+0” or “+2” ???
It may be different for GRUB2, those chainloader instructions are for GRUB1 and may not be valid any more. You might want to do a search for documentation on chainloading to GRUB2. Better than randomly trying various integers.
Your advice sounds good. I won’t have time to try it till some days. I’ll come back here then.
My sandboxing laptop has differing multiple Linux OS’s on it all the time, along with a windows partition just so I can test grub booting. I change grub like I change my boxers.
I used Ubuntu and Mint recently and in both cases I used their grub2 even though openSUSE was also installed.
I reiterate my advice to use grub2.
caf4926 > thank you for your advice, but i prefer to stick with 11.1 grub and its stability.
Eureka, i found !!!
This it the entry that managed to boot kubuntu’s kernel from suse 11.1’s grub legacy :
title kubuntu-kubUUID
root (hd0,6)
kernel /vmlinuz root=UUID=815a9986-bca1-48da-91e9-5c85a4f512e1 ro quiet splash
initrd /initrd.img
The solution i found was to name the root with the uuid i found in the /dev/disk/by-uuid/ directory.
Nice afternoon.
Thanks for your help.