greetings,
since i have a test server in front of me and i have never tried it i request your assistance please.
ive always been a fdisk and lilo person
i have a fresh CentOS 4 "test" install on a WD120 sata /dev/sda
/dev/sda1 / /dev/sda2 /boot /dev/sda3 swap
and it just so happens i have a old test 17Gig Maxtor PATA with a fresh Win98 on it from helping my father migrate to a newer cpu and opsys
when i go into a fdisk /dev/hda i get this "print"
/dev/hda1 c: w95 fat32 lba /dev/hda2 w95 ext lba /dev/hda5 d: w95 fat 32
currently i can boot into the CentOS 4 install and it does not see the PATA drive by default unless i go into fdisk of course. it is not mounted.
or i can switch them and boot into win98, whatever is best for this learning test.
ive always tried to have 2 or more (hot/cold swapouts) of everything client and server hardwares so i never needed to dual boot.
can someone show me what steps they would take using linux rescue to get this "test" situation to dual boot please?
i did try with "linux rescue" and was rec'v grub not found errors when running grub-install /dev/sda so im sure i have done something worng.
also, i can make the windows pata drive primary or the linux sata primary so please advise what is best.
maybe i didnt understand the recent thread re: dual boot situation.
thanks in advance and kind regards,
- rh
-- Robert Hanson Abba Communications http://www.abbacomm.net
Robert Hanson roberth@abbacomm.net wrote:
greetings, since i have a test server in front of me and i have never tried it i request your assistance please. ive always been a fdisk and lilo person
Both RHEL3 and 4 come with LILO. You can use it instead.
i have a fresh CentOS 4 "test" install on a WD120 sata /dev/sda /dev/sda1 / /dev/sda2 /boot /dev/sda3 swap and it just so happens i have a old test 17Gig Maxtor PATA with a fresh Win98 on it from helping my father migrate to a newer cpu and opsys when i go into a fdisk /dev/hda i get this "print" /dev/hda1 c: w95 fat32 lba /dev/hda2 w95 ext lba /dev/hda5 d: w95 fat 32 currently i can boot into the CentOS 4 install and it does not see the PATA drive by default unless i go into fdisk of course. it is not mounted.
Of course, because Linux will only mount what you tell it to (or what the installer setup).
You can manally mount these filesystems with: mkdir /mnt/c /mnt/d mount -t vfat /dev/hda1 /mnt/c mount -t vfat /dev/hda5 /mnt/d
Or did you mean the BIOS?
If so, then you must tell your BIOS to setup the ATA drive as the booting disk (BIOS disk 80h) and your SCSI as secondary.
Now if you want to be able to choose both without going into the BIOS, you're going to have to setup GRUB to map (/boot/grub/device.map): (hd0) /dev/hda (hd0) /dev/sda
And you'll also need to change the grub configuration (/boot/grub/grub.conf aka /etc/grub.conf) so anything "hd0," is now "hd1,", while adding a "chainloader" for "hd0,0".
And re-install grub to the ATA device: grub-install /dev/hda
(you might have to do this from the rescue CD _after_ you've changed the BIOS to boot the ATA first).
This is not straight-forward to do if you've never done it.
or i can switch them and boot into win98, whatever is best for this learning test.
Windows 98 does not have support for mounting Linux filesystems (at least not without 3rd party tools).
ive always tried to have 2 or more (hot/cold swapouts) of everything client and server hardwares so i never needed to dual boot.
Which is highly recommended, especially with XP. More and more XP Service Pack / Hotfixes have been using the MBR to store hidden info, and it often overwrites GRUB. But when you re-install GRUB, you lose that all-important info that XP needs to boot -- FOREVER.
can someone show me what steps they would take using linux rescue to get this "test" situation to dual boot please?
I recommend _against_ it, but the above steps I gave you will work. Here they are again, in order:
1. Change your BIOS to boot ATA first 2. Boot your Rescue CD 2a. Change /boot/grub/device.map (BIOS-hd-dev mappings as above) 2b. Change /boot/grub/grub.conf (hd0->hd1, plus new chainloader entry for hd0,0) 2c. Re-install grub to ATA with "grub-install /dev/hda"
i did try with "linux rescue" and was rec'v grub not found errors when running grub-install /dev/sda so im sure i have done something worng. also, i can make the windows pata drive primary or the linux sata primary so please advise what is best.
It is very, very messy to boot Windows _unless_ it is the first boot drive (BIOS disk 80h), so I recommend you make ATA the first device.
maybe i didnt understand the recent thread re: dual boot situation.
Dual-booting on the PC is a PITA. The PC is the absolute worst platform for dual-booting, and MS is part of the problem.
Now if you want to be able to choose both without going into the BIOS, you're going to have to setup GRUB to map (/boot/grub/device.map): (hd0) /dev/hda (hd0) /dev/sda
You don't have to mess with grub's device map. You can do it all from the windows section in the config
title Windows map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd0,0) makeactive chainloader +1
At least that's how I've got it set up in the office. If there's some arcane reason for this to be a bad thing, I'm all ears.
-- Jim Perrin System Administrator - UIT Ft Gordon & US Army Signal Center
On Fri, 2005-07-29 at 15:17 -0400, Jim Perrin wrote:
Now if you want to be able to choose both without going into the BIOS, you're going to have to setup GRUB to map (/boot/grub/device.map): (hd0) /dev/hda (hd0) /dev/sda
Something is a bit strange here. Can't have but one (hd0). Should presumably be: (hd1) /dev/sda
I've run into trouble in the past if grub's device.map differed from the BIOS boot order on IDE/SCSI machines.
You don't have to mess with grub's device map. You can do it all from the windows section in the config
title Windows map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd0,0) makeactive chainloader +1
At least that's how I've got it set up in the office. If there's some arcane reason for this to be a bad thing, I'm all ears.
That approach works for me also. [Although I still consider using dual- boot with Windoze to be evil. :-) VMware is a mitigation. ]
Phil
On 7/29/05, Phil Schaffner Philip.R.Schaffner@nasa.gov wrote:
...Although I still consider using dual- boot with Windoze to be evil. :-) VMware is a mitigation. ]
Having used dual boot with Windoze for at least 7 years, I find it to be somewhat less than evil. If you have a reason to run Windoze from time to time, it's not an evil thing. Whatever floats your boat.
Jim Perrin jperrin@gmail.com wrote:
You don't have to mess with grub's device map. You can do it all from the windows section in the config
I'm not talking about the Windows remap. I'm talking about telling GRUB what Linux device maps to what BIOS device.
I.e., if you setup your BIOS so the SCSI controller boots first, /boot/grub/device.map should be: (hd0) /dev/sda (hd1) /dev/hda
If your BIOS is on-board chipset ATA controller first: (hd0) /dev/hda (hd1) /dev/sda
Off-chipset ATA controller (assuming /dev/hde) first: (hd0) /dev/hde (hd1) /dev/hda (hd2) /dev/sda
GRUB needs to know how to map Linux devices to BIOS boot order so GRUB is properly installed when you run "grub-install," or when the "(hdX,Y)" references are used in /boot/grub/grub.conf.