Jump to content

what is the kernel that I should use in grub?


Guest rickycodie
 Share

Recommended Posts

Guest rickycodie

hi all i use ubuntu and wanted to try other flavors, and i read a good revew of mandriva so here i am!

 

my problem is that i want to boot mandriva from my ubuntu's grub setup. i can edit /boot/grub/menu.lst and have added the following to it:

 

title Mandriva

root (hda0,5)

chainloader+1

 

when in the grub i select mandriva, and nothing happens!

 

what can i do?

Link to comment
Share on other sites

here's my grub.conf

 

title Mandriva
kernel (hd0,4)/vmlinuz BOOT_IMAGE=linux root=/dev/sda7
initrd (hd0,4)/initrd.img

 

hd0,4 - is my /boot and /dev/sda7 is my / partition.

make sure that you specify the kernel image.

 

And I think you don't need the chainloader part, its for windows boot if not mistaken

Link to comment
Share on other sites

Guest rickycodie

nope now i get error 17 cannot mount drive. this is the result of sudo fdisk -l

 

Disk /dev/sda: 80.0 GB, 80026361856 bytes

255 heads, 63 sectors/track, 9729 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot Start End Blocks Id System

/dev/sda1 * 1 7077 56845971 83 Linux

/dev/sda2 7078 9729 21302190 5 Extended

/dev/sda5 7078 8096 8185086 83 Linux

/dev/sda6 9554 9729 1413688+ 82 Linux swap / Solaris

/dev/sda7 8097 8456 2891668+ 82 Linux swap / Solaris

/dev/sda8 8457 9553 8811621 83 Linux

 

 

it looks like there is a swap or two in the middle of the two ext3 partitions. is it supposed to be this way? looks odd to me.

Link to comment
Share on other sites

Two swap partitions aren't needed- one used by both OS'es is enough. You can get rid of one of them, but this needs a bit of work.

Assuming that /dev/sda1 is your *buntu root partition and /dev/sda5 Ubuntu's /home, then your Mandriva is on /dev/sda8 and the grub entry should be

 

title Mandriva

kernel (hd0,7)/vmlinuz BOOT_IMAGE=linux root=/dev/sda7

initrd (hd0,7)/initrd.img

 

No chainloader stuff needed here.

 

A common practice for multibooting different Linux distributions is one separate+common /boot partition at the harddisk start, used by all of them, and just ONE grub installation in one of the distros- no bootloader installed in the others.

Link to comment
Share on other sites

swap location does not matter on wether you can boot or not on mandriva, though you only need one.

 

You should be able to identify the partitions of your mandriva, where the / or boot been located, or did you just use a single partition for your mandriva during install? if yes, where it is located below?

 

Device Boot Start End Blocks Id System
/dev/sda1 * 1 7077 56845971 83 Linux
/dev/sda2 7078 9729 21302190 5 Extended
/dev/sda5 7078 8096 8185086 83 Linux
/dev/sda6 9554 9729 1413688+ 82 Linux swap / Solaris
/dev/sda7 8097 8456 2891668+ 82 Linux swap / Solaris
/dev/sda8 8457 9553 8811621 83 Linux

 

btw,

 

are you finished installing mandriva?

Link to comment
Share on other sites

Guest rickycodie

partitions 5 and 8 are mandriva. how do i use one swap partition for both? and yes mandriva is intsallled but it has never been booted. how do i fix my error 17?

Link to comment
Share on other sites

Guest rickycodie

ok i figured out the error 17 but now i get a error 23! seriously this is a pain. what am i doing wrong? i really want to try mandriva. should i wipe my drive and then install mandriva and then ubuntu?

Link to comment
Share on other sites

Umm... the easiest way would be (imho):

1. Boot into Ubuntu

2. Mount the Mandriva / partiton ( or /boot if you have that one).

3. open Mandrivas /boot/grub/menu.lst file and copy the Mandriva-specific boot entry.

4. open with sudo an editor in Ubuntu, open Ubuntus /boot/grub/menu.lst file and copy the Mandriva entry into it. Save and exit.

5. reboot

 

The Mandriva boot entry should now work.

Link to comment
Share on other sites

Regarding the swap partitions. You don't have to be concerned about them.

 

Linux automatically detects swap partitions and integrates them (i.e. links them) into the OS. If it detects 1, 2, 3 or more then it links to them and uses them as it wishes.

Considering how little hardware space a swap partition uses on a modern hard drive it is hardly worth worrying about how to remove the excess of one.

It is far easier to make that decision to not create extra swap partitions when doing additional OS installs in the first place.

In other words stop worrying about the extra swap partitions, it is not worth the energy .

 

Cheers. John.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...