Find the answer to your Linux question:
Results 1 to 6 of 6
hello, I have 2 disks and the following config in my system. disk1 sda: sda1 : primary Lilo based installed (65MB) :I can't remember if Lilo was installed here sda2: ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    3

    grub question

    hello,
    I have 2 disks and the following config in my system.

    disk1 sda:
    sda1 : primary Lilo based installed (65MB) :I can't remember if Lilo was installed here
    sda2: extended partition
    sda3: logical redhat root
    sda4: logical redhat swap

    disk2 sdb:
    sdb1: XP
    sdb2: vista
    sdb3: spare
    sdb4: extended partition
    sdb5: logical suse root
    sdb6: logical suse main
    sdb7: logical suse swap

    Depending on the BIOS boot priority settings, the machine will boot LILO or GRUB .
    The questions I have are :
    1. I can't remember where LILO and GRUB were installed on the disk so :
    is LILO in disk1 sda 's MBR or sda root partition?
    is GRUB in disk2 sdb 's MBR or sdb root partition?
    How can I find this out ?

    2. How can I setup grub / menu.lst to boot the Linux version on disk1 SDA and/or how can I setup LILO.conf to boot the Linux version (suse) on disk2 SDB?
    thx

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    You could try the tutorials in the linked posting. If you want additional help setting up grub ...
    Set BIOS to boot from disk with grub installed. Start linux and as root run
    Code:
    fdisk -l
    and post output here. Also post the contents of /boot/grub/menu.lst file here as well.

  3. #3
    Just Joined!
    Join Date
    Feb 2008
    Posts
    3
    fdisk is not the question .fdisk doesn't tell you whether grub or lilo is in the MBR or the root partition which is what I am trying to find out.

    furthermore the other question is to do chainloading from 1 drive to another drive which I don't see your link is pointing to with grub tutorial

  4. #4
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    The Grub tutorial linked in the post explains about setting up grub if you want to have a go without further assistance ... the tutorials provide information and links to all the information you should need to setup grub to boot both versions of Linux you have on your system. It also explains how to boot Windows if it happens to be on the second hard disk.

    I thought what you wanted to be able to do was boot all operating systems from a single grub menu ... I suggested if you needed further assistance that you post the output of fdisk -l so that someone helping you can be clear how the disks are being identified with the BIOS setup the way you intend using it.

    It would be useful if you also post the contents of the LILO config file so that we know kernel location, name and additional parameters required.

  5. #5
    Just Joined!
    Join Date
    Feb 2008
    Posts
    3
    Keep in mind I 'd rather use GRUB/SUSE to boot to LILO/REDHAT

    Here is the installation order:
    SDB was connected to the system: installed XP,VISTA then SUSE/GRUB.
    then connect SDA ,install REDHAT/LILO

    DISK SDA will boot LILO fine
    DISK SDB will boot GRUB fine

    but it requires me to change BIOS settings !which is what I am trying to avoid.

    I installed the LILO/REDHAT separately on disk SDA from disk SDB because of concern of corruption/space use which then will affect my XP/VISTA/SUSE usage later on

    Here is the grub/menu.lst:

    ###for SUSE/GRUB
    title openSUSE 10.3
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_WDC_X vga=XXXX
    initrd /boot/initrd-2.6.22.5-31-default

    ### MS bootmanager for XP /vista
    title windows 1
    rootnoverify (hd0,4)
    chainloader (hd0,0)+1

    ###I AM TRYING TO GET REDHAT/LILO BOOT FROM GRUB
    title redhat/lilo
    root (hd1,0)
    chainloader+1

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    You have installed both lilo and GRUB in MBR of disks and chainloading will not work. You have to install one of the Boot Loader in Boot Sector of / partition.

    I would suggest you to use GRUB instead of lilo because its pretty easy to tweak GRUB.

    Set SuSe disk as First Boot Device in BIOS and boot it up. Mount /boot partition of RedHat and post the filenames stored in /boot. Post the output of fdisk -l command too.
    We will add an entry of RedHat in SuSe GRUB and you wont have to change BIOS order after that.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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