PDA

View Full Version : How To ADD Windows 2K or XP to the Grub.



imdeemvp
28th December 2004, 08:25 AM
Editing the /etc/fstab to add windows xp or 2000 and to mount a fat32 windows partition.

If you are doing a dual boot with Fedora Core and Windows 2000 or XP anaconda should add it to the grub automatically. If you need to restore the grub after re-installing windows follow this tutorial. (http://www.fedoranews.org/contributors/bob_kashani/grub/)

If you are installing Fedora Core in primary hard drive and have Windows 2000 or XP on slave drive you will need to add the lines to /etc/grub.conf.

UPDATE: for FC 4 the grub is located here: /boot/grub/grub.conf

Open terminal become root and type:
gedit /etc/grub.conf and add this lines for your windows entry:
title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1Dont forget to click on SAVE.

HOW TO MOUNT FAT32 PARTITIONS IN FEDORA:
If you have Windows 95, 98 or ME and want to mount a FAT32 partition . Now we have to see the partition table so open terminal, become root and run:

/sbin/fdisk -l
You should get something like this:

[imdeemvp@myFC4 ~]$ su
Password:
[root@myFC4 imdeemvp]# /sbin/fdisk -l

Disk /dev/hda: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 4866 38981722+ 8e Linux LVM

Disk /dev/hdb: 61.4 GB, 61492838400 bytes
240 heads, 63 sectors/track, 7943 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 5268 39826048+ 7 HPFS/NTFS
/dev/hdb2 5269 7943 20223000 c W95 FAT32 (LBA)
[root@myFC4 imdeemvp]#
Now lets make directory to mount the fat32 partition which I will name fcstorage:

mkdir /mnt/fcstorage
Run this command to mount the partition:
mount /dev/hdb2 /mnt/fcstorage
Now edit the /etc/fstab to make it mount everytime:

gedit /etc/fstaband this line to it:

/dev/hdb2 /mnt/fc3storage vfat users,rw,owner,umask=000 0 0and DONE!

Please note I am using /dev/hdb2 as an example which is my slave drive.
Many new comers are asking this question very frequently so here is the answer.
:D

pgmoscatt
8th April 2005, 09:09 AM
Thanks guys.... well I think I'm slowly getting there.

Thanks again for the help.

Pete