LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-30-2005, 05:24 PM   #1
robertko
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Rep: Reputation: 0
NTLDR is missing after reboot


Hello all,

I'm new to Linux and today decided to finally install Suse 10 (from dvd) and this will probably also be the last time!

First I used partition magic (in windows xp) to resize the partition from my 2nd harddisk from 80GB to 50GB (NTFS).

After that I started installing Suse which suggested to use the left over space on the 2nd harddisk to make 2 linux partitions (swap+normal).

The installation didn't go as perfect as it could be. It gave an error message that it could not install the suse-build-key package. I ignored that error and everything else went fine.

After initial setup I decided to reboot the computer and the linux boot loader(?) from where I can choose to run Linux or Windows. All fine so far. I can start both Windows and Linux from there.

I ejected the DVD and restarted the pc again, which resulted in the following error: "NTLDR is missing. Press CTRL-ALT-DEL to restart"

I tried going into Windows safe mode, but it won't let me even get to the windows startup menu.

So now when I want to go anywhere, I always have to use the linux dvd.

Some specs:
harddisk1: 120GB (NTFS, Windows XP)
harddisk2: 80GB divided into NTFS partition/Linux swap/Linux

When I google on the NTLDR error people suggest to go into windows recovery mode and do a fixmbr. Will this solve my problem (and not screw things up completely?) or is there a better solution.

Thanks for your help! It's very much appreciated
 
Old 10-30-2005, 06:32 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Did you install grub to the mbr?
Post /boot/grub/grub.conf
or for Suse may be;
/boot/grub/menu.lst

Last edited by comprookie2000; 10-30-2005 at 06:34 PM.
 
Old 10-31-2005, 11:43 AM   #3
robertko
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Also, I forgot to mention that my first harddisk does have two partitions. The first one is very small and for recovery purposes from the manufacturer of the computer. I don't know if this has anything to do with the problem.

Anyways, here's the contents of /boot/grub/menu.lst
# Modified by YaST2. Last modification on zo okt 30 17:21:01 CET 2005

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd1,2)/boot/message

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.0
root (hd1,2)
kernel /boot/vmlinuz root=/dev/hdb3 vga=0x31a selinux=0 resume=/dev/hdb2 splash=silent showopts
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: Vendor diagnostic###

title Vendor diagnostic
chainloader (hd0,1)+1

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Diskette
chainloader (fd0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Veilige modus -- SUSE LINUX 10.0
root (hd1,2)
kernel /boot/vmlinuz root=/dev/hdb3 vga=normal showopts ide=nodma apm=off acpi=off noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd


And here's the contents of /boot/grub/device.map (both of these files were altered on the same date I installed Linux)
(hd1) /dev/hdb
(fd0) /dev/fd0
(hd0) /dev/hda


Oops, I just read in the manual which came with the pc that I can not install multiple operating systems. If I do, the restore function will not be available anymore. Could this be causing my NTLDR problem?

Last edited by robertko; 10-31-2005 at 12:07 PM.
 
Old 10-31-2005, 02:01 PM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
Oops, I just read in the manual which came with the pc that I can not install multiple operating systems. If I do, the restore function will not be available anymore. Could this be causing my NTLDR problem?
I don't think so! You simply can use the restore function. I have a similar situation on my PC and it runs just fine.

But the small partition could explain your troubles:
Your menu.lst tries to boot Windows from hd0,0 which is probably the small partition. Try to boot from hd0,1 (the 'Vendor diagnostic' item)
 
Old 10-31-2005, 04:00 PM   #5
robertko
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by abisko00
I don't think so! You simply can use the restore function. I have a similar situation on my PC and it runs just fine.

But the small partition could explain your troubles:
Your menu.lst tries to boot Windows from hd0,0 which is probably the small partition. Try to boot from hd0,1 (the 'Vendor diagnostic' item)

But the options listed in menu.lst are good, I think. This is the same list I get when I start the computer with the linux dvd in there. It starts from dvd, then I select "Boot from Harddisk". Then I get the exact options as they appear in menu.lst. When I select Windows at that time, Windows will start up without any problem. When I select the Vendor option, it will go to System Recovery.


Here's some more info...
In the YaST2 Configuration the partitioning menu reveals:
/dev/hda 114.4GB Maxtor-6Y120L0
/dev/hda1 111.9GB HPFS/NTFS /windows/C
/dev/hda2 2.5GB Vendor Diag

/dev/hdb 74.5GB ST380011A
/dev/hdb1 48.8GB HPFS/NTFS /windows/D
/dev/hdb2 1.0GB Linux swap swap
/dev/hdb3 24.6GB Linux native /

And in the bootloader configuration (via YaST2 Configuration) the location of the bootloader is set to "Master boot record of /dev/hda"

I also seem to have a /etc/grub.conf file which says:
setup --stage2=/boot/grub/stage2 (hd1,2) (hd1,2)
setup --stage2=/boot/grub/stage2 (hd0) (hd1,2)
quit

Again, any help is appreciated!

Last edited by robertko; 10-31-2005 at 04:45 PM.
 
Old 11-01-2005, 02:20 AM   #6
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Ahh, I see! In your case the diagnostic partition is on the other end (on my system it's hda1).
We've had a similar thread recently with the same phenomenon, but we couldn't resolve it. But maybe you want to have a look: http://www.linuxquestions.org/questi...hreadid=376609


BTW: What I wanted to say in the above post is that you "can't" use the restore funtion anymore.
 
Old 11-01-2005, 03:57 AM   #7
robertko
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by abisko00
Ahh, I see! In your case the diagnostic partition is on the other end (on my system it's hda1).
This is weird. When I go into windows and start partition magic, the first partition on my first harddisk is indeed the recovery partition. The second partition is the NTFS partition.

But in Linux partititioning it says hda1 is my NTFS partition and hda2 is my recovery partition ?!
 
Old 11-01-2005, 04:05 AM   #8
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Weird indeed! Then you should try to boot from HDD and select the 'Diagnostic' option. Maybe this'll take you to Windows...

BTW: What's the active partition? Maybe you need to activate 'the other'.

Last edited by abisko00; 11-01-2005 at 04:07 AM.
 
Old 11-01-2005, 12:15 PM   #9
robertko
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
I already tried going into the Diagnostic menu option, but that will get me into that one. Just like I can get into Windows by selecting the windows menu option.

So linux says partition 1 = Windows and partition 2 = System Restore
And this works!
While windows says partition 1 = System Restore and partition 2 = Windows

In Windows partiton magic's PartitionInfo I can see that:
Disk 1:
Partition Information:
Partition1 = Utility, Pri, 2643.5MB, startsector 63
Partition2 = NTFS, Pri,Boot, 114596.5MB, startsector 5,413,905

Disk Geometry Information:
1st line says startsector 5,413,905
1nd line says startsector 63

Also, it says partition 2 (Volume C) has the following error:
"Info: MBR Partition Table not in sequential order."


Disk 2:
Partition 1 = NTFS, Pri,Boot, 49999.1MB, startsector 63
Partition 2 = Linux Swap, Pri, 1027.6MB, startsector 102,398,310
Partition 3 = Linux Ext2, Pri, 25289.8MB, startsector 104,502,825

Disk Geometry Information for disk 2:
1st line says startsector 63
2nd line says startsector 102,398,310
3rd line says startsector 104,502,825

No errors here.


So I guess something is messed up in disk 1, but what? And why did this happen when installing Linux?

About active partitions:
On disk 1, the NTFS partition is active
On disk 2, the NTFS partition is active

Last edited by robertko; 11-03-2005 at 01:45 AM.
 
Old 11-05-2005, 05:30 AM   #10
robertko
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Ok, I decided to make things worse.....

In Partition Magic I made the Linux partition the active one. Which means my Windows partition on the 2nd harddisk is not anymore.

I booted and it gave me the following message:
"GRUB loading stage 1.5.
GRUB loading, please wait...
graphics file "(hd1,2)/boot/message" missing, press a key to continue...

Then it comes up with the bootmenu from Linux! Looks good so far!
I choose Windows, and then it comes up with:
"Booting 'Windows'
chainloader (hd0,0) +1
NTLDR missing...
Press CTRL-ALT-DEL to restart"

So, still not solved. I decided to boot back into windows using the linux dvd to boot from. This still worked without any problems. But when I got back into windows, my D drive was gone (the windows partiton on the 2nd harddisk).
In partition magic it says it's still there, but it's hidden!!! Luckily there's an option to unhide a partition. So that's what I did. Restarted again with the linux dvd. But still the same problem.
So I decided (in partition magic) to make my windows partition active again by first unhiding, then make it active.

But after restarting, nothing is changed. My linux partition is still active and my D drive is still gone.

What's going on here????
 
Old 11-05-2005, 06:17 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
What options do you have set in the BIOS for the two HDs ????.
Probably AUTO, maybe LBA, hopefully not anything else.
 
Old 11-05-2005, 11:33 AM   #12
robertko
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by syg00
What options do you have set in the BIOS for the two HDs ????.
Probably AUTO, maybe LBA, hopefully not anything else.

Both harddisks used to be AUTO, but I have set them to LBA cause I read somewhere AUTO can give problems. So, they're currently set to LBA.
 
Old 11-06-2005, 06:20 AM   #13
robertko
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Ok, I don't know what's up with this, but I tried making my D drive active again, and now it worked.

But the boot problem with NTLDR missing still exists....
 
Old 11-06-2005, 07:15 AM   #14
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
There is another thread with a similar problem:
http://www.linuxquestions.org/questi...5&pagenumber=2

19syzerman19 solved the problem by swapping the drives in /boot/grub/device.map. I can't imagine if it's going to help in your case, but one never knows...
 
Old 11-06-2005, 07:52 AM   #15
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
Let me teach you,
if u r using suse 10.0, just boot with a DOS/Windows 98 bootdisk, enter Fdisk /MBR to delete grub first.
then , boot with CD rom your XP or Windows 2000 CD,
choose rescue,
go to C:,
type attrib -h -r -s *.*
then, copy NTRDL and NTDETECT.com from /i386 from your CD to c:
reboot,
you should be able to run your windows again.

To get back your Grub, boot with suse 10.0 CD or DVD, choose installation,
after a few steps, choose "others" when asked about type of installation, you can see the REPAIR option,
click next, choose AutoRepair,
follow on will get back your Grub to Dual Boot with windows.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lilo and ntldr missing problem kryptobs2000 Linux - Software 2 09-14-2005 01:57 AM
NTLDR Missing rob0t Linux - Hardware 10 10-08-2004 04:01 PM
More NTLDR is missing - Sorry :) forge107 Linux - Newbie 6 06-07-2004 05:15 PM
NTLDR is missing snake Linux - Newbie 48 04-10-2003 02:57 AM
ntldr is missing beowulf Linux - General 2 03-14-2003 05:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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