kubuntu & mandy

Discussion in 'Linux, BSD and Other OS's' started by donkey42, Aug 31, 2006.

  1. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    right, got kubuntu running fine, want to run mandy alongside,

    my config
    • hda1, kubuntu /, 8Gb
    • hda2 /home 12Gb
    • hda3, mandy /, 8Gb
    both kubuntu and mandy will share /home & swap (configured while installing kubuntu, and used esisting /home & swap during mandy install)

    i installed mandy (including bootloader, MBR) but kubuntu (grub) booted, now how do i access mandy ?

    tried looking on net, for edit kubuntu bootloader, or is there a better bootloader or another way to achive a dual boot
     
  2. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    First find the name of your kernel, initrd image on the /boot directory of your mandriva installation. It will probably be something like linux-2.6.12-16mdk and initrd.img-2.6.12-16mdk etc etc. Just find the files that match in the versions and note their exact names down.

    If you're using the GRUB bootloader, you need to edit your /boot/grub/menu.lst file on your Kubuntu partition. Open it as root, and search for the bit of the file where the actual menu entries are (lines not beginning with #).

    Then add something like
    Code:
    title       Mandriva 2006
    root       (hd0,2) (its hd0,2 because grub starts with 0, so hda1 is hd0,0, and hda2 is hd0,1 etc etc)
    kernel      /boot/kernel-name-here
    initrd      /boot/initrd-name-here
    That should do the trick, save and reboot.
     
  3. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    Just a warning, you will likely have problems with Mandy and Kubuntu sharing the same /home, since there will be different versions of some of the same programs on each distro, and those user-specific settings are kept in your /home.
     
  4. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    hi guys, just wondering, is there a way of mount mandriva's /, in kubuntu ? (in order to discover the name of the kernel & initrd image of the mandriva install) tried editing /boot/grub/menu.lst (as you'll see on attachments, but cant find kernel & initrd of mandy)
     
  5. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    Yes you can mount Mandy's root partition in Kubuntu, but I don't really see much point.

    Basically you would have to create an empty folder somewhere in Kubuntu, then mount the Mandriva root partition into that. So you might choose something like /mandriva or /home/donkey/mandriva etc

    BTW, I've found Kubuntu's disk management to be awful! The KDE mounter is pretty poor so I ended up editing the FSTAB manually. Oh and Kubuntu has no partitioning tools whatsoever. They really need to sort this out.

    If you want a partitioner in Kubuntu you can do:

    sudo apt-get install gparted
     
  6. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    Its very easy to do, as root make a new directory like /mnt/mandy
    then do this:
    Code:
    mount /dev/hda3 /mnt/mandy
    cd /mnt/mandy/boot/
    ls -l
    You should see a symlink called vmlinuz which will point to the default mandriva kernel. ls -l will give you detailed file listings, and from there you can find which file vmlinuz points to.
     
  7. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    sorry to act thick, but i'm doing my British Rail impresion, i'm getting there (that did used to be BR's motto)
    but just to be sure, check attachments, i just need to add highlighted text to fstab (and do some other crap)

    correct ?
     
  8. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    Yes, but not fstab, the /boot/grub/menu.lst file.

    You'll need to scroll down a bit, until you see the menu entries and add a new one.
     
  9. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    i don't know what i'm doing wrong,

    /boot/grub/menu.lst contains:
    Code:
    title		Mandy 2006
    root		(hd0,4)
    kernel		/boot/vmlinux-2.6.8.1-12mdksmp
    initrd		/boot/initrd-2.6.8.1-12mdksmp.img
    savedefault
    boot
    HDD partitions:
    • /dev/hda1 ext3 (says ext2fs when trying to boot) 8Gb /
    • /dev/hda3 ext2 11Gb /home
    • /dev/hda5 ext2 8Gb /mnt/mandy
    • /dev/hda7 FAT16 2Gb /mnt/hda7 (win)
    • /dev/hda8 FAT32 20Gb /mnt/spr
    • /dev/hda9 FAT32 25Gb /mnt/hda9 (free space)

    don't know what else to do ? tried loads of menu.lst's

    any bright ideas ?
     
  10. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    Looks like you've got a typo, vmlinux should be vmlinuz. Otherwise the bootloader won't find your kernel.
     
  11. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    thanks, i feel like a proper pan-head now, thanks anyway :beer:
     
  12. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    another prob on booting mandy, boot menu - no problem now (except /dev/hda7 win booting) about 3 screens full of text pass then mandy freezes - kernel panic,

    i think it could be the fact that /dev/hda1 is ext3 & /dev/hda3 /home is ext2 or is that ok, if not how do i change type of /dev/hda1 to ext2
     
  13. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    What does the kernel panic about? Make sure that the initrd line correctly refers to the initrd image.
     
  14. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    please check attatchments on post #9 dir listing is of /mnt/mandy/boot/ & menu.lst listing

    kernal panics because:
    Code:
    No init. try passing init= option to kernal
    what does that actually mean ?
     
  15. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    It means it cannot find the kernel image where it expects to find it, so it can't go any further. init= explicitly tells the bootloader which kernel image to load.
     
  16. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    should i boot mandy through kubuntu, e.g. should path to mandy kernel & initrd be:
    Code:
    title		Mandy 2006
    root		(hd0,4)
    kernel		/boot/vmlinux-2.6.8.1-12mdksmp
    initrd		/boot/initrd-2.6.8.1-12mdksmp.img
    savedefault
    boot
    or
    Code:
    title		Mandy 2006
    root		(hd0,4)
    kernel		/mnt/mandy/boot/vmlinux-2.6.8.1-12mdksmp
    initrd		/mnt/mandy/boot/initrd-2.6.8.1-12mdksmp.img
    savedefault
    boot
    please refer to post #9 for directory listing of mandy's /boot/ and menu.lst
     
  17. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    The former.
     
  18. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    :beer: cheers, i'll try it, thankies AT
     

Share This Page