LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   multi boot problem (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/multi-boot-problem-577433/)

adamkong 08-15-2007 10:22 PM

multi boot problem
 
i am a linux new user my HD have 3 partition XP , Server2003 , fedora and the fedora i just install

i search so long time that i can connect to internet and update the fedora

but now i have a problem how can i boot back to XP

i can't see anything in the boot menu fedora only and i open the menu.lst to see :

# 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,2)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.22.1-41.fc7)
root (hd0,2)
kernel /vmlinuz-2.6.22.1-41.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.22.1-41.fc7.img
title Fedora (2.6.21-1.3194.fc7)
root (hd0,2)
kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3194.fc7.img
title Other
rootnoverify (hd0,4)
chainloader +1

no any information about window in Other

is it in fedora need some software to mount window ??
can i re-install the bootloader to re-register all device in fedora ??

please help

Astol 08-15-2007 11:18 PM

when you install Fedora, you will see at some point, a screen asking about the boot loader. when you see this, click "add" and type Windows XP, and again for any other OS's you have. after that, it may be as simple as editing the /etc/boot/grub/grub.conf to have the XP partition pointing to the correct place. ie,

Windows XP ... ... (hd0,0)
to
Windows XP ... ... (hd0,1)

also, if you have multiple Linux's, change

kernel /vmlinuz-2.6.22.1-41.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
to
kernel /vmlinuz-2.6.22.1-41.fc7 ro root=/1

adamkong 08-15-2007 11:36 PM

thx

i try to re-install now


i wish i can see what u say

syg00 08-16-2007 12:29 AM

No need to re-install - the "Other" entry is for Windoze. Change "rootnoverify (hd0,4)" to "rootnoverify (hd0,0)"
If that doesn't work try "rootnoverify (hd0,1)"

adamkong 08-16-2007 12:31 AM

how to edit grub to point xp ???

i am a new user only so don't know to much

adamkong 08-16-2007 12:47 AM

you mean in my grub.conf:

title Fedora (2.6.21-1.3194.fc7)
root (hd0,2)
kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3194.fc7.img
title Other
rootnoverify (hd0,4)
chainloader +1

change the rootnoverify (hd0,4)to (hd0,0)/(hd0.1)and then save and restart ,right?

syg00 08-16-2007 04:51 AM

Yep. . . . . .

adamkong 08-16-2007 05:07 AM

i was change (hd0,4) to (hd0,0)
its work but...
before install fedora , i also have a boot menu XP and server2003 and now i can boot back to this menu but when i choose either XP or server2003 after load the window bar suddenly will go to the blue screen :

STOP:c00002la unknown Hard Error
unknown Hard Error

in fedora i can mount all the partition and can open file

how can i do next ??

nice a nice day

syg00 08-16-2007 06:04 AM

It may depend a little on which order the XP and 2003 were installed. Open a Fedora terminal, and enter the following command
Code:

sudo fdisk -l
(that's a lower case ell, as in list). Post the output here.
What order were the operating systems installed, and into which partitions ???.

adamkong 08-16-2007 06:15 AM

Disk /dev/sda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 65 4938 39150373+ 17 Hidden HPFS/NTFS
/dev/sda2 4939 6050 8932140 f W95 Ext'd (LBA)
/dev/sda3 * 1 13 104391 83 Linux
/dev/sda4 6051 7297 10016527+ 8e Linux LVM
/dev/sda5 4939 6050 8932108+ 7 HPFS/NTFS

Partition table entries are not in disk order

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 14592 117210208+ 7 HPFS/NTFS

Disk /dev/sdc: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 24321 195358401 7 HPFS/NTFS


/dev/sda1 is XP

/dev/sda5 is server 2003

/dev/sdb1 my 2nd HD (data only)

/dev/sdc1 my 3rd HD (data only)

syg00 08-16-2007 06:25 AM

Ugh.
Did you by any chance use Partition Magic to "shrink" that sda1 (XP C: drive) to make room for the Fedora sda3 (presumaly /boot) ???.

adamkong 08-16-2007 06:50 AM

yes i was use partition magic to divide HD into 3 partition

1st xp
2nd server2003
3rd fedora

when i format the 3rd to linux format and it say also need create a swap partition before the 1st partition that time i press OK and i haven't get any attention on it

syg00 08-16-2007 07:28 PM

It looks like you had XP installed first. When you install a later version, it uses the prior versions partition for the boot loader code and updates files as needed - ntldr and boot.ini for example. This is how you get the two listed on the Windows boot menu.
This is also why you could install 2003 into a logical partition.
So far so good.

Windows keeps a *lot* of location dependant data in the registry. It does not like the system partition being moved. However I would have expected PM to cater for that.
Try "unhiding" sda1 - that is just a stupid idea.
Code:

sudo  fdisk /dev/sda
t
1
7
w
q

This will change the type for partition one back to NTFS. Try a reboot after that.

adamkong 08-16-2007 09:08 PM

thank you for your suggestion

but how to un-hiide ?

sudo fdisk /dev/sda
t
1
7
w
q

after type

sudo fdisk /dev/sda

enter

The number of cylinders for this disk is set to 7297.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)

Command (m for help):

adamkong 08-16-2007 09:46 PM

i was do it and now :

Device Boot Start End Blocks Id System
/dev/sda1 65 4938 39150373+ 7 HPFS/NTFS
/dev/sda2 4939 6050 8932140 f W95 Ext'd (LBA)
/dev/sda3 * 1 13 104391 83 Linux
/dev/sda4 6051 7297 10016527+ 8e Linux LVM
/dev/sda5 4939 6050 8932108+ 7 HPFS/NTFS

still can't boot to XP when i choose window on the fedora boot menu computer still running but the LCD was to the stand-by mode (orange light)

in the menu.lst , i change 0,4 to 0,0 ,it sometime work , work means sometime can see the window boot menu only but can't boot into window , i say it before if 0,4 to 0,1 it can't be work


All times are GMT -5. The time now is 11:18 AM.