Find the answer to your Linux question:
Results 1 to 4 of 4
Most of us started with windows and then decided to test out other operating systems eg Linux. Installed Linux and on starting the computer, Grub kicks in and we're able ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2004
    Location
    london
    Posts
    22

    Configuring Grub in a Dual boot Win xp/Suse9 computer


    Most of us started with windows and then decided to test out other operating systems eg Linux. Installed Linux and on starting the computer, Grub kicks in and we're able to boot Linux but not windows.
    To boot windows, you need to edit "/boot/grub/menu.lst "

    Firstly a few basics :-
    a. always install Grub, in the boot sector of the root partition of Linux
    Never install Grub in the master boot record (MBR) 'cos when you uninstall Linux, you 'll not be able to get back to booting windows. The MBR is trashed.
    b. Grub sees the ist hard disk as "hd0"
    c. Example, 4 primary partitions, Linux sees 1st partition as 1,2,3,4 respectively, but Grub sees it as 0,1,2,3.
    d. If the 4th primary partition is an Extended partition with 2 Logical partitions , then the 1st logical partition is labelled "hd5" and 2nd log. partn. as "hd6"
    Note even if there're only 3 primary partitions, the 1st Logical partn. is still labelled "hd5"

    Edit /boot/grub/menu.lst

    Example a hard disk with win xp in 1st partition, Suse9 in 2nd partition

    Make sure your partitions are labelled correctly.
    Open up YaST2 Control Center, click "Partitioner"
    Look for /dev/hda1 x Gb Win95 Fat32 LBA /WxP
    /dev/hda2 x Gb Linux native /

    hda where " a" denotes 1st hard disk, but Grub sees as "hd0"
    hda1 where "1" is 1st primary partition on 1st hard disk, but Grub sees as
    "0"
    x - partition size, Win95 Fat32 LBA is the file type, / WxP - the mount point
    Take note of these settings.

    Open up YaST2 Control Center, click "Boot Loader Configuration"

    Your Boot Loader Type should be GRUB
    Boot Loader Location should be /dev/hda2

    Available Sections should be Linux(default),windows WxP

    Click "Edit Configurating Files "
    Under "File Name" bring up /boot/grub/menu.lst (down arrow)

    Look for this line.

    ### Don't change this comment-YaST2 identifier;Original name:windows Wxp ###

    title windows WxP
    unhide (hd0,0)
    root (hd0,0)
    make active
    chainloader +1

    Make sure the windows settings are correct, (change it if necessary)
    press "OK", then press "Finish"

    Hope this is useful to someone.

  2. #2
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790

    Re: Cofiguring Grub in a Dual boot Win xp/Suse9 computer

    Quote Originally Posted by pchin
    Never install Grub in the master boot record (MBR) 'cos when you uninstall Linux, you 'll not be able to get back to booting windows. The MBR is trashed.
    this is not entirely true. I believe that you can use fdisk to restore the MBR to boot windows. Correct me if i'm wrong, but this is my belief.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  3. #3
    Just Joined!
    Join Date
    Mar 2004
    Location
    london
    Posts
    22
    Thank you for pointing this out, sdousley. This is the bit where most prople get stuck with when uninstalling linux. (at the dos prompt type "fixmbr")

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Topic Locked. If you need a grub tutorial, see this link:

    http://linuxforums.org/forum/topic-19999.html

    Nerderello has written a *very* complete one.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

Posting Permissions

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