Find the answer to your Linux question:
Results 1 to 5 of 5
Sorry guys if this has been asked before...I couldn't find anything pertaining to my situation and I'm suffering from a massive RTFM overload I have a laptop that had Mandriva ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    9

    Grub my other OS!


    Sorry guys if this has been asked before...I couldn't find anything pertaining to my situation and I'm suffering from a massive RTFM overload

    I have a laptop that had Mandriva (Mandrake) installed on it (hda2, hda3).
    I installed CentOS (hda5, hda6) and Grub didn't detect the Mandrake install...I provided the name during the grub configuration but didn't know how to tell it what to boot.

    Now I did enough reading to know that I have to type something fancy like

    "root (hd0,1)
    kernel /boot/.....-2.6.9....blahblah
    initrd /boot/initrd...blahblah"

    into the grub.conf file.

    But what I haven't been able to find out: how do I know what the fancy stuff is that I need to enter and what is needed?

    Thanks,

    Bernie

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    mount Mandriva Partition in CentOS. copy first 'title, root, kernel and initrd' lines form its /boot/grub/menu.lst file and paste in CentOS's /boot/grub/grub.conf file.







    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Jun 2006
    Posts
    9
    Well....I only found an example file on the mandrake partition...I figured I'll just modify that entry so it points to the correct location (hd0,2).

    Used vi to enter the Mandrake stuff after CentOS (didn't touch the CentOS entry).

    Now not able to boot at all....

    I end up with a "PCI: Cannot allocate resource region 0 of device 0000:00:0a.0
    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (0,0)"

    Not sure what I could have done to grub to cause that?

    Thanks for your help,

    Bernie

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    you have edited root mount point in CenOS grub configuration file.
    boot up from any LiveCD and mount Mandriva and CentOS partitions. post the contents of /boot/grub/menu.lst file of Mandriva and /boot/grub/grub.conf file of CentOS.






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Jun 2006
    Posts
    9
    Quote Originally Posted by devils_casper
    you have edited root mount point in CenOS grub configuration file.
    boot up from any LiveCD and mount Mandriva and CentOS partitions. post the contents of /boot/grub/menu.lst file of Mandriva and /boot/grub/grub.conf file of CentOS.Casper

    Hi,

    I don't have a "menu.lst", only a "menu.lst.example". I figured I could just modify the entry in the CentOS grub to point to the correct partition (hda3) for Mandrake.

    Anyways -- here is the grub file from CentOS:

    [root@localhost grub]# cat grub.conf
    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE: You do not have a /boot partition. This means that
    # all kernel and initrd paths are relative to /, eg.
    # root (hd0,4)
    # kernel /boot/vmlinuz-version ro root=/dev/hda5
    # initrd /boot/initrd-version.img
    #boot=/dev/hda
    default=1
    timeout=5
    splashimage=(hd0,4)/boot/grub/splash.xpm.gz
    hiddenmenu
    title CentOS-4 i386 (2.6.9-42.EL)
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.9-42.EL ro root=LABEL=/ rhgb quiet
    title Mandrake
    kernel (hd0,2)/vmlinuz-2.6.11-8mdk
    root=/dev/hda6 resume=/dev/hda1
    initrd (hd0,2)/initrd-2.6.11-8mdk.img
    [root@localhost grub]#


    Here is the (ex)sample file from Mandriva -- there is no menu.lst


    [root@localhost grub]# cat menu.lst.example
    timeout 10
    color 2
    splashimage (hd0,4)/grub/mdv-grub_splash.xpm.gz
    default 0
    viewport 3 2 77 22
    shade 1

    title 2611-8
    kernel (hd0,4)/vmlinuz-2.6.11-8mdk root=/dev/hda6 resume=/dev/hda1
    initrd (hd0,4)/initrd-2.6.11-8mdk.img
    [root@localhost grub]#

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •