LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-19-2006, 06:02 PM   #1
Frank Soranno
Member
 
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230

Rep: Reputation: 30
Question Second Hard Drive?


I have Fedora 5 on my master 80 gig HD, with the latest kernel 2.6.16-1.2111_FC5.
Just installed a second 20 gig WD hard drive with win xp as slave, Went to bios and it was recognized as slave, Then booted up, went to /fdisk and it was recognized ok, Now how do I get into it to use? My /boot grub dosen't show it either. What's the next step?

.
 
Old 05-19-2006, 06:15 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Try adding this to your /boot/grub/grub.conf:
Code:
title Windaz
        rootnoverify (hd1,0)
        chainloader +1
where hd1,0 is the first partition on your primary slave (/dev/hdb)
 
Old 05-19-2006, 07:08 PM   #3
Frank Soranno
Member
 
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Tuttle
Try adding this to your /boot/grub/grub.conf:
Code:
title Windaz
        rootnoverify (hd1,0)
        chainloader +1
where hd1,0 is the first partition on your primary slave (/dev/hdb)
On reboot it appeared in grub, but didn't launch? What next?
 
Old 05-19-2006, 11:06 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Yo! Dudes! windoze is on the second (slave) drive. It doesn't like that; it wants to be first (master) of the situation. You need to re-map the drives to fool windoze into thinking it's on the first drive.

Like so:
title Windaz
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
makeactive
chainloader +1

You may need to add the rootnoverify line in there after the map commands. And, you may need to say 'rootnoverify (hd0,0) instead of (hd1,0).
 
Old 05-20-2006, 08:18 AM   #5
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Thanks bigrig!
 
Old 05-20-2006, 08:50 AM   #6
Frank Soranno
Member
 
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230

Original Poster
Rep: Reputation: 30
OK Guys, Now I'm getting "NTLDR MISSING" after I choose Windows,I'm not sure if I have XP loaded on the slave,Check this out,
[root@localhost sbin]# ./fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 9729 78043770 8e Linux LVM

Disk /dev/hdb: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 2433 19543041 7 HPFS/NTFS
[root@localhost sbin]#
 
Old 05-20-2006, 03:31 PM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
First thing I'd check: Is the partition containing Windows set to Active?

More info on NTLDR missing: http://www.computerhope.com/issues/ch000465.htm
 
Old 05-22-2006, 09:10 AM   #8
Frank Soranno
Member
 
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230

Original Poster
Rep: Reputation: 30
JW, I just switched over and installed Ubunto as the second HD slave.Same problem, Can't mount second HD (slave).On Grub boot I have fedora 5 which will boot if I select it and Ubunto after I select to boot Ubunto I get this "Error 13 Invalid or unsupported executionable format" Do I need to add to etc/fstab and /etc/mtab? I don't know what to add and how to do it, Need help. Thanks

Last edited by Frank Soranno; 05-22-2006 at 09:14 AM.
 
Old 05-22-2006, 02:19 PM   #9
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Let's recap your HD layout, as I'm no longer clear on which OS is on which drive. As a general comment, Windows expects to be on the primary master (/dev/hda) but if you install it on the primary slave (/dev/hdb), you will need to modify GRUB as bigrigdriver explained.

Assuming you can boot Ubuntu (or if you have a Live CD such as Knoppix), open up a terminal session and run the following command
Code:
cfdisk /dev/hda
That will display how /dev/hda is partitioned, along with the file system type of each partition. Write down the info that is displayed, quit the command (don't make any changes), then run
Code:
cfdisk /dev/hdb
Post the results of both commands, so we can see what you're seeing. Also, please post your current /etc/fstab

Bottom line is that the Windows prefers to be on the primary master, and must be in a partition that is bootable. (You can adjust the bootable flag via cfdisk) Linux doesn't care where it lives, so typically it's easiest to just put the drive containing Windows into the primary master position (make sure it's jumpered correctly) and the drive containing Linux into the slave position (again, make sure it's jumpered correctly) and use the standard GRUB or lilo boot loader settings
 
Old 05-22-2006, 03:37 PM   #10
Frank Soranno
Member
 
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230

Original Poster
Rep: Reputation: 30
JW, I can't get this thing resolved, I tried a live Cd and gave cfdisk /dev/hda and cfdisk /dev/hdb and in both I got fatal error and black screen.Here is /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdb1 /mnt/hdb1 ext3 defaults 1 3

This is my /boot/grub/menu.lst
grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core (2.6.16-1.2111_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.16-1.2111_FC5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.16-1.2111_FC5.img
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.15-1.2054_FC5.img
title Ubuntu 5.10
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)

chainloader (hd1,0) +1
Hope this helps? Thanks

Last edited by Frank Soranno; 05-22-2006 at 03:40 PM.
 
Old 05-22-2006, 05:52 PM   #11
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Hi, not sure why cfdisk didn't work... Ubuntu is Linux and uses the same layout as Fedora, you should try to copy Ubuntu's entry in /boot/grub/menu.lst. Here are the two fedora entrys:
Code:
title Fedora Core (2.6.16-1.2111_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.16-1.2111_FC5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.16-1.2111_FC5.img
and:
Code:
title Fedora Core (2.6.15-1.2054_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.15-1.2054_FC5.img
Ubuntus' is wrong, this is what it should look like:
Code:
title Ubuntu
root (hd0,1)
kernel /boot/[vmlinuz]
initrd /boot/[initrd]
Replace [vmlinuz] and [initrd] with the name of the kernel image you see in /mnt/hdb1/boot/, or even better, copy the entry you see for Ubuntu in /mnt/hdb1/boot/grub/menu.lst (if it exists).

Let me know if this is making sense to you

Last edited by Tuttle; 05-22-2006 at 05:53 PM.
 
Old 05-22-2006, 07:09 PM   #12
Frank Soranno
Member
 
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230

Original Poster
Rep: Reputation: 30
Error 15 FILE Not Found
Here's the /boot/grub/menu.lst

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core (2.6.16-1.2122_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.16-1.2122_FC5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.16-1.2122_FC5.img
title Fedora Core (2.6.16-1.2111_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.16-1.2111_FC5 ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.16-1.2111_FC5.img
######################################
##title Ubuntu 5.10
## root (hd0,1)
## Kernel /boot/[vmlinuz]
## initrd /boot/[initrd]
#######################################


title Ubuntu, kernel 2.6.12-9-amd64-k8
root (hd0,0)
kernel /boot/vmlinuz-2.6.12-9-amd64-k8 root=/dev/hdb1 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-amd64-k8
 
Old 05-23-2006, 01:05 AM   #13
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
The complicating factor here is that it's just plain unclear what you've got installed, and where it is installed. At this point, I'd suggest just forgetting about trying to finesse it, and to instead just force it to work. This is what I'd suggest:

1. Physically remove whichever drive contains Linux.
2. Put the drive that contains Windows in the primary master position. Make sure it is jumpered to be the master.
3. Reset the Master Boot Record (MBR) of the primary master. Do this if you have Win 98 or this if you have XP
4. At this point, your only boot option (and only disk drive) will be Windows. No problem, Linux hasn't gone anywhere
5. Put the drive containing Linux into the slave position. Make sure it is jumpered to be the slave.
6. Using your Linux installation CD or a Live CD, boot into Linux, and restore the boot manager

Overall, due to Windows not playing nice, it's just way easier to install Windows first, let it have the first partition of the primary master, then install Linux

Last edited by J.W.; 05-23-2006 at 01:11 AM.
 
Old 05-23-2006, 12:24 PM   #14
Frank Soranno
Member
 
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Frank Soranno
JW, I just switched over and installed Ubunto as the second HD slave.Same problem, Can't mount second HD (slave).On Grub boot I have fedora 5 which will boot if I select it and Ubunto after I select to boot Ubunto I get this "Error 13 Invalid or unsupported executionable format" Do I need to add to etc/fstab and /etc/mtab? I don't know what to add and how to do it, Need help. Thanks
Hi JW, I did that exactly as I described above, Not sure if I made it clear, But I removed Win XP and installed Ubunto on the 20gig (slave) while I had the (master) disconnected.Put the (master) back and tried to boot, I stiil can't get the (slave) to boot. I'm just trying to boot from either hard drive, Which I have installed, Seagate 80 gig (master) which has Fedora 5 and WD 20 gig (slave) which has Ubunto only no win XP at all. All I want is to be able to switch drives from the boot. I really don't care about Win XP.I hope this helps clears up my delema.
Thanks for helping me with straighten out my project. Frank
 
Old 05-23-2006, 02:30 PM   #15
dhirsolo
Member
 
Registered: Apr 2005
Location: India
Distribution: RHEL, Fedora Core , SUSE, Ubuntu, etc
Posts: 54

Rep: Reputation: 15
Hi all

A little suggestion. Can i know the model no of ur mother board. In some of the motherboards there is a extra option is added at boot time which gives u the choice to boot from different physical hard disk.


I am using two Hdd and the win xp is on second hard disk . On my motherboard (intel 845) it gives a choice to select boot from boot menu by pressing F11 key, it displays all the drives as hd0 hd1 etc i just have to select the drive and all is set. Win xp runs smoothly.

Just gussing that may be u have some kind of board like mine. Try looking at startup options.

Regards
 
  


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
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 10:03 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 09:48 AM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 02:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 01:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 03:47 AM

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

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