LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-07-2005, 07:16 PM   #1
dhawal_kv
LQ Newbie
 
Registered: Jun 2005
Location: India
Distribution: Currently I'm using Windows 2000 SP4 -:)
Posts: 4

Rep: Reputation: 0
load linux using ntldr


i just installed red hat enterprise linux 4 ws. since i also use windows 2000 i wanted to load linux from windows' loader itself, so i didnt install linux loader on the MBR....i found several webpages statin how to boot linux from ntldr, so i decided to do it..but it doesnt work...one o fthe webpage told to modify grub.conf from /etc but it nowhere to be found....now i'm not able to boot linux normally and have to do it from the rescue mode...but since i'm just a beginner i dont know how to go to the GUI....and so i need help regarding this problem....i just want to boot linux (RHEL Enterprise LInux 4 WS) from ntldr. i have installed grub loader..also tried dd command, but couldn't solve the problem...does anyone have a solution??
 
Old 09-07-2005, 07:35 PM   #2
moistTowelette
Member
 
Registered: Sep 2003
Posts: 79

Rep: Reputation: 15
How have you got your installations set up - one physical drive with multiple partitions, or different operating systems on separate physical drives?
 
Old 09-07-2005, 07:42 PM   #3
mayhemt
Member
 
Registered: Sep 2005
Location: irving TX
Distribution: SuSe, Kubuntu, Win$ucks
Posts: 50

Rep: Reputation: 15
download explore2fs & use it (in windows) to copy out ur kernel to DOS/windows partition
http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm

download program called loadlin...its a DOS exe...u need to supply paramters of disk where / is at & the above kernel to start linux.. (who needs boot floppies!!!!)
http://elserv.ffm.fgan.de/~lermen/

finally ur command should be somthing like this

C:\LOADLIN\LOADLIN C:\LOADLIN\ZIMAGE root=/dev/hdb2 ro vga=3

enjoy!!!!
 
Old 09-07-2005, 07:46 PM   #4
dhawal_kv
LQ Newbie
 
Registered: Jun 2005
Location: India
Distribution: Currently I'm using Windows 2000 SP4 -:)
Posts: 4

Original Poster
Rep: Reputation: 0
i have 2 hard disks. one has win 98 and w2k on it and on the other i have installed linux. there i made 3 partitions - root, boot, and swap. the partitions are as follows:
/ hdd8
/boot hdd6
 
Old 09-19-2005, 02:00 PM   #5
dhawal
LQ Newbie
 
Registered: Feb 2005
Distribution: Redhat Enterprise Linux 4 WS, Ubuntu 5.10
Posts: 11

Rep: Reputation: 0
still it doesn't work
 
Old 09-19-2005, 07:26 PM   #6
mayhemt
Member
 
Registered: Sep 2005
Location: irving TX
Distribution: SuSe, Kubuntu, Win$ucks
Posts: 50

Rep: Reputation: 15
i dont know hows it gonna work under win2k..
but for win98..u need to come under pure dos prompt..not start>run>cmd one..but
1. hit F8 while booting & then command prompt OR
2. when windows comes up..shutdown>exit to dos prompt
& then (make sure u have copied the kernel image (file /boot/vmlinuz-x.y.z) from the ext2 parition into C:\loadlin folder ..u can use explore2fs for that...) in this example i m assuming u copied the vmlinuz-x.y.z as bzimage....any name should work..
C:\LOADLIN\LOADLIN C:\LOADLIN\BZIMAGE root=/dev/hdd8 ro vga=3
loadlin site has excellent documentation about all params..refer to them & enjoy!
 
Old 09-20-2005, 01:30 AM   #7
tskears
Member
 
Registered: Apr 2005
Location: Ottawa, Canada.
Distribution: PCLinuxOS.
Posts: 122

Rep: Reputation: 15
You can do this by copying the Linux boot record to a file, then calling that file from ntldr.

Start your Linux Installation and install LILO or GRUB into the boot sector of your Linux partition, not in the MBR.

Make a boot floppy during the Linux installation so that you can boot back into Linux if things go pearshaped.

Now boot into Linux and copy a boot image from the boot sector. To do this run:

dd if=/dev/hdxy of=/(device)/linux.bin bs=512 count=1

where /dev/hdxy is the location of the boot sector of your Linux partition and linux.bin will be your Linux boot image. Then copy linux.bin to C:\ in your Windows partition.

If your Windows partition is vfat, you can do the copy directly using
of=/dev/(windowspartition)/linux.bin,
or via a floppy disk using of=/dev/fd0/linux.bin

Edit c:\boot.ini and append the following line: c:\linux.bin="Linux".

Reboot your system and boot directly from the hard disk.

ntldr should start with a "Linux" option, as well as Windows.
 
Old 09-20-2005, 05:41 AM   #8
Draygo
Member
 
Registered: May 2004
Location: Frisco, TX
Distribution: Debian Unstable
Posts: 73

Rep: Reputation: 15
The above should work as i use it on laptop. Thing to note.

1. Any time the linux boot loader is updated and the linux MBR is updated you will have to rerun the dd command to get a new copy of the MBR and copy it to where ever you place it.

2. Keep a bootable linux floppy around. There have been many times where i update lilo and completely forgot to copy the MBR over. This floppy will save you some frustration.
 
  


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
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Linux - Newbie 15 10-21-2005 11:29 AM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Red Hat 1 09-25-2005 08:08 AM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Linux - General 1 09-25-2005 08:07 AM
booting linux from ntldr Harpune Linux - General 3 10-04-2002 04:04 PM
ntldr for linux Skidmark Linux - Software 9 12-27-2001 07:35 PM


All times are GMT -5. The time now is 11:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration