LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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


Reply
  Search this Thread
Old 01-09-2004, 03:47 PM   #1
justiceisblind
Member
 
Registered: Jan 2002
Location: Stevens Point, WI
Distribution: Mandrake 10.0 (P4 2.8 w/ HT, Radeon 9700 Pro, 80 GB/120GB HDDs)
Posts: 242

Rep: Reputation: 30
Adding Linux to Windows XP bootloader


How do I change my Windows XP bootloader to add Linux?
 
Old 01-09-2004, 04:03 PM   #2
vikrampant
LQ Newbie
 
Registered: Jan 2004
Location: Maryland, USA
Posts: 5

Rep: Reputation: 0
Cut/paste from http://www.ucolick.org/~zingale/linux_ibmr31/

FWIW, I use GRUB to dual boot between RH and WinXP and another machine between RH and W2K.

-------------------

By placing the bootloader on the first sector of the boot partition, instead of the MBR, the GRUB screen does not come up when you reboot. We need to use the Windows XP bootloader (because of that damn NTFS) to get things working properly. Insert the first Redhat CD and reboot. Type 'linux rescue' at the prompt. It should find your Linux installation, mount it under /mnt/sysimage/, and drop you into a BASH shell.

Below are the steps required to get the Windows XP bootloader booting Linux for you. I more or less followed the tips at this R30 Linux page. The main difference is that our XP partition is NTFS. Remember that FAT32 partition we created -- we need it here (since there is no floppy drive on the R31).

* Type 'chroot /mnt/sysimage' to make your 'rescued' Linux installation the default root directory.
* Mount the FAT32 partition by making a /mnt/vfat directory ('mkdir /mnt/vfat'), and then 'mount -t vfat /dev/hda5 /mnt/vfat'.
* Now create a file bootsect.lnx containing the first 512 bytes of the Linux boot partition using dd, 'dd if=/dev/hda4 of=/bootsect.lnx bs=512 count=1'
* Copy this file onto the FAT32 partition so XP will be able to see it, 'cp /bootsect.lnx /mnt/vfat'. Boot into Windows XP and move that file into c:\Linux\.
* Now open a DOS shell, and make boot.ini writable ('attrib -h -r -s boot.ini'), edit it (with edit), and add c:\Linux\bootsect.lnx="Linux" to the end of the file (right after the "Windows XP Home Edition" line in the [operating systems] section).
* Make that file hidden again (attrib +h +r +s boot.ini), and reboot. The Windows XP boot loader should have a line for Linux, and when selected, that should load GRUB.

------------

Hope this helps
-- Vikram
 
Old 01-09-2004, 04:17 PM   #3
Carson
LQ Newbie
 
Registered: Jan 2004
Location: Vancouver, Canada
Posts: 2

Rep: Reputation: 0
"That damn NTFS" is an extremely good file system. It's also one of M$'s triumphs which Linux hasn't been easily able to imitate. It's easily changed back and forth in XP for FAT32 while any partition is being formatted. (Except FAT32 has an upper limit of 32 Gigs; NTFS partitions don't have that limit.) To go from NTFS to FAT32 in a partition with data is not a done thing, but apparently Partition Magic can handle it. (The only reason you'd want to is so Windows 9x can see XP files. But it's better to share data files in a separate FAT32 partition, where all OSs can read them.)

The Windows bootloader, much maligned by Linux, is just as sophisticated as Linux's, can handle any OS PLUS deal with NTFS, and works so smoothly that most people never run into boot issues until they encounter Lilo, which is in intrusive nightmare. GRUB is a big step in the right direction.

However, if you wanted to use Windows boot loader and still have a prettier menu, you could always add the freeware BOOT-US, which also handles most OSs, and can work in conjunction with Windows boot loader. It does remain true, however, that all the boot experts are Linux users, who've had to become experts when they've learned the hard way. Multi-boot complexities in Windows just don't wreck MBRs.

Last edited by Carson; 01-09-2004 at 04:29 PM.
 
Old 01-25-2004, 03:36 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,995

Rep: Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218
The above should work fine - I always load via the NT loader.
As a matter of convenience, you can always have an entry for your XP system in GRUB.CONF (another vote for Grub rather than Lilo).
So that way you use the Windows loader to select/default Linux to launch Grub Stage 2,to give you the option of Linux or Windows ..
Sounds round-about, but is sometimes handy - and you can always time them out.
 
Old 01-25-2004, 04:27 PM   #5
stevoman098
Member
 
Registered: Jan 2004
Distribution: Topologilinux, Fedora Core 1, WinXP
Posts: 41

Rep: Reputation: Disabled
Mine is currently set up to boot into grub, select winxp or fedora, if i choose winxp it goes to the windows bootloader, which i dont see due to only having xp on that bootloader
 
Old 01-25-2004, 04:36 PM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Quote:
That damn NTFS" is an extremely good file system. It's also one of M$'s triumphs which Linux hasn't been easily able to imitate.
Yeah.. How much longer are we gonna have to wait untill linux ext file system fragments itself all over the place, and grinds to a hault over the months...

since i dumped windows, ive not had the pleasure of defragmenting my system and watching those little squares for hours on end...

GodDamn it.. Linux Sucks.. and so does Sarcasm

hehehehehe.

ive always HATED ntfs with avengence, ive stuck to vfat wherever possible.
once i found a 7meg system file fragmented into 60 pieces on an ntfs drive that was 6 gigs in sixe, and only 2 gigs in use.... madness !!!

hopefully (for windows users) this new FS for longhorn will be better.
 
Old 01-25-2004, 05:05 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,995

Rep: Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218Reputation: 2218
Quote:
Originally posted by stevoman098
Mine is currently set up to boot into grub, select winxp or fedora, if i choose winxp it goes to the windows bootloader, which i dont see due to only having xp on that bootloader
I think you'll find that the chainloading is actually doing that for you.
Otherwise you'd bounce back and forward between the two bootloaders, and never get anywhere.
 
  


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
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 10:55 PM
Hacker installed a Linux bootloader on my Windows system mazzy Linux - Newbie 24 07-25-2005 03:57 AM
Windows + (2 x Linux) = Bootloader? timelord726 Linux - General 6 08-13-2004 01:28 PM
how to hide GRUB bootloader while booting a duel boot system ( linux/windows ) ? dommini Linux - General 0 12-03-2003 04:48 AM
Deleted all my bootloader stuff from windows/linux system jimdaworm Red Hat 2 09-04-2003 06:54 PM

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

All times are GMT -5. The time now is 08:22 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration