Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
I have 2 HardDrives, one with RedHat 8.0 Linux and another with Windows XP!
I had Linux HD as MASTER (hda) and Windows as SLAVE (hdb), both EMPTY!
I installed Linux on hda, and when I was trying to install windows on hdb, I remmember that windows must be instaled on a Active Primary Partition on the Master HD of hda!!!
So I switch the HardDrives!!! Linux -> hdb and Windows(Empty) -> hda
I updated /etc/fstab and /boot/grub/grub.conf and write the new grub config on the MBR of Linux HD. Linux boots fine!
I installed Windows on the hda and it's booting fine too!
- HDA has Windows Loader on his MBR and boot's windows fine!
- HDB has Grub Loader on his MBR and boot's Linux fine!
STRANGE BUG:
- Grub (installed on Linux HD, hdb) only boot's Linux with:
-----------------------------------------------------------
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,1)
kernel /boot/vmlinuz-2.4.18-14 ro root=/dev/hdb2 hdc=ide-scsi hdd=ide-scsi
initrd /boot/initrd-2.4.18-14.img
-----------------------------------------------------------
The correct setting should be (hd1,1), right???
Even root (hd0,1) don't agree with root=/dev/hdb2!!!
When Linux HD was hda, everything had logic: (hd0,1) and root=/dev/hda2!
MY REAL PROBLEM:
- I can't boot Windows on hda choosing on BIOS hdb that contains Grub and Linux:
-----------------------------------------------------------
title Microsoft Windows XP
rootnoverify (hd0,0)
chainloader +1
-----------------------------------------------------------
PS1: HDA has only 1 partition with Windows!
PS2: HDB has 3 partitions, 1st SWAP, 2nd / and 3rd /home!
I can boot both O/S by setting on BIOS each HardDrive as first boot drive!
Note: This assumes your root ('/') partition is hda. If it is not, change the above example. It also assumes you floppy drive is mounted as floppy. Again, if it isn't, make the change.
This command will copy a boot image to the floppy drive.
Exit Linux and boot XP. Copy the file from the floppy to C:\
Start Notepad and open file: C:\boot.ini
Add this as the last line:
C:\bootsect.lnx=Linux"
Towards the beginning of the file there is a line for time. I don't recall if it says wait or time, but it is pretty obvious. Set this to about 20.
Save the file and reboot your computer.
You should get an option to boot either XP or Linux. Try both.
Well, I dunno, must have to do with how the system is seen at BIOS level, when hdb is set as first boot device.
Have you tried to boot M$ as (hd1,0)?
All I can say is if I were you I'd put grub on the master's MBR,
make the redhat entry in menu.lst as (hd1,1) and the M$ entry as suggested earlier [...include makeactive] and of course set the master as first boot device.
title Red Hat Linux (2.4.18-19.8.0)
root (hd1,1)
kernel /boot/vmlinuz-2.4.18-19.8.0 ro root=/dev/hdb2 hdc=ide-scsi hdd=ide-scsi
initrd /boot/initrd-2.4.18-19.8.0.img
title Microsoft Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
------------------------------------------------------------------------------------
and installed Grub on hda:
------------------------------------------------------------------------------------
[root@localhost grub]# /sbin/grub-install /dev/hda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
# this device map was generated by anaconda
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdb
------------------------------------------------------------------------------------
Conclusion: Grub has strange behaviours when installed on a HardDrive other than hda!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.