Dual boot
Have a disk installed centos 5.0 and previously works fine (as a single disk in a computer).Now plug the disk to another computer as an external disk (use USB cable), which already running a windows xp. Now when I enter the boot menu, if choose boot from harddisk,it boots into windows xp (no problem) and if choose boot from usb, it start to boot into centos (but fail, only can see some message like booting into centos...).
I think the problem is the centos installed using the default settings, like /dev/mapper/VolGroup00-LogVol00...(pointed to /dev/sda),now it's as the second disk so system don't recognize it's /dev/sda. How can I manually modify this to make it work? Thx in advance |
post the output of
Code:
fdisk -l sda,b are scsi disks like USB an ide disk will be hda,b,c so post the output of the line ubuve and we will see what you have :) |
If I understand your situation correctly, you had a hard drive with only CentOS on it, no other operating systems. You took this drive and put it in another computer which has xp and you are trying to boot CentOS by changing the boot priority in the BIOS to boot from the disk on which you have CentOS? Or are you booting from an entry in the xp boot.ini file?
|
yancek,yes,almost there...just didn't change the BIOS, only press F12, will get a boot menu on the screen, which list can boot from CDROM, Harddisk,USB...
|
If you now have CentOS on a drive which already had xp on it, you will need to modify your bootloader. You can install Grub to the mbr of that disk and put an entry in /boot/grub/menu.lst for xp or you can modify the xp to boot CentOS. Never done that but the site below explains. It involves pputting Linux on a second drive so you will need to modify things a bit:
|
Hi yzhong,
Quote:
Markus |
Quote:
|
simply use the rescue mode in the centos install cd/dvd to correct all problems.
after chroot, you need to do #grub-install /dev/sda (or edit grub.conf in /boot/grub/...) Also edit the file /etc/fstab |
Quote:
... /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 ... 2.I can boot to GRUB menu and did the following try. 1)press "a", boot to single, init=/bin/sh, emergency, but all fail 2)press "c" into command line,enter root (hd0,0) can find the second harddisk (first harddisk should be sda),enter find /grub/grub.conf can see the grub.conf,but enter kernel /vmliuz... it said can't find the file (the file it's there, use Tab key I can see what vm* files listed there) 3.Use live CD/first CD to boot (enter linux rescue), but in the last step, it said "no partition table in /etc/sdb" (not sure why the error said sdb not hda) |
When you boot your machine, you hit the F12 key to select which drive to boot from, then get the Grub boot menu??
If that's where you are at, you need to post your menu.lst as well as the output of the "fdisk -l" command to get any accurate help. |
All times are GMT -5. The time now is 03:44 PM. |