LinuxQuestions.org
Register a domain and help support LQ
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 10-06-2006, 11:53 AM   #1
Xogede
LQ Newbie
 
Registered: Jun 2006
Distribution: Mandriva PowerPack 2007 x86_64
Posts: 5

Rep: Reputation: 0
"NTLDR not found" when trying to boot Linux (Mandriva PowerPack 2007) from NTLDR


I have followed this guide: enterprise.linux.com/article.pl?sid=05/02/16/1919205
to load Linux from NTLDR, with the following bootpart command:
Code:
bootpart 6 C:\bootsect.lnx "Linux Mandriva 2007"
(6 is my linux drive according to bootpart, and I installed GRUB to that drive)
However, when I try to boot into Linux, I get "NTLDR not found".
How can I fix this?

Last edited by Xogede; 10-06-2006 at 04:31 PM.
 
Old 10-06-2006, 12:23 PM   #2
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
I know this won't fix your problem, but if there is one thing Linux does well is be nice to your MBR. Loading in this way is very "old fashion".
 
Old 10-06-2006, 12:51 PM   #3
slacard
Member
 
Registered: Sep 2003
Location: Upstate NY
Distribution: OS X, Zenwalk. Sabayon x64, Debian 4.0 x64
Posts: 93

Rep: Reputation: 15
I think you need to post your drives and their boot order plus the partition you have mandivia installed to.
How did you install grub and where?
For you to be able to load from the windows bootloader you need to install grub to the partition your install is on (the root partition) NOT the MBR.
A live/rescue cd will allow you to work on and/or inspect your install.
 
Old 10-06-2006, 04:04 PM   #4
Xogede
LQ Newbie
 
Registered: Jun 2006
Distribution: Mandriva PowerPack 2007 x86_64
Posts: 5

Original Poster
Rep: Reputation: 0
Boot order:
1. Floppy
2. CD
3. Hard Drives (1. hdd 2. sda)
4. Removable Devices.

mount name letter other
hdd:
/mnt/win_c hdd1 M
/mnt/win_d hdd2 C System
/mnt/win_e hdd3 V
/mnt/win_f hdd4 F Windows
sda:
/ sda2 Mandriva, GRUB
/mnt/win_c2 sda5 X
swap sda6
/home sda7

(As you can see,) I installed GRUB and Mandriva on the the same partition.

I know it's old fashion, but I somehow feel more comfortable with NTLDR (besides, It's supposed to work!).
 
Old 10-06-2006, 04:23 PM   #5
slacard
Member
 
Registered: Sep 2003
Location: Upstate NY
Distribution: OS X, Zenwalk. Sabayon x64, Debian 4.0 x64
Posts: 93

Rep: Reputation: 15
Here is: http://www.geocities.com/epark/linux...w2k-HOWTO.html
another howto on doing what your attempting to do.
I haven't done this in some time now because I don't run windows anymore but it does work if set up correctly.
What exactly is giving you that "NTDLR not found" message? Sounds like it could be a improper edit someplace.
Re-looking at that line I quoted here-there's a typo there, and I copied and pasted from your orginal post. It should be NTLDR not NTDLR. Check the files you edited for a typo.

Last edited by slacard; 10-06-2006 at 04:30 PM.
 
Old 10-06-2006, 04:37 PM   #6
Xogede
LQ Newbie
 
Registered: Jun 2006
Distribution: Mandriva PowerPack 2007 x86_64
Posts: 5

Original Poster
Rep: Reputation: 0
Does this mean I have to make a separate /boot partition (the rest of the guide seems to be the same)? What does it matter?

First (when I choose to load Linux), Bootpart displays its "about" information, then a blank line, then "NTLDR not found.
Press any key to continue..." (and when I press a key, nothing happens)

I've checked the only file I edited, boot.ini, about a zillion times now.

Last edited by Xogede; 10-06-2006 at 04:42 PM.
 
Old 10-06-2006, 05:34 PM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I have summarised the method of using NTLDR booting Linux in Task E4 in the last link of my signature.

In order to NTLDR to boot a Linux you also need to copy the first 512 bytes of Grub from its root partition and made it availbale in the "C" drive.

This is because MS systems do not support Linux and are not willing to read a Linux partition to load its boot loader. Therefore you must copy Linux boot loader first 512 bytes into the "C" drive so that NTLDR can pass the control. I believe your error was due to NTLDR fails to continue as its control could not be passed to Linux's Grub.

Putting Grub inside the root partition is the correct way to arrange the Linux to be chainloaded by another system. There is no necessity to use a separate partition for /boot. Every partition has a boot sector in the beginning and Grub will be placed there if it is destined for root partition and not the MBR.
 
Old 10-07-2006, 02:39 AM   #8
Xogede
LQ Newbie
 
Registered: Jun 2006
Distribution: Mandriva PowerPack 2007 x86_64
Posts: 5

Original Poster
Rep: Reputation: 0
I also think that is why NTLDR fails. However, I have done all that (which I wrote alreday in my first post, bootpart does the same as dd).

BTW, there seems to be a typo in your guide, there sould be a = between the filename and the OS name:
C:\boot_hda8.lnx="My New Linux in hda8"

Last edited by Xogede; 10-07-2006 at 02:41 AM.
 
Old 10-07-2006, 04:08 AM   #9
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Thanks for pointing out the topo error in my link. Yes there was a "=" missing and I have since corrected it.

The problem of NTLDR is it need a bootable and working Linux before it can boot it. If the Grub is not properly installed then NTLDR can fail too.

In your case I believe the root of Mandriva is in sda2. I notice you specify "6" as your Linux drive. This possibly refers to sda7 or your /home partition. As far as I am aware Grub is always placed in /boot and so copying the boot loader (which should be empty in sda7) from sda7 will not work.

Can you try sda2 instead, using "1" for the partition reference?
 
Old 10-07-2006, 03:47 PM   #10
Xogede
LQ Newbie
 
Registered: Jun 2006
Distribution: Mandriva PowerPack 2007 x86_64
Posts: 5

Original Poster
Rep: Reputation: 0
Well, I dont't need help anymore.

Today, I found out that my SATA2 disk was connected to a SATA1 jack. My natural reaction was to plug it into a SATA2 jack instead, and when I booted, everything was OK (except I had to install SATA2 driver).
Then, I ran bootpart again, finding out that my linux drive was now #10. So, I updated bootsect.lnx just fo fun (I didn't think it would work).
About half an hour later (I rebooted several times, but I didn't try to boot Linux), I tried to load Linux just for fun. Imagine my amazement when it actually worked (GRUB started)! Blinded by joy, I started playing around in the GRUB menu, and selected the "windows" alternative. It showed just "NTLDR not found". I though there was nothing strange about that, after all, there were 4 "windows" alternatives (just "windows" and "windows1" to 3) and (probably) just one of them was correct; and restarted the computer.
However, after restart, I got a "NTLDR not found" (no boot manager loaded at all). I started the windows xp recovery console (from the install CD), and tried both FIXMBR, FIXBOOT and BOOTCFG. They all said that everything worked (except FIXMBR that told I had a bad MBR even after "fixing" it), but I still got "NTLDR not found".
So, the only solution I could found was to forget Windows and reinstall Mandriva (this time on MBR).
And, as of yet, I like it that way.
 
  


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
LXer: Mandriva Linux 2007 Release Candidate 2 "Sunna" LXer Syndicated Linux News 0 09-17-2006 06:21 PM
LXer: Mandriva Linux 2007 Beta 1 "Thor" LXer Syndicated Linux News 0 08-02-2006 06:21 PM
after new swap partition, "NTLDR is missing" shankargopal Puppy 4 07-06-2006 11:44 PM
"NTLDR missing" during installation attempt LaLina Debian 3 02-26-2006 06:03 AM
linux loads winxp(second disk), it says "ntldr is missing" alexko Linux - Newbie 1 11-15-2004 05:55 AM


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