LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-19-2003, 11:58 AM   #1
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Rep: Reputation: 30
boot using nt loader


i found this at groups.google.com

####################################
I just succeeded (after some fits and starts) in setting up a dual-boot
XP, Red Hat 7.1 installation. I believe you have no choice but to
re-partition the hard drive since Linux won't run on the NTFS file
system. But that's really the only bad news. Setting up ext-2 file
system partitions using Partition Magic (downloadable from PowerQuest
for about $69) is pretty easy and foolproof; I've done it several times
now with no data loss. I set up the partitions the way the Red Hat
installation guide recommends (a small /boot partition, a swap partition
and a root partition), and then installed Red Hat from the CD. The only
tricks there are that you have to do a "custom" installation because
that's the only one that will let you put LILO in the boot sector of
your Linux partition--the program picks the right place--rather than in
the master boot record of the hard drive. Mr. Gates reserves the master
boot record for his OS, since Win2000. During the installation, use
Disk Druid only to edit the partitions (by adding the appropriate mount
points for /boot and /), not to create any partitions. The rest should
go smoothly until you get to the option of creating a boot disk. Do
this--otherwise you can't ever get back to the Linux partitions.
You can stop there and always use the boot disk to get to LILO and
linux, but that's kind of primitive (and slow). The better option is to
first go into Linux and copy the first sector of the /boot partition to
a floppy. Remember to mount the floppy first, then use:
dd if=/dev/hda5 bs-512 count=1 of=/mnt/floppy/bootsect.lin
That is, you create a file named bootsect.lin on the floppy, assuming
the original boot sector is on hda5. (You can check its hda?? using
fdisk or partition magic or the windows drive manager, or, better still,
remember it from disk druid.)
After that you reboot without your boot disk and when WinXP comes up,
you copy bootsect.lin off the floppy into C:\ and then you edit
C:\boot.ini by adding the following line at the bottom:
C:\bootsect.lin="Linux"
That's it. When you reboot again, the Windows boot manager will offer a
choice of Windows XP or Linux, and selecting Linux should kick you over
to Lilo which should just default to Linux and off you go. You can fool
around with the default parameters in boot.ini if you want it to go
faster or default to Linux instead of XP, but you don't really have to.
After you get to Linux, you're on your own as far as I'm concerned. I
just arrived there myself.
"Brian K. Quade" wrote:

########################################

and then i try it but i cant boot into linux using ntbootloader

what is the way to let me boot into linux using ntbootloader?

i have hda9=/boot hda10=swap and hda11= / partition

thank you!
 
Old 09-19-2003, 03:48 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
This HOWTO provides the same method, but with more details: http://www.tldp.org/HOWTO/Linux+NT-Loader.html

What is the current state? You've got both systems installed, right? You need a bootdisk or installation cd (in 'rescue' mode). What you need to do is to edit your lilo.conf (or grub.conf, depending on the bootloader you use). If you're using lilo edit /etc/lilo.conf and change
boot=/dev/hda
to something like
boot=/dev/hda9
Then run 'lilo' (as root). Now
dd if=/dev/hda9 bs-512 count=1 of=/mnt/floppy/bootsect.lin
(you can use any other file to dump it to, if you don't use NTFS, you can write the file directly to Windows, for example
dd if=/dev/hda9 bs-512 count=1 of=/mnt/windows/bootsect.lin
if you have Windows C: in /mnt/windows).
Now reboot to NT and edit its boot.ini.
 
Old 09-19-2003, 07:35 PM   #3
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
##########################################
prompt
timeout=50
default=linux
boot=/dev/hda5
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.20-8
label=linux
initrd=/boot/initrd-2.4.20-8.img
read-only
append="root=LABEL=/"

other=/dev/hda1
optional
label=DOS

##########################################
DEVICE START END SIZE(MB) TYPE
>/dev/hda
>hda2 1276 7476 48634 MB Extended
hda5 1276 1288 102 MB ext3
hda6 1289 1364 596 MB linux-swap
hda7 1365 2550 9303 MB ext3
hda8 2551 3825 10001 MB ntfs
hda9 3826 5100 10001 MB ntfs
hda10 5101 6375 10001 MB fat32
hda11 6376 7475 8629 MB fat32
7476 7476 8 Free space
hda1 1 1275 10001MB ntfs

#######################################

in my boot.ini i've edited and looked like
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
c:\bootsect.lin="Linux"

when try to boot into linux it wont work.

BTW the command above cant work
dd if=/dev/hda9 bs-512 count=1 of=/mnt/windows/bootsect.lin
i've changed to
dd if=/dev/hda9 bs=512 count=1 of=/mnt/windows/bootsect.lin
coz the dd --help says to use "=" instead "-"

help me in this!
 
Old 09-21-2003, 05:35 AM   #4
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
hey its me again...
i have successfully got my nt loader up and working now..
thanx for your help..

i reinstall linux and installed GRUB in hda5.
previously i used lilo in hda5..
thanx alot
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 05:45 PM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Red Hat 1 09-25-2005 07:08 AM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Linux - General 1 09-25-2005 07:07 AM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-12-2004 11:40 PM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:43 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
Open Source Consulting | Domain Registration