LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 10-19-2004, 02:04 PM   #1
theewolizer
LQ Newbie
 
Registered: Sep 2003
Location: Indonesia
Distribution: Redhat and Suse
Posts: 12

Rep: Reputation: 0
Boot Linux Suse using boot.ini from Windows XP


I have linux suse on my computer, but i want boot it from xp boot loader. what files i have to copy from linux CD into my windows XP partition, and how i write the boot.ini in windows XP.... thanx...........
 
Old 10-19-2004, 02:50 PM   #2
Mystical Itachi
Member
 
Registered: Oct 2004
Posts: 65

Rep: Reputation: 15
Ive been wondering the same question....

I wanna be able to boot Linux when i want too using the XP boot thing.. like when you press F5 when booting and it give you options on what to do..well i want linux to be in that option.

how? O_o
 
Old 10-19-2004, 03:53 PM   #3
GaryM
LQ Newbie
 
Registered: Oct 2004
Location: Spokane, WA USA
Distribution: RedHat
Posts: 7

Rep: Reputation: 0
Assuming Windows is already installed, when you install Linux (on its own partition) you'll get an option to install GRUB (the Linux boot loader) either on the MBR or on the first sector of the Linux partition. Choose the latter (if you choose the former, you'll overwrite the Windows boot loader). Once Linux is running, you can use a utility called dd to copy the boot sector to a file on a floppy. See the dd man page for syntax. Or if you have a raw disk editor, such as NtExplorer, use it to locate the Linux boot sector and copy it to a file. The file will be exactly 512 bytes.

Then add a line in boot.ini pointing to the file, like so:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Windows XP Professional x64 Edition" /noexecute /fastdetect
c:\linuxboot.bin="Redhat Enterprise Linux 3.94 beta" /fastdetect

Last line is the new one. Doesn't matter what you call the file.

You can get NtExplorer (disk manager) from http://www.runtime.org. Free version won't let you write back to the disk, but you can write to a file.

BTW, if you have any weird drives connected (RAID, etc) that you're not using for the install, you oughta disconnect them before installing Linux. My RAID drives confused GRUB when I installed it.
 
Old 10-19-2004, 04:15 PM   #4
Mystical Itachi
Member
 
Registered: Oct 2004
Posts: 65

Rep: Reputation: 15
What if i dont install grub?? can i just add that line to the XP boot ini so i can load SUSE??
 
Old 10-19-2004, 08:35 PM   #5
dubonbacon
LQ Newbie
 
Registered: Oct 2004
Location: Canada
Distribution: None at this time :(
Posts: 2

Rep: Reputation: 0
Unhappy can't be done

Just forget about it, I dont think you will ever be able to boot linux using a MICROSOFT windows boot loader ... it can't read linux partitions, you can't specify a kernel, etc. You'll have to use a linux boot loader or some other commercial product if you wish ( )
 
Old 10-19-2004, 08:46 PM   #6
GaryM
LQ Newbie
 
Registered: Oct 2004
Location: Spokane, WA USA
Distribution: RedHat
Posts: 7

Rep: Reputation: 0
Windows doesn't have to be able to read Linux partitions. It only has to read that file you point to in boot.ini. It will load that, and Linux will taker over from there. If you aren't using GRUB, you'll probably be using LILO. I haven't tried it with LILO, but it should work the same: Locate the GRUB or LILO boot sector (should be the first sector in your Linux partition), copy it to a file, place that file on the main Windows partition in c:\, then point to it in boot.ini, per my previous post.
 
Old 10-20-2004, 08:48 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,642

Rep: Reputation: Disabled
Works with both LILO and GRUB, I do it since SuSE 6.4 . Type
Code:
dd if=/dev/hdxy of=/path/and/file-name bs=512 count=1
    with x=device-number and y=partition-number where
    your boot-loader resides...
and put the resulting file on your C: drive as described in the earlier posts. (I can even switch beween NT-loader and GRUB boot menus until I'm dizzy ).

@dubonbacon
You don't ask the Win-loader, you tell it to .

Last edited by JZL240I-U; 10-20-2004 at 08:51 AM.
 
Old 10-21-2004, 03:55 AM   #8
straytech
LQ Newbie
 
Registered: Sep 2003
Location: Somewhere in Canada
Distribution: Slackware, Ubuntu
Posts: 14

Rep: Reputation: 0
bootpart.exe for booting linux from XP

bootpart.exe is a handy dandy little utility to do what the dd command in the previous post does, only this works in windows and edits the boot.ini for you.

http://www.winimage.com/bootpart.htm
 
Old 10-21-2004, 11:39 AM   #9
mtaylor57
Member
 
Registered: Jun 2004
Location: Houston
Distribution: Suse, Redhat
Posts: 48

Rep: Reputation: 15
That's a great write-up GaryM, but why would anybody want to do this, when Grub, or Lilo could simply give you the option to boot into Windows anyway? It seems to me that boot.ini would point to grub, and then let grub take over. This just seems to be the same thing to me...

 
Old 10-21-2004, 11:49 AM   #10
theewolizer
LQ Newbie
 
Registered: Sep 2003
Location: Indonesia
Distribution: Redhat and Suse
Posts: 12

Original Poster
Rep: Reputation: 0
Hmmmmmm.......

Thanx for all..........i know i can use lilo or grub from linux, but i want to know the other way to boot linux from windows bootloader. Windows can't read linux partition, but in linux cd there is some file that can read in windows, so this file can load linux.
 
Old 10-21-2004, 01:11 PM   #11
GaryM
LQ Newbie
 
Registered: Oct 2004
Location: Spokane, WA USA
Distribution: RedHat
Posts: 7

Rep: Reputation: 0
Quote:
Originally posted by mtaylor57
That's a great write-up GaryM, but why would anybody want to do this, when Grub, or Lilo could simply give you the option to boot into Windows anyway? It seems to me that boot.ini would point to grub, and then let grub take over. This just seems to be the same thing to me...

Yup -- you can also set up dual booting via GRUB or LILO. But he asked about doing it from Windows. Either way works (usually :-)). As for boot.ini pointing to GRUB, that is what the method I described is doing.
 
  


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
How to Edit boot.ini for linux AS 3? sathyguy Linux - Enterprise 3 11-19-2005 01:36 AM
Dual Boot - XP & Suse 9.1 - Need help with boot.ini johnnytriumph Linux - Newbie 1 04-05-2005 06:18 AM
edit windows boot ini to allow booting to lilo V_LESTAT Linux - Newbie 2 01-15-2004 06:58 PM
Can boot.ini be used to boot linux? sallas Linux - Newbie 3 09-19-2003 09:33 AM
boot.ini rewriten, cant boot to linux ragecyr Linux - Newbie 7 07-04-2003 01:10 PM


All times are GMT -5. The time now is 02:15 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