LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Dual Boot Windows Xp and Linux (https://www.linuxquestions.org/questions/linux-newbie-8/dual-boot-windows-xp-and-linux-117909/)

CtPoem 11-19-2003 03:11 PM

Dual Boot Windows Xp and Linux
 
Hi,

I really need some help here as I am a real newb when it comes to Linux. Right.. well what happned was I partitioned my hard-drive with Partition Magic when I was on win XP and then let it reboot and partition the drive. It then went on to install Red Hat 9 on the new partition. I now have a partition at the beggining the SWAP partition, then Windows Xp and then Linux.
Ok.. well the problem is when I boot up the computer all it does is go to the grub boot loader and only gives me the option to run Linux. I know that my windows partition is still there and everything is still on it.. but I just cant access it... please help....
Oh btw.... Linux is on hda1 and WindowsXP is on hda2 and I think the SWAP is on hda0 partition. The names got a bit mixed around because of a bad first go at installing Linux a while before. Does this make any difference?

Please help :|

leroy27336 11-19-2003 03:41 PM

you have to first figure out if you are using lilo or grub to boot, once you figure that out you perform one of the two following things. to figure out what is the partition numer xp is loaded on you will have to type:

"fdisk -l" at the command line:


Add this entry to /etc/lilo.conf, then rerun lilo.

other = /dev/hda1
table = /dev/hda
label = Windows

The other points to the partition containing Windows and table points to the partition table of the disk.

Add this entry to /boot/grub/grub.conf

title Windows
root (hd0,0)
makeactive
chainloader +1

According to the grub disk numbering, /dev/hda is hd0, hdb is hd1, etc. The partitions are numbered from zero. Therefore, hda1 is hd0,0, hdc4 is hd2,3.

CtPoem 11-20-2003 03:19 AM

Ok... Well I think I am running the grub booter but where is the command line I need to type fdisk -l ... is at the booter when I start the computer and it gives me the option to run linux ??

Is that also the place I need to type the other bits too or am I supposed to typed them into a command prompt in linux itself ??

Sorry ... am a real newb at linux as I said b4...

guygriffiths 11-20-2003 05:21 AM

A command line is invoked by running a program.
If you use Gnome, right-click and pick the New Terminal option (it's something like this anyway)
In KDE, click the K menu, System, Konsole, or press Alt-F2, type konsole and press enter

Then type fdisk -l and press enter
The other bits you need to add to the file /etc/grub.conf, which you should open with a text editor. You can probably use kedit or gedit (depending whether you use KDE or Gnome) which will be in the menus, or you can start them by typing "kedit" or "gedit" at the command line.

CtPoem 11-20-2003 12:08 PM

rite... well I tried alll that an got on ok.. but I still cant run windows .... let me show you some of my specs...

HARD DRIVE ::

/dev/hda
--------------1 1 < Free Space
hda3-------1 64 502 linux-swap
-------------65 65 <1 Free space
hda2------65 5156 39943 ntfs
hda1------5157 9538 34373 ext2
-------------9539 9539 <1 Free Space



GRUB.CONF file ( I have edited as you told me) ::


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/hda1
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=LINUX hdd=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title Windows
root (hd0,1)
makeactive
chainloader+1




When I load up the booter it gives me the option for windows but when I chose it .. the screen just goes to boot up .. and then goes back to the grub booter...

What am I doing wrong ???

Oh btw ... when I typed fdisk -l in the terminal all I got was bash: fdisk: command not found..

Please respond as soon as ya can :)

leroy27336 11-20-2003 12:59 PM

what happens if you add this into the grup.conf:


title Windows XP
rootnoverify (hd0, 1)
chainloader +1

exactly like that......that should be right under

initrd /initrd-2.4.20-8.img

leroy27336 11-20-2003 01:00 PM

mine doesn't have "makeactive"....that might be the thing screwing you up

CtPoem 11-20-2003 04:06 PM

ok everyone.. didnt exactly work as planned.. but in the end I re formatted the partition and put a boot up option for windows in there and it works ok...

New problem though:(

When I chose windows... it starts booting up ok.. and goes to the blue login screen as it usually would but before it brings up login details it displays this message on the screen...

xmnt2002 NOT FOUND - SKIPPING AUOTCHECK
autochk NOT FOUND - SKIPPING AUTOCHECK

then it reboots...

Now.. I have viewed a few other forums of people that have had the same problems and it has been when they have used partition magic and it has set the windows partition to hidden...
they changed it back to visible ( ie set the status to none ) and it works fine...

How do I set it to visible ?? I dont have a boot disk so I cant do it through ms-dos .. can i do it on Red Hat ??


All times are GMT -5. The time now is 08:10 AM.