LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 10-24-2005, 10:59 PM   #1
Saspen
LQ Newbie
 
Registered: Oct 2005
Posts: 11

Rep: Reputation: 0
BIG question about dual boots


Ok, here is the beef

I had an already installed system. Windows 2000 pro on a 80 Gig drive.

I decided to install suse 9.3 pro..onto a 20 gig that was not being used..

Well low and behold, guess what I cannot boot to windows as I presumed and read.

Well, now I am stuck...

How do I modify my menu.lst and device.lst to enable that....

Here is the info from the mapping of the drives

Hda and hda1 are the mounted drive that windows exists on...why it separated the partition, I do not know...

hdb, hdb1 and hdb2 is the 20 gig where linux exists, swap area etc etc all on it...

Can any well versed linux guru help me out as to what to put into the list and menu file to get windows into the menu so I may duel boot with windows again.

Yes I can fully see all of the windows partition and access it.

Just need to have the old system back up to switch to.
 
Old 10-24-2005, 11:07 PM   #2
GaMeS
Member
 
Registered: Jan 2005
Location: France / Bretagne
Distribution: Debian / Gentoo
Posts: 71

Rep: Reputation: 15
hi,

you can start your configuration on your linux ?

if($response eq "yes"){

Code:
vi /boot/grub/menu.lst

(add this)

title Windows
root (hd0,1)
chainloader +1
}
else{
Boot on a livecd or floppy disk and edit them.
}

excuse for my geek attitude..i'm tired
 
Old 10-24-2005, 11:21 PM   #3
bb002
Member
 
Registered: Aug 2005
Posts: 80

Rep: Reputation: 15
Hey GaMeS (hd0,1) actually refers to partition /dev/hda2. won't he want (hd0,0) instead?

[edit]
also i thought makeactive had to be on the line before chainloader?
so i would like this right? I don't use grub so I could be way off here but this is what it looks like after my editing....

Code:
title Windows
root (hd0,0)
makeactive
chainloader +1

Last edited by bb002; 10-24-2005 at 11:25 PM.
 
Old 10-24-2005, 11:24 PM   #4
GaMeS
Member
 
Registered: Jan 2005
Location: France / Bretagne
Distribution: Debian / Gentoo
Posts: 71

Rep: Reputation: 15
excuse me :x

yes try (hd0,0)

he can edit line on the grub menu ... press 'e' key and add line on config grub..but the add is not permanent(i think)

Last edited by GaMeS; 10-24-2005 at 11:25 PM.
 
Old 10-25-2005, 07:14 PM   #5
Saspen
LQ Newbie
 
Registered: Oct 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Hmmmm

Quote:
Originally posted by GaMeS
excuse me :x

yes try (hd0,0)

he can edit line on the grub menu ... press 'e' key and add line on config grub..but the add is not permanent(i think)
Some explain what the HD0 ",0" and all of this means

In looking at me path folders.....it is really confusing....I understand what HD is...but the 0,0 and 0,1....I am lost on this..
 
Old 10-25-2005, 07:43 PM   #6
Kerrysl
Member
 
Registered: Oct 2005
Location: Sydney, Australia
Distribution: Fedora 8, (previously FC6, FC5, FC4, FC3, & Mandrake 10)
Posts: 70

Rep: Reputation: 15
Going from the top of my head, so I could be wrong in some details. The difference is in how the Linux kernel sees devices the /dev/hda1 one part and how Windows or more correctly the PC's bios sees the partitions the (hd0,0) part. So depending on where the information is being sent, to either the bios or to the OS depends upon which notation must be used.

Also in your bios you can likely change the boot sequence of your hard-drives. On my system I have my Win2K Pro on my D:/ drive (mainly for historical reasons - originally had W9x on C:/) and my Linux is on a later partition. I will post a copy of my menu.lst file. It won't be exactly what you need, you will likely need to change some of the 1's and 0's, but it will give you a good starting point.
Code:
# 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 (hd1,5)
#          kernel /boot/vmlinuz-version ro root=/dev/hda6
#          initrd /boot/initrd-version.img
#boot=/dev/hdb
color white/black white/red
default=1
timeout=15
#splashimage=(hd1,5)/boot/grub/splash.xpm.gz
password --md5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
title Fedora Core (2.6.12-1.1372_FC3)
        root (hd1,5)
        kernel /boot/vmlinuz-2.6.12-1.1372_FC3 ro root=LABEL=/ rhgb quiet vga=788 selinux=0
        initrd /boot/initrd-2.6.12-1.1372_FC3.img
title Fedora Core (2.6.11.2)
        root (hd1,5)
        kernel /boot/vmlinuz-2.6.11.2 ro root=LABEL=/ rhgb quiet vga=788 selinux=0
        initrd /boot/initrd-2.6.11.2.img
title Fedora Core (2.6.10-1.766_FC3)
        root (hd1,5)
        kernel /boot/vmlinuz-2.6.10-1.766_FC3 ro root=LABEL=/ quiet vga=788
        initrd /boot/initrd-2.6.10-1.766_FC3.img
title Fedora Core (2.6.9-1.667)
        root (hd1,5)
        kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet vga=788
        initrd /boot/initrd-2.6.9-1.667.img
title Windows 2000
        rootnoverify (hd0,0)
        chainloader +1
Don't worry about the extra Fedora Cores, I like to have a couple of other working boots incase I stuff up my main one, especially when installing a new kernel. Mostly I will use just the 2nd Fedora and the Windows 2000.
 
Old 10-25-2005, 09:20 PM   #7
bb002
Member
 
Registered: Aug 2005
Posts: 80

Rep: Reputation: 15
Let's try this Saspen, post the contents of the file /boot/grub/menu.lst for us. That way we can build the new menu for you and help you understand each point your configuration.
 
Old 10-25-2005, 10:38 PM   #8
Saspen
LQ Newbie
 
Registered: Oct 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Ok

I tried by what was posted earlier and put it into the menu list....as you will see.... What is there now...did in fact start to boot the windows OS...but I got the dreaded blue screen with a "INACCESSIBLE BOOT DEVICE"

now remember....

The YAST partition is showing the 75 gig (Windowss) drive as two (2) different drives...one HDA and the HDA1...both have the same sector start 0 and end 9727 etc sumtin....

What yast is reporting, first two entries...

DEV/HDA 74.5 gig, and ST380031 Drive start sector 0 end 9728
Just below it is
DEV/HDA1 74.5 gig unknown, ntfs start 0 end 9227

Below that is the listing for the 20 gig where Linux resides

Menu.lst

# Modified by YaST2. Last modification on Thu Oct 13 17:43:09 UTC 2005

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

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 9.3
kernel (hd1,1)/boot/vmlinuz root=/dev/hdb2 vga=0x31a selinux=0 splash=silent apm=off acpi=off mce=off barrier=off ide=nodma idewait=50 i8042.nomux psmouse.proto=bare resume=/dev/hdb1 showopts
initrd (hd1,1)/boot/initrd

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

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 9.3
kernel (hd1,1)/boot/vmlinuz root=/dev/hdb2 showopts ide=nodma apm=off acpi=off vga=normal noresume selinux=0 barrier=off nosmp noapic maxcpus=0 3
initrd (hd1,1)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
root (hd0,0)
makeactive
chainloader +1
 
Old 10-25-2005, 10:45 PM   #9
Kerrysl
Member
 
Registered: Oct 2005
Location: Sydney, Australia
Distribution: Fedora 8, (previously FC6, FC5, FC4, FC3, & Mandrake 10)
Posts: 70

Rep: Reputation: 15
Just quickly the HDA and HDA1 is quite simple.
HDA is a description of the first hardrive in your machine.
Included in that drive are the partitions starting at HDA1. If you have only one partition that completely fills the drive like a default Windows install does then you would still have hda and hda1.

I personally don't think you need the makeactive command for windows.
 
Old 10-25-2005, 10:49 PM   #10
Saspen
LQ Newbie
 
Registered: Oct 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Kerrysl
Just quickly the HDA and HDA1 is quite simple.
HDA is a description of the first hardrive in your machine.
Included in that drive are the partitions starting at HDA1. If you have only one partition that completely fills the drive like a default Windows install does then you would still have hda and hda1.

I personally don't think you need the makeactive command for windows.
Then what casued the blue screen and the "INACCESSABLE BOOT DEVICE ISSUE?"

Damm I am a noob about this! grrrrrrrrrrrrrrrr lol
 
Old 10-25-2005, 10:51 PM   #11
bb002
Member
 
Registered: Aug 2005
Posts: 80

Rep: Reputation: 15
I got on a friends laptop that is dual booting windows xp and linux.

this is the code that boots windows xp
Code:
title     Microsoft Windows XP Professional
root    (hd0,0)
savedefault
makeactive
chainloader +1
give that a try.
 
Old 10-25-2005, 10:52 PM   #12
Kerrysl
Member
 
Registered: Oct 2005
Location: Sydney, Australia
Distribution: Fedora 8, (previously FC6, FC5, FC4, FC3, & Mandrake 10)
Posts: 70

Rep: Reputation: 15
I think you mentioned Win2K.
For windows you need to have rootnoverify not just root.
 
Old 10-25-2005, 10:55 PM   #13
bb002
Member
 
Registered: Aug 2005
Posts: 80

Rep: Reputation: 15
Yeah I started googling around incase my last post didn't get it for him. but plain old root is working for my friend.

well if my last post doesn't work i guess try rootnoverify instead of root.
 
Old 10-25-2005, 11:28 PM   #14
Kerrysl
Member
 
Registered: Oct 2005
Location: Sydney, Australia
Distribution: Fedora 8, (previously FC6, FC5, FC4, FC3, & Mandrake 10)
Posts: 70

Rep: Reputation: 15
It might be that XP is not as finicky as Win2K. I have Win2K dual booted and I had to have rootnoverify. I will see if I can find the documentation I used.
 
Old 10-26-2005, 12:08 AM   #15
Kerrysl
Member
 
Registered: Oct 2005
Location: Sydney, Australia
Distribution: Fedora 8, (previously FC6, FC5, FC4, FC3, & Mandrake 10)
Posts: 70

Rep: Reputation: 15
OK, I found this;
"rootnoverify is just like a standard grub root command except that it doesn't attempt to mount /dev/hda1, which would cause all sorts of havoc in Windows."

Once the chainloader line executes it hands off to the windows boot sequence. Do you still have boot.ini in the root of your C:\ drive?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Another "Only boots to XP" dual boot problem apocoloco Fedora - Installation 8 10-24-2005 02:26 AM
Configuring XF86Config-4 To have Dual Monitors (One big screen) unleaded17 Linux - Software 1 10-19-2005 07:56 AM
Another boots into command prompt question Jhorra Mandriva 5 04-03-2004 01:53 AM
dual boots................rather have rubber boots metal_monster Linux - Newbie 1 01-13-2004 12:24 PM
Very Big Problem With Dual Boot Fathonkey Linux - General 11 05-24-2003 11:39 AM


All times are GMT -5. The time now is 11:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration