LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-12-2007, 06:29 PM   #1
neville310
LQ Newbie
 
Registered: Oct 2005
Posts: 17

Rep: Reputation: 0
NTLDR error on start-up when adding secondary new drive


I am swapping hard drives on my home-build system and encountered boot errors. The master boot sector is looking for NTDLR; thus can not find an OS to load.

Generally, my system boots directly with grub and then into Windows XP SP2. The C drive is my primary IDE drive; the drive coming out of the system is a secondary IDE (aka slave); the new drive is a SATA 300GB drive replacing the secondary IDE. I had not been able to install the drive over the last year due to lack of time.

The bios properly recognizes the new drive. But the system returns an NTDLR error on start-up; until I go back to the previous drive configuration. The jumper settings are correct since the bios recognizes the SATA drive. Grub may be on the drive coming out (not sure).

Where do I find information on editing grub? How do I save my Linux installation after installing the new drive (aka copy to the new drive)? What tools would help me diagnosis the boot sequence order? Loads of information is available on the internet; yet frankly I don't have time to read through it all. Please point me in the right direction. Thanks!

Found these links yet looking for more info on these topic (especially accessing the grub and moving my linux installation to a new drive)
http://www.computerhope.com/issues/ch000465.htm
http://support.microsoft.com/kb/318728

Here are my boot.ini and grub.conf


[root@localhost grub]# fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 7297 58613121 7 HPFS/NTFS
/dev/hda2 7298 14593 58605120 5 Extended
/dev/hda5 7298 10945 29302528+ 7 HPFS/NTFS
/dev/hda6 10946 14593 29302528+ 7 HPFS/NTFS

Disk /dev/hdb: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1272 4757 28001263+ 7 HPFS/NTFS
/dev/hdb2 4758 7294 20378452+ f W95 Ext'd (LBA)
/dev/hdb3 1 1271 10209276 83 Linux
/dev/hdb5 4758 7294 20378421 7 HPFS/NTFS

Partition table entries are not in disk order

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 24321 195358401 7 HPFS/NTFS

Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 24321 195358401 7 HPFS/NTFS

Disk /dev/sdc: 200.0 GB, 200049648128 bytes
1 heads, 1 sectors/track, 390721969 cylinders, total 390721969 sectors
Units = cylinders of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 64 390716864 195358400+ 7 HPFS/NTFS


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd1,2)
# kernel /boot/vmlinuz-version ro root=/dev/hdb3
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=2
timeout=5
splashimage=(hd1,2)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2257.fc5)
root (hd1,2)
kernel /boot/vmlinuz-2.6.18-1.2257.fc5 ro root=LABEL=Linux rhgb quiet
initrd /boot/initrd-2.6.18-1.2257.fc5.img
title Fedora Core (2.6.16-1.2133_FC5)
root (hd1,2)
kernel /boot/vmlinuz-2.6.16-1.2133_FC5 ro root=LABEL=Linux rhgb quiet
initrd /boot/initrd-2.6.16-1.2133_FC5.img
title WIndows XP
rootnoverify (hd0,0)
chainloader +1
 
Old 12-13-2007, 06:54 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,779

Rep: Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572Reputation: 3572
Try this from a terminal
Code:
for i in a b ; do echo "/dev/hd$i: " ; dd if=/dev/hd$i count=1 2>/dev/null | strings | egrep -i "ntfs|grub" ; done
This will give an idea of what boot-loader code is on each disk.

Which disk is the (first) BIOS boot disk ???.
(I don't use Fedora, so I hope all those commands are available - may need root for some of them).
 
  


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
Adding New Hard Drive as Secondary Master derek8128 Linux - Newbie 4 10-24-2005 08:46 AM
Error with new slave drive on secondary controller linuxnube Fedora 2 01-29-2005 03:55 PM
Adding secondary groups thepurpleblob Linux - General 1 09-03-2003 10:19 AM
error when booting after adding new hard drive... pdmackenzie Linux - Hardware 3 02-24-2003 08:47 PM
URGENT!!! adding ide(hdb-secondary hard-disk) to redhat 7.1 gigya Linux - Software 3 05-02-2002 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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