LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools
Old 11-16-2009, 05:14 AM   #1
ggyyree
Member
 
Registered: Sep 2009
Location: London
Posts: 35
Thanked: 0
Question Dual boot Windows XP and OpenSuse


[Log in to get rid of this advertisement]
Hi there,

I met a problem with dual booting with WinXP and OpenSuse. I try to use Windows as the MBR which means I want to boot to WinXP as default, and Windows ntloader control the booting. I set the boot.ini under WinXP as,

Code:
[boot loader]
timeout=8
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
C:\linux.lnx="Grub Menu for OpenSuse 11"
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP 64-bit Pro SP3" /fastdetect
C:\GHLDR=One Key GHOST
then I copy the linux.lnx from the Linux below to connect the Linux Grub and Windows ntloader,

Code:
# mount -t vfat /dev/sda1 /mnt
# dd if=/dev/sdaY of=/mnt/linux.lnx bs=512 count=1
Last time it works fine to me; however, it doesn't work this time when I re-install a 64-bit version of Opensuse.

I don't know if it is a problem of 64-bit system or not. Should we still copy 512B of linux.lnx now?

Or my settings for OpenSuse boot is incorrect? When I install the OpenSuse, it asks something like below:

Code:
Boot from MBR?
Boot from root?
Boot from boot?
Boot from extended filesystem?
Which ones I should choose please?

Thanks a lot!
windows_xp_2003 ggyyree is offline     Reply With Quote
Old 11-16-2009, 06:44 AM   #2
soleil24
Member
 
Registered: Aug 2005
Location: Wellington NZ
Distribution: SuSE 11.1, Fedora 11
Posts: 37
Thanked: 2
Long time since I had win booting linux but iirc for that method to work, I'm pretty sure you'll need suse grub to be installed at root - because you're telling ntldr to hand off to "somewhere", that "somewhere" is the partition you've chosen as root so that's where grub needs to be. And that needs to be done before you do the copy of the front 512B of that partition.

Sure someone will correct me if my memory has got it wrong

Much easier to have grub run it all !!

IG
windows_xp_2003 soleil24 is online now     Reply With Quote
Old 11-16-2009, 10:15 AM   #3
ggyyree
Member
 
Registered: Sep 2009
Location: London
Posts: 35
Thanked: 0

Original Poster
Quote:
Originally Posted by soleil24 View Post
Long time since I had win booting linux but iirc for that method to work, I'm pretty sure you'll need suse grub to be installed at root - because you're telling ntldr to hand off to "somewhere", that "somewhere" is the partition you've chosen as root so that's where grub needs to be. And that needs to be done before you do the copy of the front 512B of that partition.

Sure someone will correct me if my memory has got it wrong

Much easier to have grub run it all !!

IG
Thanks, but refer to this link:

http://opensuse.swerdna.org/suseboot1.html

I have got a separate /boot then I need to choose 'Boot from boot',and I have already setup Grub at /boot; however, I don't know where I did something wrong. After ntloader shows the boot options:

Code:
-Grub Menu for OpenSuse 11
-Windows XP 64-bit Pro SP3
After I chose to boot OpenSuse nothing showed up. Windows XP could be login.

If I set the MBR to Opensuse then it can start...


Any other suggestions please post. Thanks a lot!
windows_xp_2003 ggyyree is offline     Reply With Quote
Old 11-16-2009, 05:33 PM   #4
yancek
Senior Member
 
Registered: Apr 2008
Posts: 1,041
Thanked: 91
Compare what you said you did in your first post, below:

Quote:
dd if=/dev/sdaY of=/mnt/linux.lnx bs=512 count=1
to what is suggested in the link you supplied:

Quote:
dd if=/dev/sda3 of=/mnt/windows/suse.bin bs=512 count=1
he copies the code in OpenSuse boot sector to a file named suse.bin in the root of the windows partition which is mounted at /mnt/windows, this file goes to the root partition in windows, usually referred to as: C:\. If you don't have the file there, it won't work.

Quote:
I have got a separate /boot then I need to choose 'Boot from boot',
I'm not sure what that means, do you have a separate boot partition or just the Opensuse root partition? If you have a separate boot partition, I don't think the instructions on your link account for that.
linux yancek is offline     Reply With Quote
Old 11-16-2009, 05:35 PM   #5
soleil24
Member
 
Registered: Aug 2005
Location: Wellington NZ
Distribution: SuSE 11.1, Fedora 11
Posts: 37
Thanked: 2
If you have a separate /boot partition and have put suse grub there, that's the partition you need to be copying the front 512B from to make your .lnx file - so the "/dev/sdaY" in your quoted code, Y needs to match the partition number for wherever /boot is (and is unlikely to be 1 as that will probably be your win partition)
windows_xp_2003 soleil24 is online now     Reply With Quote
Old Yesterday, 01:53 PM   #6
ggyyree
Member
 
Registered: Sep 2009
Location: London
Posts: 35
Thanked: 0

Original Poster
Weird!?

It works by just choose 'Boot from extended filesystem' without mount a /boot.

Anyone can explain this to me would be appreciate.

And thanks for all your help!
linuxsuse ggyyree is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
OpenSuSE 11 on REAL raid / Dual Boot with Windows XP lpallard Linux - Laptop and Netbook 8 11-18-2008 08:20 PM
[Help] Windows Vista and OpenSuse 10.3 Dual Boot edgartech Suse/Novell 11 02-15-2008 12:23 PM
partitioning for dual boot - windows xp and opensuse 10.3 floren Linux - Newbie 1 12-22-2007 03:05 AM
dual boot openSuse 10.2/Windows XP from scratch Ultrus Suse/Novell 6 05-28-2007 10:03 PM
Why dose my internet work in windows but not in opensuse 10.2 on a dual boot computer jennylschofield Linux - Wireless Networking 6 04-22-2007 12:11 AM


All times are GMT -5. The time now is 06:06 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration