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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
05-19-2006, 06:02 PM
|
#1
|
Member
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230
Rep:
|
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?
.
|
|
|
05-19-2006, 06:15 PM
|
#2
|
Senior Member
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291
Rep:
|
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)
|
|
|
05-19-2006, 07:08 PM
|
#3
|
Member
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230
Original Poster
Rep:
|
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?
|
|
|
05-19-2006, 11:06 PM
|
#4
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
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).
|
|
|
05-20-2006, 08:18 AM
|
#5
|
Senior Member
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291
Rep:
|
Thanks bigrig!
|
|
|
05-20-2006, 08:50 AM
|
#6
|
Member
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230
Original Poster
Rep:
|
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]#
|
|
|
05-20-2006, 03:31 PM
|
#7
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
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
|
|
|
05-22-2006, 09:10 AM
|
#8
|
Member
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230
Original Poster
Rep:
|
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.
|
|
|
05-22-2006, 02:19 PM
|
#9
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
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
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
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
|
|
|
05-22-2006, 03:37 PM
|
#10
|
Member
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230
Original Poster
Rep:
|
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.
|
|
|
05-22-2006, 05:52 PM
|
#11
|
Senior Member
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291
Rep:
|
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.
|
|
|
05-22-2006, 07:09 PM
|
#12
|
Member
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230
Original Poster
Rep:
|
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
|
|
|
05-23-2006, 01:05 AM
|
#13
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
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.
|
|
|
05-23-2006, 12:24 PM
|
#14
|
Member
Registered: Jun 2005
Location: Scranton, Pa. USA
Distribution: Debian
Posts: 230
Original Poster
Rep:
|
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
|
|
|
05-23-2006, 02:30 PM
|
#15
|
Member
Registered: Apr 2005
Location: India
Distribution: RHEL, Fedora Core , SUSE, Ubuntu, etc
Posts: 54
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 07:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|