Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard network printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Complicated Dual Boot, Need Help Badly

Reply  
Thread Tools
devlin's Avatar
Member with 129 posts.
 
Join Date: Feb 2005
Experience: Advanced
18-Apr-2005, 09:49 PM #1
Complicated Dual Boot, Need Help Badly
ok no one seems to know the answer so i thought i would post here since people here are usually very helpful. ok i have windows xp installed on 2 serial raid drives and suse 9.2 pro on 40gig ata drive. both work fine independently. how can i make it so i can choose which OS to boot from without going into bios? keep in mind im a noob when it comes to linux but expert when it comes to windows. i tried editing grub but got no where. i know that linux recognizes my SATA drives as sda and sdb. anyone know how to figure this out? i messed around with xosl and hated it. could not get it to work for anything.
Headrush's Avatar
Senior Member with 1,335 posts.
 
Join Date: Feb 2005
Experience: Advanced
19-Apr-2005, 12:44 PM #2
Post your current /boot/grub/grub.conf file and we'll start from that.

GRUB doesn't use /dev style device names. It uses (hdx,y) where x is the number of hard disk and y is the partition on that disk. (Both start at 0 )
devlin's Avatar
Member with 129 posts.
 
Join Date: Feb 2005
Experience: Advanced
19-Apr-2005, 01:57 PM #3
ok here it is: i found it in /etc/grub.conf

root (hd0,1)
install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0) /boot/grub/stage2 0x8000 (hd0,1)/boot/grub/menu.1st
quit
Headrush's Avatar
Senior Member with 1,335 posts.
 
Join Date: Feb 2005
Experience: Advanced
19-Apr-2005, 02:27 PM #4
Quote:
Originally Posted by devlin
ok here it is: i found it in /etc/grub.conf

root (hd0,1)
install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0) /boot/grub/stage2 0x8000 (hd0,1)/boot/grub/menu.1st
quit
Can you also post results of
Code:
ls -l /boot
ls -l /boot/grub
Am I right in thinking that the partition containing the / directory for Linux is the second partition on that disk?

And any info on your raid setup: Level, hardware, software, Windows dynamic volumes.

Last edited by Headrush; 19-Apr-2005 at 02:45 PM..
devlin's Avatar
Member with 129 posts.
 
Join Date: Feb 2005
Experience: Advanced
19-Apr-2005, 03:27 PM #5
yes i will check results of that code. to answer your other question, yes its on 2nd partition. thats the way linux wanted it installed. there are no other operating systems on that drive. i have 2 western digitial SATA drives on raid 0 that have winxp.
devlin's Avatar
Member with 129 posts.
 
Join Date: Feb 2005
Experience: Advanced
19-Apr-2005, 03:37 PM #6
ls -1 /boot
backup_mbr
boot
config-2.6.8-24-default
grub
initrd
initrd-2.6.8-24-default
message
symvers-2.6.8-24-i386-default.gz
System.map-2.6.8-24-default
vmlinux-2.6.8-24-default.gz
vmlinuz
vmlinuz-2.6.8-24-default

ls -1 /boot/grub
device.map
e2fs_stage1_5
fat_stage1_5
ffs_stage1_5
iso9660_stage1_5
jfs_stage1_5
menu.lst
minix_stage1_5
reiserfs_stage1_5
stage1
stage2
ufs2_stage1_5
vstafs_stage1_5
xfs_stage1_5
ShavedApe's Avatar
Member with 96 posts.
 
Join Date: Apr 2005
Experience: Advanced
19-Apr-2005, 04:06 PM #7
you need to edit /boot/grub/menu.lst (i'm sure headrush was getting there )
grub lists drives in the order provide by the bios (hd0) (hd1) ... etc
the trick that i find a lot of distros don't set up right is that windows won't boot if it's not the primary drive (c-drive in winspeak)
----
title Windows XP
rootnoverify (hdx,0)
map (hdx) (hd0)
map (hd0) (hdx)
makeactive
chainloader +1
------



where (hdx) is the drive with xp on it. (change x to drive number)
the map command tricks windows into thinking it's the first drive (you could use this to change drive letters in windows too, by giving them to windows in a different order)

make active, well.., tells windows is the active drive
chainloader +1, grub hands off the booting process to the windows bootloader.
__________________
Verbing nouns is wierding language
Headrush's Avatar
Senior Member with 1,335 posts.
 
Join Date: Feb 2005
Experience: Advanced
19-Apr-2005, 04:45 PM #8
Yes ShavedApe that is where is where I was heading. :-)

Are you positive that GRUB will handle the chipset RAID he has Windows installed on? I wasn't positive and figured if it didn't work we would have to use the good old boot.ini method.
ShavedApe's Avatar
Member with 96 posts.
 
Join Date: Apr 2005
Experience: Advanced
19-Apr-2005, 05:21 PM #9
i find that most are handled alright as long as they're not in raid mode... oh wait
are they in raid mode? i thought he said they were seperate, but i don't see that now

linux doesn't support a lot of the sata raid devices, simply because they aren't real harware raid, it's implimented in software. I haven't ever used one of these in raid mode so i don't know what to expect.

but, i think if the bios tells grub that it's one drive, and using the "root noverify" option grub won't even try to read them. would grub just say "hey, your active, go boot"

just a hunch, i'm not sure of the technical details of what goes on (probably learned and forgotten ), i just know how to make it work most of the time.
__________________
Verbing nouns is wierding language
devlin's Avatar
Member with 129 posts.
 
Join Date: Feb 2005
Experience: Advanced
19-Apr-2005, 06:11 PM #10
yeah i have 3 hard drives total: 2 raid (windows), 1 not raid (linux)
devlin's Avatar
Member with 129 posts.
 
Join Date: Feb 2005
Experience: Advanced
19-Apr-2005, 06:23 PM #11
i found the menu.lst file and i was wondering how to edit it. when i double click on it it says i don't have enough permissions to read

edit**

nevermind i figured it out. ok just for testing purposes i typed in this:
title Windows XP and it came up as an option now ill go back and type in the rest.

quick question, for me would it look like this:
title Windows XP
rootnoverify (sda, 0)
map (sda) (hd0)
map (hd0) (sda)
makeactive
chainloader +1
sda is what linux calls my raid HDs. they list in the setup screen as sda and sdb

Last edited by devlin; 19-Apr-2005 at 06:37 PM..
ShavedApe's Avatar
Member with 96 posts.
 
Join Date: Apr 2005
Experience: Advanced
19-Apr-2005, 10:52 PM #12
grub lables the drives as (hdx) where x={0,1,2...}
try (hd1, 0) and (hd1)
i truthfully have no idea what will happen.

mabey google for your sata adapter with linux too.
www.linuxquestions.org is another good linux forum to hit (their search is a liitle slow though)
__________________
Verbing nouns is wierding language
devlin's Avatar
Member with 129 posts.
 
Join Date: Feb 2005
Experience: Advanced
20-Apr-2005, 12:44 PM #13
that won't work. linux DOES NOT list serial drives as hdx whatever. they list them by sd a,b,c etc...
ShavedApe's Avatar
Member with 96 posts.
 
Join Date: Apr 2005
Experience: Advanced
20-Apr-2005, 03:05 PM #14
i know that's how linux lists drives.
but linux isn't running when you're at the bootloader! just grub, which lists them in that way. grub is what's responsible for loading the linux kernel for you at boot. (or lilo on some other systems)
ShavedApe's Avatar
Member with 96 posts.
 
Join Date: Apr 2005
Experience: Advanced
20-Apr-2005, 03:08 PM #15
the menue.lst entry in post #7 was taken from my debian system, (replaced 1 with x obviously)
that system is running of off 2 different sata controllers, but low and behold, (hd0) (hd1)
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:09 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.