LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2006, 01:12 PM   #1
n00bpenguin
Member
 
Registered: Aug 2005
Posts: 30

Rep: Reputation: 15
Dual Booting


I have just done my first linux install with suse 10.0 and for some reason whenever i try to go to windows through the bootloader i get a black screen with just the words chainloader (hd1,0)+1. I have gone into my /etc folder and found my grub.conf file, but when i run "cat /etc/grub.conf" or even "kate /etc/grub.conf" all i get is this "setup --stage2=/boot/grub/stage2 (hd0,1) (hd0,1)
setup --stage2=/boot/grub/stage2 (hd0) (hd0,1)
quit
"
What do I need to do to boot into windows from the grub bootloader?

p.s. I am able to use the F8 boot menu to load up windows by selecting the drive it is on and it runs fine, so i know i didn't accidentally delete windows during my install.
 
Old 02-20-2006, 01:19 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Here we go again..... (Don't take this personally---Dual-booting is topic 1 here)

First: how many drives and what size? In a terminal, do fdisk -l (that's an ell) and post the result.

When you want to change the boot configuration, edit /boot/grub/menu.lst (could also be called grub.conf) The file in /etc is not what controls grub.
 
Old 02-20-2006, 01:23 PM   #3
n00bpenguin
Member
 
Registered: Aug 2005
Posts: 30

Original Poster
Rep: Reputation: 15
Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)

that's what my fdisk says

and here is what the menu.lst file says

Modified by YaST2. Last modification on Sun Feb 19 11:37:05 EST 2006

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

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

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
chainloader (hd1,0)+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.0
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2 vga=normal showopts ide=nodma apm=off acpi=off noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd
 
Old 02-20-2006, 01:24 PM   #4
victorh
Member
 
Registered: Jul 2005
Location: La Paz, Bolivia
Distribution: Debian Sarge - Sid, Slackware, Gentoo, openSuse, Fedora, Ubuntu, Mandriva
Posts: 241

Rep: Reputation: 30
The file you need to modify when you are using GRUB as bootloader is /boot/grub/menu.lst.

In this file you need to find something similar as this:

Quote:
title Windows XP
rootnoverify (hd0,0)
chainloader +1
Of course, you need to put the right partition for your Windows install. Beware that you need to be root to change this file.
 
Old 02-20-2006, 01:28 PM   #5
n00bpenguin
Member
 
Registered: Aug 2005
Posts: 30

Original Poster
Rep: Reputation: 15
so do i need to change this tag in the file

title Windows
chainloader (hd1,0)+1

to look like this?

title Windows XP
rootnoverify (hd0,0)
chainloader +1
 
Old 02-20-2006, 01:29 PM   #6
victorh
Member
 
Registered: Jul 2005
Location: La Paz, Bolivia
Distribution: Debian Sarge - Sid, Slackware, Gentoo, openSuse, Fedora, Ubuntu, Mandriva
Posts: 241

Rep: Reputation: 30
You need to put the right partition, type this command in a console:

Quote:
fdisk -l
and we'll find the Windows partition
 
Old 02-20-2006, 01:31 PM   #7
n00bpenguin
Member
 
Registered: Aug 2005
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 131 1052226 82 Linux swap / Solaris
/dev/hda2 * 132 9729 77095935 83 Linux

Disk /dev/hdb: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 30514 245103673+ 7 HPFS/NTFS
that's what i get by running an fdisk list
 
Old 02-20-2006, 01:37 PM   #8
victorh
Member
 
Registered: Jul 2005
Location: La Paz, Bolivia
Distribution: Debian Sarge - Sid, Slackware, Gentoo, openSuse, Fedora, Ubuntu, Mandriva
Posts: 241

Rep: Reputation: 30
Then in your menu.lst file you must have:

Quote:
Windows XP
rootnoverify (hd1,0)
chainloader +1
The nomenclature of GRUB is a little bit different.

hd1 means your second hard disk recognized by the Linux Kernel as hdb
(hd1,0) means the first partition of the second hard disk. That's where your Windows system resides
 
Old 02-20-2006, 01:46 PM   #9
n00bpenguin
Member
 
Registered: Aug 2005
Posts: 30

Original Poster
Rep: Reputation: 15
so do i need to change this tag in the menu.lst file

Quote:
title Windows
chainloader (hd1,0)+1
to look like this?

Quote:
title Windows XP
rootnoverify (hd1,0)
chainloader +1
 
Old 02-20-2006, 01:48 PM   #10
victorh
Member
 
Registered: Jul 2005
Location: La Paz, Bolivia
Distribution: Debian Sarge - Sid, Slackware, Gentoo, openSuse, Fedora, Ubuntu, Mandriva
Posts: 241

Rep: Reputation: 30
Yes, you can try this one. In any case if you have a problem at booting, post here what error GRUB prints in the screen.
 
Old 02-20-2006, 02:06 PM   #11
n00bpenguin
Member
 
Registered: Aug 2005
Posts: 30

Original Poster
Rep: Reputation: 15
well, now when i try to boot into windows i just get a black screen with the words

Quote:
rootnoverify (hd1,0)
chainloader +1
 
Old 02-20-2006, 02:28 PM   #12
n00bpenguin
Member
 
Registered: Aug 2005
Posts: 30

Original Poster
Rep: Reputation: 15
ok, still having problems, when i use this as my windows tag in my menu.lst file

Quote:
title Windows
rootnoverify (hd1,0)
makeactive
chainloader +1
I get this on the screen when i try to boot windows

Quote:
rootnoverify (hd1,0)
makeactive
chainloader +1
and when i use this as my windows tag in menu.lst

Quote:
title Windows XP
rootnoverify (hd1,0)
makeactive
chainloader +1
the system just reboots to the bios screen and then back to the bootloader.
maybe i need to use this?

Quote:
title WIndows XP
rootnoverify (hd2,0)
makeactive
chainloader +1
 
Old 02-20-2006, 02:37 PM   #13
victorh
Member
 
Registered: Jul 2005
Location: La Paz, Bolivia
Distribution: Debian Sarge - Sid, Slackware, Gentoo, openSuse, Fedora, Ubuntu, Mandriva
Posts: 241

Rep: Reputation: 30
Nop, the problem you have is that you have Windows installed in the second hard disk.

Normally you should install Windows in the first hard disk (you can correctly think that this is a problem of Windows ...).

So you can add this lines to the menu.lst

Quote:
title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
makeactive
chainloader +1
Try this one.

Last edited by victorh; 02-20-2006 at 02:38 PM.
 
Old 02-20-2006, 02:51 PM   #14
n00bpenguin
Member
 
Registered: Aug 2005
Posts: 30

Original Poster
Rep: Reputation: 15
yeah, now when i go into windows i just get

Quote:
title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
makeactive
chainloader +1
then
Quote:
error13: Invalid or unsopported exectuable format

press any key to continue ...
then when i hit any key i just get another boot menu that comes up
 
Old 02-20-2006, 03:00 PM   #15
n00bpenguin
Member
 
Registered: Aug 2005
Posts: 30

Original Poster
Rep: Reputation: 15
YESS !!!!!!!!!!!!

I finally got it figured out. I had to change the windows tag in menu.lst to this.

Quote:
title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
and finally it's working, and my grub bootloader is successfully loading windows and suse.
I'm extremely happy and would like to than everyone here and at the forums on
www.glug.us
and
www.campusblender.com

thank you so much victorh and everyone else that helped me in this thread.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Booting SuSE 9.2 & XP Pro/dual hard drives The_Bug Linux - General 3 01-04-2006 06:44 PM
Dual booting 9.2 with 10.0 J.K Mandriva 8 08-16-2004 03:51 AM
Dual dual booting with Suse 9.1 pro and windows 98SE UDflyer Linux - General 1 07-30-2004 03:37 PM
Are you dual booting and Windows stopped working (booting) then here's the answer: rberry88 Linux - General 1 02-12-2004 10:05 AM
booting ,dual booting kmadhukar Linux - Newbie 1 02-02-2002 10:32 PM


All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration