LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-03-2005, 12:44 PM   #1
linuxuser99
LQ Newbie
 
Registered: May 2005
Posts: 9

Rep: Reputation: 0
Dual boot Grub Suse 9.1 - totally stuck


I am having problems getting dual boot to work with windows XP.

My PC came configured with Windows XP as the main OS and a small "recovery area" which contains a copy of the OS for loading if the main install breaks - this can be reinstalled if need be - but rubs out all your data. It is an HP Pavillion. I have been using it for some time and it has all my data on it.

I installed 9.1 Professional straight out of the box. There seems to be a well known bug with Grub and the 2.6 kernal which prevent dual boot - the system hangs with a chainloader error. I followed the instructions on this site regarding updating the parted install, setting the bios to LBA and reinstalling.

After a little editing of the menu.lst file I can get the system to boot into the XP recovery partition: However this just offers me the option of reinstalling XP. I cant seem to get my machine to boot to XP.

Ideally I want to be able to dual boot XP and Linux.

I'm stuck now. Can you give me some ideas? The Suse guys aren't interested because the distro is > 90 days old.

Regards

Tom



> ==================================================
> menu.lst file:
> > # Modified by YaST2. Last modification on Sun May 1 01:16:17 2005
> > > color white/blue black/light-gray
> default 0
> timeout 8
> gfxmenu (hd0,2)/message
> > ###Don't change this comment - YaST2 identifier: Original name: linux###
> title Linux
> kernel (hd0,2)/vmlinuz root=/dev/hda5 vga=0x314 splash=silent fixpart=1 acpi=off desktop resume=/dev/hda6 showopts > initrd (hd0,2)/initrd
> > ###Don't change this comment - YaST2 identifier: Original name: windows###
> title Windows
> rootnoverify (hd0,0)
> chainloader +1
> > ###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
> kernel (hd0,2)/vmlinuz root=/dev/hda5 showopts ide=nodma apm=off acpi=off vga=normal noresume nosmp noapic maxcpus=0 3
> initrd (hd0,2)/initrd
> >

I have also tried:

> title Windows
> rootnoverify (hd0,1)
> chainloader +1

Didn't work either.

===================================================
> > output from fdisk -l
> > Disk /dev/hda: 120.0 GB, 120034123776 bytes 240 heads, 63 sectors/track, 15505 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes
> > Device Boot Start End Blocks Id System
> /dev/hda1 1 648 4898848+ b W95 FAT32
> /dev/hda2 * 649 10697 75966408 7 HPFS/NTFS
> /dev/hda3 10698 10710 96390 83 Linux
> /dev/hda4 10711 15506 36250672+ f W95 Ext'd (LBA)
> /dev/hda5 10711 15436 35728528+ 83 Linux
> /dev/hda6 15437 15506 522081 82 Linux swap
 
Old 05-03-2005, 01:23 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Can you post the results of the command: fdisk -l
 
Old 05-03-2005, 01:25 PM   #3
linuxuser99
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
> > output from fdisk -l
> > Disk /dev/hda: 120.0 GB, 120034123776 bytes 240 heads, 63 sectors/track, 15505 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes
> > Device Boot Start End Blocks Id System
> /dev/hda1 1 648 4898848+ b W95 FAT32
> /dev/hda2 * 649 10697 75966408 7 HPFS/NTFS
> /dev/hda3 10698 10710 96390 83 Linux
> /dev/hda4 10711 15506 36250672+ f W95 Ext'd (LBA)
> /dev/hda5 10711 15436 35728528+ 83 Linux
> /dev/hda6 15437 15506 522081 82 Linux swap


Is this not it?

Tom
 
Old 05-03-2005, 01:45 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Sorry, didn't look below the line as I kinda thought it was a signature line.

Anyway, it sure looks like /dev/hda2 is where it's at and should work.
title Windows
rootnoverify (hd0,1)
chainloader +1
 
Old 05-03-2005, 02:15 PM   #5
linuxuser99
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by homey
Sorry, didn't look below the line as I kinda thought it was a signature line.

Anyway, it sure looks like /dev/hda2 is where it's at and should work.
title Windows
rootnoverify (hd0,1)
chainloader +1
Thanks for that idea. I did try this (see first post):

"I have also tried:

> title Windows
> rootnoverify (hd0,1)
> chainloader +1

Didn't work either."

And I'm afraid it doesn't work - it just hangs.

Regards

Tom
 
Old 05-03-2005, 02:46 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
It could be that Windows doesn't like your /boot partition. /dev/hda3 .
You may have good success by typing the command: grub-install /dev/hda
 
Old 05-03-2005, 03:32 PM   #7
linuxuser99
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
So I - > su root

then ran:

>> grub-install /dev/hda
/usr/lib/stage1: Not found.

didn't seem to recognise the command

Regards

Tom
 
Old 05-03-2005, 03:53 PM   #8
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Ok, try this as su -

Type the command: grub
at the grub> prompt, type: find /sbin/init
which aught to return something like this on your box....
(hd0,4)

Now use that in the next grub command:
grub> root (hd0,4)
then the command:
grub> setup (hd0)

then the command:
grub quit

Then reboot to see if it worked
 
Old 05-03-2005, 03:58 PM   #9
linuxuser99
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Doesn't recognise the device:


grub> find /sbin/init
(hd0,4)

grub> setup (hd0)

Error 12: Invalid device requested

Really weird.

(thanks for taking the time to help btw.)

Tom
 
Old 05-03-2005, 04:10 PM   #10
linuxuser99
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
I'm starting to wonder if some of the issue is because most of the dual boot faqs assume that you have XP on partition 1 of disk 1 and I dont - that's my "recoverey setup" I have my XP on what looks like partition 2 of disk 1.

I have tried the "frig" or remapping the disks like this in my menu.lst

title MS on NON-FIRST partition
root (hd0,1)
map (hd0,1) (hd0,0)
map (hd0,0) (hd0,1)
makeactive
chainloader +1

But still get the error "Filesystem type unknown, partition type 0x7"

I'm pretty much at my wits end now - all ideas very gratefully recieved.

Tom
 
Old 05-03-2005, 04:25 PM   #11
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
This part is correct for your setup because you have Windows on (hd0,1) . So, I would leave that part of the grub config alone.

title Windows
rootnoverify (hd0,1)
chainloader +1

The error is strange because, grub does see (hd0,4) . That means it sees (hd0) so I don't know why it is acting stupid.
It's possible that you have the problem caused by early 2.6 kernels where linux partitioning badly disagreed with windows partitioning.

I would make a grub boot disk so you can get back into Linux. Then boot up with a Windows WinMe boot disk and type the command: fdisk /mbr
That should at least get you into Windows. If not, you may need to read up on that 2.6 kernel thingy.

Code:
fdformat /dev/fd0
mke2fs -m 0 /dev/fd0

dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
 
  


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 boot grub config file on SuSE theSandMan Linux - Newbie 3 01-19-2005 07:34 PM
Dual boot issues… Not SuSE, but Grub… LinuxHawk Linux - General 1 11-06-2004 10:41 PM
SuSE 9.1 XP Dual boot issue… Hung at < loading Grub > LinuxHawk Linux - General 1 10-29-2004 02:09 AM
SuSE not working out for me. How to remove it and grub? (dual boot w/98) thejmfc Linux - Newbie 10 07-07-2004 12:26 PM
dual boot SuSE / XP on seperate drives with GRUB uploadjoe Linux - Software 2 02-20-2003 11:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:47 AM.

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
Open Source Consulting | Domain Registration