Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18
I am having trouble using grub. I had window XP installed on my computer first then i installed grub to dual boot. I have linux and windows Xp installed on ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    9

    Grub and dual booting

    I am having trouble using grub. I had window XP installed on my computer first then i installed grub to dual boot.

    I have linux and windows Xp installed on my first harddrive and i have a 2nd harddrive installed with just WIndows XP from my old computer.

    Everytime i boot i get the menu and stuff but when i selected the WIndows XP from either harddrive it changes from the menu to a black screen with: " chainloader (hd0,1)+1" on the top and nothing else happens. The only thing on the menu that works is Suse.

    I am running suse linux 10.1


    Here is my menu.lst:

    # Modified by YaST2. Last modification on Thu Jul 5 23:42:51 EDT 2007

    color white/blue black/light-gray
    default 0
    timeout 10
    gfxmenu (hd0,2)/boot/message

    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title SUSE Linux 10.1
    root (hd0,2)
    kernel /boot/vmlinuz root=/dev/hda3 vga=0x31a resume=/dev/hda1 splash=silent showopts
    initrd /boot/initrd

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

    title Emachine XP
    chainloader (hd0,1)+1



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

    title HP XP
    chainloader (hd1,1)+1


    ###Don't change this comment - YaST2 identifier: Original name: floppy###
    title Floppy
    chainloader (fd0)+1

    ###Don't change this comment - YaST2 identifier: Original name: failsafe###
    title Failsafe -- SUSE Linux 10.1
    root (hd0,2)
    kernel /boot/vmlinuz root=/dev/hda3 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd


    Here is my etc/grub.conf:

    setup --stage2=/boot/grub/stage2 (hd0,2) (hd0,2)
    quit


    Can someone help me resolve my problem?

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !!

    open /boot/grub/menu.lst file and add this
    Code:
    title Windows XP 1
        rootnoverify (hd0,0)
        chainloader +1
    
    title Windows XP 2
        rootnoverify (hd1,0)
        map (hd0) (hd1)
        map (hd1) (hd0)
        chainloader +1
    save file and reboot.
    in case, any OS doesn't boot up, execute 'fdisk -l' command and post output here.
    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
    Jul 2007
    Posts
    9
    when i clicked on the window XP 1 i get a screen displaying this:

    Booting 'Window Xp1'

    rootnoverify (hd0,0)
    chainloader +1

    Error 13: Invalid or unsupported executable format


    when i clicked on the window xp 2 nothing happens. I just return to the same screen.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    post the output of fdisk -l command and contents of /boot/grub/device.map file.
    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
    Jul 2007
    Posts
    9
    idk what the "f disk-1 is" but here is the device.map:

    (hd1) /dev/hdb
    (fd1) /dev/fd0
    (hd0) /dev/hda

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    open Terminal and type this
    Code:
    fdisk -l
    -l -- its small L. you must be logged in as root to execute fdisk command.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Jul 2007
    Posts
    9

    Arrow

    ah ok here is what it says:

    Disk /dev/hda 80gb

    Device boot Start End System
    /dev/hda1 1 1515 linux swap / solaris
    Partition 1 does not end on cylinder boundary
    /dev/hda2 40636 155040 w95 ext'd (LBA)
    Partition 2 does not end on cylinder boundary
    /dev/hd3 * 1515 17309 Linux
    Partition 3 does not end on cylinder boundary
    /dev/hd4 40636 155040 Linux
    Partition 4 does not end on cylinder boundary
    /dev/hd5 40636 155040 HPFS/NTFS

    Partition table entries are not in disk order

    Disk /dev/hdb 60gb

    Device Boot Start End System
    /dev/hdb1 1 677 W95 Fat32
    /dev/hdb2 678 7752 HPFS/NTFS



    I skipped some of the stuff that showed and sry i am a slow typer

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    is Windows installed in /dev/hda5 partition?
    edit this part in menu.lst file
    Code:
    title Windows XP 1
        rootnoverify (hd0,4)
        chainloader +1
    
    title Windows XP 2
        rootnoverify (hd1,1)
        map (hd0) (hd1)
        map (hd1) (hd0)
        chainloader +1
    save file and reboot.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    Jul 2007
    Posts
    9
    Ok...The Windows 1 still does not work but the windows 2 does. The windows 1 still does the same thing. YOu select it and it changes screens to a screen similar to the terminal and says: (hd 0,4) chainloader+1

    I believe XP is loaded on partition 5

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by kewldude2007
    I had window XP installed on my computer first then i installed grub to dual boot.
    if you had installed Linux after Windows, how did you create partitions for Linux before Windows Partition? are you sure that Windows is installed in /dev/hda5 only? is it possible that you have deleted Windows OS partition during Linux Installation?

    Boot Up Second Windows and check the contents of first harddisk's driver OR mount /dev/hda5 partition in SuSe and check what is in it.
    Code:
    mkdir /media/hda5
    mount   -t  ntfs   /dev/hda5   /media/hda5  -o  defaults,umask=0
    check the contents of /media/hda5 folder.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 LastLast

Posting Permissions

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