LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux 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


Closed Thread
  Search this Thread
Old 11-09-2005, 04:48 PM   #1
DSargeant
LQ Newbie
 
Registered: Nov 2005
Distribution: Mandriva 2006
Posts: 21

Rep: Reputation: 15
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology


SOLUTION
This muli-boot or dual boot method requires no Linux terminology or linux knowledge.
It's all done in Windows.

If your computer bypass Lilo or Grub and goes striaght to Windows
this is definitely for you

What you will need
---------------------
1. Download Mbrwiz.exe (freeware) -Google It
Note: Bootpart doesn't work on all Distros

2. Floppy or Flashdrive

3. Lilo or Grub (already installed on Linux)
[Most modern Distros include Lilo or Grub in the basic install nowadays]
---------------------

BEGIN
1. Boot to Windows
2. Open the Command Prompt
3. Extract Mbrwiz into C Drive


General Functions of MBRWiz

C:\>mbrwiz
MBRWiz - Version 1.52 for Windows XP/2K/PE November 13, 2003
Copyright (c) 2002-2003 Roger Layton

Usage: MBRWiz [/option]
/List List MBR Entries
/Disk=# Selects the disk to use. 0 is used if not specified
/Hide=# Hides the Partition number specified by #, or * for all
/Unhide=# Unhides the Partition number specified by #, or * for all
/Active=# Activates the Partition specified by #
/Inactive=# De-activates the Partition number specified by #, or * for all
/Del=# Deletes the partition specified by #
/Wipe=# 1=Wipes the MBR, 2-Wipes the first 63 sectors of disk
/Save=x Saves the MBR to filename 'x'
/Restore=x Reads and restores the Disk MBR from filename 'x'
/ShowFile=x Shows contents of an existing MBR backup file named 'x'
/BootMenu Allows user to select an active partition from a menu
/Sort Sort MBR Entries by disk location
/IsSorted Returns 0 if MBR partitions are already sorted
/Shutdown=# 1-Forces OS shutdown, 2-Forces OS Reboot
/Result Shows Errorlevel code

All funtions return 0 on success, > 0 on error

STEP BY STEP INSTRUCTIONS

I. START (All OS must be already Installed on the drives or partitions)
(2 drives Method)
Example,

C:\>mbrwiz /list
Note: Results
MBRWiz - Version 1.52 for Windows XP/2K/PE November 13, 2003
Copyright (c) 2002-2003 Roger Layton

Disk: 0 Size= 76G
Pos MBRndx Type/Name Size Active Hide Start Sector Sectors
--- ------ ---------- ---- ------ ---- ------------ ------------
0 0 07-NTFS 76G Yes No 63 156,280,257

Disk: 1 Size= 38G
Pos MBRndx Type/Name Size Active Hide Start Sector Sectors
--- ------ ---------- ---- ------ ---- ------------ ------------
0 0 83-Linux 6.0G Yes No 63 12,284,937
1 1 05-FAT16x 32G No No 12,285,000 65,889,180

End of example

Note:
Disk:0 = Hard Drive 1st (WindowsXP Already Installed)
Disk:1 = Hard Drive 2nd (Mandriva Linux Already Installed)

In my results, mbrwiz says my linux is in Disk:1 and It's Active and type 83


II. BACKUP MBR (two drives)

(Immediately)

Backup (if no floppy,use the flashdrive (F)
C:\>mbrwiz /disk=0 /save=A:\Backupfilename.bin
C:\>mbrwiz /disk=1 /save=A:\Backupfilename2.bin

To restore(done at the end)
C:\>mbrwiz /disk=0 /restore=A:\Backupfilename.bin
C:\>mbrwiz /disk=1 /restore=A:\Backupfilename2.bin



III. SAVE BOOTSECTOR (Linux Drive)
C:\>mbrwiz /disk=1 /save=A:\Linuxboot_filename.lnx

(if no floppy,use the Flashdrive(F)


IV. CHECK[optional]
-
Example,

C:\>mbrwiz /showfile=A:\Linuxboot_filename.lnx
MBRWiz - Version 1.52 for Windows XP/2K/PE November 13, 2003
Copyright (c) 2002-2003 Roger Layton

Displaying contents of MBR from file:
A:\Linuxboot_filename.lnx

Pos MBRndx Type/Name Size Active Hide Start Sector Sectors
--- ------ ---------- ---- ------ ---- ------------ ------------
0 0 83-Linux 6.0G Yes No 63 12,284,937
1 1 05-FAT16x 32G No No 12,285,000 65,889,180

End of example.

Is it the same as the mbrwiz /list command? Yes

Additional Info:
To prove Bootpart wrong try this with bootpart lnx or bin file
--bootpart file will display unknown drives

V. COPY TO WINDOWS
Example,
A:\>copy Linuxboot_filename.lnx c:
1 file(s) copied.


VI. RESTORE (two drives)
C:\>mbrwiz /disk=0 /restore=A:\Backupfilename.bin
C:\>mbrwiz /disk=1 /restore=A:\Backupfilename2.bin



VII. BOOT.INI
Backup
C:\>copy boot.ini a:

Edit
C:\boot.ini

Example,

[boot loader]
timeout=30
default=signature(eb86f6dd)disk(1)rdisk(0)partition(1)\WINDOWS
[operating systems]
signature(eb86f6dd)disk(1)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
C:\Linuxboot_filename.lnx="Anyname here"


end of example

Do not change the following information
this information varies in computers
-------------------------
default=signature(eb86f6dd)disk(1)rdisk(0)partition(1)\WINDOWS
[operating systems]
signature(eb86f6dd)disk(1)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
-----------------


Include quotes in "Anyname here"
Make sure timeout=30

Save file

do not rename "boot.ini" ever

Now Restart

VIII. FINISH
Now when your computer restart you will get the following option


Microsoft Windows XP Professional
Anyname here

IX. CLOSING
if not satisfy
A:\>copy boot.ini c:

if you need partitions instructions Reply to let me know
remember it's all done in Windows
 
Old 11-09-2005, 04:50 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Since we tend to install a bootloader during our Linux install, why would we need this?
 
Old 11-09-2005, 05:04 PM   #3
DSargeant
LQ Newbie
 
Registered: Nov 2005
Distribution: Mandriva 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Some Newbies have trouble using Lilo or Grub. too much Linux terminology for a newbie. Some Windows OS such as XP overwrite the MBR and makes it difficult to boot into Linux or bypass linux boot loader. If Windows is installed after Linux then it doesn't boot into Linux.
 
Old 11-09-2005, 07:42 PM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
During a Linux installation it is the installer's duty to check every partition and include it for booting if a boot loader is detected. Thus dual booting is automatic without lifting a finger when a Linux is properly installed.

M$ use a common MBR for all DOS and Windows. Thus a DOS floppy can be used to restore XP's MBR. (Just type fdisk /mbr on boot up the DOS floppy) so the fear of losing XP's MBR is due to pure ignornace.

Every unbootable Linux can be accessed by another Linux so using a Live CD or another installed distro can rescue a distressed Linux and restore its boot loader. Installing Windows before or after the Linux is totally irrelevant.

This post is informative but lack of the understanding that between ntldr (XP/Win2k boot loader), Lilo and Grub the ntldr requires the most effort and is capable of booting the least number of systems. ntldr is also not known to be able to boot more than one DOS-based system.

As a simple example a Grub floppy, unattached to an operating system, can boot every PC system produced by M$ using just 3 lines of nearly indentical commands (only the partition number altered).

If that is not enough the same floppy can also be used to boot every Linux, BSD and I tried it on Solaris 10 too.

I am also using ntldr but found it cannot boot more than 10 systems. Lilo can manage 15 but Grub is booting more than 50+ in my box.

All ntldr, Lilo and Grub can boot each other in the same box. Using one boot loader to boot another is technically known as chainloading.

Comparing the effort for dual booting, say the Windows is in partition /dev/hda1

Lilo can dual boot Windows using 2 lines of command

other=/dev/hda1
label=Windows

Grub needs only 3 lines dual boot Windows

title this is my Windows in hda1
root (hd0,0)
chainloader +1

Only by comparison one understand the shortcoming of a system.
 
Old 11-10-2005, 11:37 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php


http://www.linuxquestions.org/questi...hreadid=381578
 
  


Closed Thread



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
Solution Dual Boot Windows & Linux [ALL DONE IN WINDOWS] No Linux terminology DSargeant Linux - Newbie 35 02-07-2006 03:29 PM
Need Help Loading Windows XP & SuSe Linux version 8.2---to Make a Dual Boot System Howerton Linux - Newbie 7 09-23-2004 02:49 PM
Linux/Windows dual boot with Windows re-install dhowell1129 Linux - Newbie 6 04-25-2004 04:21 AM
On Windows and LInux dual boot - why install Windows first? yanar99 Linux - Newbie 13 12-18-2003 09:20 AM
Linux & Windows 98SE dual boot... will defrag mess up linux partition? herrtool Linux - General 5 10-31-2003 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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