Jagged2600
09-16-2002, 05:57 PM
Allrighty - plenty of you have seen this before, but I'm just putting this up here in case some newer people were wondering how to do the whole 'dual boot' thing with XP and Linux, and not to mention the Wireless PCI adapter :)
Equipment:
Western Digital Caviar 40.0 GB
Maxtor 80.0 GB
First thing: Partition the HDD
this is what my partition table looks like for the 40 GB:
/hda1 200 MB Linux mounted under /boot
/hda2 26 GB WinXP
/hda3 1 GB Linux SWAP
/hda4 12.5 GB Linux mounter under /
--for optimization, you would want the swap and / partitions to be physically next to each other (go by the cylinder #'s while partitioning)
and the 80 GB
/hde1 32 GB FAT32 for rw access in both XP and Linux (evidently XP will only support 32 GB of FAT32)
/hde2 68 GB NTFS rw access in XP and ro in Linux
/hde2 is going to be the host for all my MP3's and related media
/hde1 is for filesharing between the OS's (documents, C/C++ projects, etc.)
now that we have the partitions set up, we can install the OS's
1st - Install Windows XP to the /hda2 partition (windows likes to be the first OS on the drive, might have some issues here)
two hours later....
2nd - Install Linux (make sure you have NTFS support loaded)
make sure you install LILO to the MBR (I used LILO, so only LILO is covered here)
during the install for RedHat 7.3, you should see you windows partition there, edit the label for it to say.. WinXP and set your default to whichever OS you want
if you cannot see your windows partition during the install... no worries, we can fix that
Now, we boot up linux and configure LILO:
emacs /etc/lilo.conf (or use the editor of your choice, but you must edit /etc/lilo.conf) /dev/hda2 is the location of my windows partition, yours may be different depending on how you set up your table
add the following lines to the bottom of the config file:
other=/dev/hda2
label=WinXP
now, save and exit
from the console run:
/sbin/lilo
you should get:
Added *linux
added WinXP
run this to double-check:
/sbin/lilo -q
you should see:
*linux
WinXP
if you get an error about cylinder size, add this line near the begining of the conf:
lba32
if you want to change your default OS, there should be a line near the top "default=/boot" change that to "default=/dev/hda2"
now that we have that set up, we configure the filesharing
you will need to make some dir's on / to mount the shared partitions, lets call the FAT32 "shared", NTFS "shared2", and the WinXP partition "WinXP"
you will now need to
cd /
mkdir shared
mkdir shared2
mkdir WinXP
cd into the dir's to make sure you created them right
time to edit the fstab now:
emacs fstab
add these lines to the bottom:
/dev/hda2 /WinXP ntfs defaults, ro 0 0
/dev/hde1 /shared auto defaults 0 0
/dev/hde2 /shared2 ntfs defaults, ro 0 0
now... some of the config settings like "defaults" and "ro" may be slightly different, you can search to figure out any errors you may get
run this command to mount the partitions:
mount -a
if you get any errors about ntfs not being supported, run:
modprobe ntfs
if you get an error there, you didnt install NTFS support and you will need to install that module (either reinstall, or rebuild the kernel witht the module are your options i believe)
if you did not get any errors cd /WinXP and check out your WinXP drive :)
and now to configure the wireless PCI adapter:
If you're using RedHat, there are RPM's available
check out http://prism2.unixguru.raleigh.nc.us/ for the RPMs
i downloaded the RPMs, there are three you need
one is:
linux-*.rpm
linux-*doc*.rpm
linux-*RedHat*.rpm
where the * represents characters I can't remember right now, and version information
install the rpms in the above order
now, edit /etc/rc.local
(my WAP does not have a WEP key, refer to the DOCs for WEP keys)
(refer to the DOC's for specifics, this is a generalization)
add the following lines:
modprobe prism2_pci
wlanctl wlan0 ifstateEnabled=true authtype=opensystem
wlanctl wlan0 LanIP netmask NetMaskIP broadcast broadcastIP
route add default gw gatewayIP
and you should be good to go (please please please check the DOCs to make sure you got it configure correctly)
make sure the wlan module gets loaded with the kernel
now reboot, and wlan0 should start up
(even if wlan (not wlan0) gives an error message, it should work)
and boom! Wireless internet, WinXP, Linux, and shared HDD's :)
Equipment:
Western Digital Caviar 40.0 GB
Maxtor 80.0 GB
First thing: Partition the HDD
this is what my partition table looks like for the 40 GB:
/hda1 200 MB Linux mounted under /boot
/hda2 26 GB WinXP
/hda3 1 GB Linux SWAP
/hda4 12.5 GB Linux mounter under /
--for optimization, you would want the swap and / partitions to be physically next to each other (go by the cylinder #'s while partitioning)
and the 80 GB
/hde1 32 GB FAT32 for rw access in both XP and Linux (evidently XP will only support 32 GB of FAT32)
/hde2 68 GB NTFS rw access in XP and ro in Linux
/hde2 is going to be the host for all my MP3's and related media
/hde1 is for filesharing between the OS's (documents, C/C++ projects, etc.)
now that we have the partitions set up, we can install the OS's
1st - Install Windows XP to the /hda2 partition (windows likes to be the first OS on the drive, might have some issues here)
two hours later....
2nd - Install Linux (make sure you have NTFS support loaded)
make sure you install LILO to the MBR (I used LILO, so only LILO is covered here)
during the install for RedHat 7.3, you should see you windows partition there, edit the label for it to say.. WinXP and set your default to whichever OS you want
if you cannot see your windows partition during the install... no worries, we can fix that
Now, we boot up linux and configure LILO:
emacs /etc/lilo.conf (or use the editor of your choice, but you must edit /etc/lilo.conf) /dev/hda2 is the location of my windows partition, yours may be different depending on how you set up your table
add the following lines to the bottom of the config file:
other=/dev/hda2
label=WinXP
now, save and exit
from the console run:
/sbin/lilo
you should get:
Added *linux
added WinXP
run this to double-check:
/sbin/lilo -q
you should see:
*linux
WinXP
if you get an error about cylinder size, add this line near the begining of the conf:
lba32
if you want to change your default OS, there should be a line near the top "default=/boot" change that to "default=/dev/hda2"
now that we have that set up, we configure the filesharing
you will need to make some dir's on / to mount the shared partitions, lets call the FAT32 "shared", NTFS "shared2", and the WinXP partition "WinXP"
you will now need to
cd /
mkdir shared
mkdir shared2
mkdir WinXP
cd into the dir's to make sure you created them right
time to edit the fstab now:
emacs fstab
add these lines to the bottom:
/dev/hda2 /WinXP ntfs defaults, ro 0 0
/dev/hde1 /shared auto defaults 0 0
/dev/hde2 /shared2 ntfs defaults, ro 0 0
now... some of the config settings like "defaults" and "ro" may be slightly different, you can search to figure out any errors you may get
run this command to mount the partitions:
mount -a
if you get any errors about ntfs not being supported, run:
modprobe ntfs
if you get an error there, you didnt install NTFS support and you will need to install that module (either reinstall, or rebuild the kernel witht the module are your options i believe)
if you did not get any errors cd /WinXP and check out your WinXP drive :)
and now to configure the wireless PCI adapter:
If you're using RedHat, there are RPM's available
check out http://prism2.unixguru.raleigh.nc.us/ for the RPMs
i downloaded the RPMs, there are three you need
one is:
linux-*.rpm
linux-*doc*.rpm
linux-*RedHat*.rpm
where the * represents characters I can't remember right now, and version information
install the rpms in the above order
now, edit /etc/rc.local
(my WAP does not have a WEP key, refer to the DOCs for WEP keys)
(refer to the DOC's for specifics, this is a generalization)
add the following lines:
modprobe prism2_pci
wlanctl wlan0 ifstateEnabled=true authtype=opensystem
wlanctl wlan0 LanIP netmask NetMaskIP broadcast broadcastIP
route add default gw gatewayIP
and you should be good to go (please please please check the DOCs to make sure you got it configure correctly)
make sure the wlan module gets loaded with the kernel
now reboot, and wlan0 should start up
(even if wlan (not wlan0) gives an error message, it should work)
and boom! Wireless internet, WinXP, Linux, and shared HDD's :)