
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.sabayonlinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Fake_Raid_0_Bios_and_Dual_Boot_Sabayon_and_XP&amp;feed=atom&amp;action=history</id>
		<title>HOWTO: Fake Raid 0 Bios and Dual Boot Sabayon and XP - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Fake_Raid_0_Bios_and_Dual_Boot_Sabayon_and_XP&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Fake_Raid_0_Bios_and_Dual_Boot_Sabayon_and_XP&amp;action=history"/>
		<updated>2013-05-22T15:43:13Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.4</generator>

	<entry>
		<id>http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Fake_Raid_0_Bios_and_Dual_Boot_Sabayon_and_XP&amp;diff=5380&amp;oldid=prev</id>
		<title>BASH at 21:39, 5 August 2008</title>
		<link rel="alternate" type="text/html" href="http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Fake_Raid_0_Bios_and_Dual_Boot_Sabayon_and_XP&amp;diff=5380&amp;oldid=prev"/>
				<updated>2008-08-05T21:39:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== '''HOWTO: Fake Raid 0 Bios with Sabayon and XP''' ==&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''How to dual boot XP and Sabayon with RAID 0 INTEL ICH5(possibly others)'''&lt;br /&gt;
&lt;br /&gt;
I followed this guide as a reference so credit to them and their authors&lt;br /&gt;
&lt;br /&gt;
http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Bios_(Onboard)_RAID&lt;br /&gt;
&lt;br /&gt;
'''PART 1'''&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First things first, we need to set-up our drive and partition it, before installing XP.&lt;br /&gt;
Also, if you have to hit f6 everytime to load raid drivers for XP you might want to look @&lt;br /&gt;
http://www.nliteos.com/ It's called nlite and you can slipstream your raiddrivers and other things&lt;br /&gt;
It's worth checking out!&lt;br /&gt;
I used GParted as my tool to do this. So, go ahead and boot up the&lt;br /&gt;
Sabayon liveCD. I used the POD edition...&lt;br /&gt;
&lt;br /&gt;
A couple things you should do before you fire-up GParted is:&lt;br /&gt;
&lt;br /&gt;
      Go to the terminal and go into superuser mode via su and type root for password of course.&lt;br /&gt;
      type dmraid -a y this activates the raid array to make it easier when starting GParted&lt;br /&gt;
      we double check by typing ls /dev/mapper if it only says control then something is amiss&lt;br /&gt;
      if this all went well then go ahead and fire up GParted its time to partition our drives.It should&lt;br /&gt;
      show your total drive as one big one.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After ls /dev/mapper it should look something like this:&lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
    # ls /dev/mapper&lt;br /&gt;
    control                      isw_bcehhdfdci_TOWER_RAID16&lt;br /&gt;
    isw_bcehhdfdci_TOWER_RAID1   isw_bcehhdfdci_TOWER_RAID1p1&lt;br /&gt;
    isw_bcehhdfdci_TOWER_RAID11  isw_bcehhdfdci_TOWER_RAID1p2&lt;br /&gt;
    isw_bcehhdfdci_TOWER_RAID12  isw_bcehhdfdci_TOWER_RAID1p5&lt;br /&gt;
    isw_bcehhdfdci_TOWER_RAID15  isw_bcehhdfdci_TOWER_RAID1p6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We need to create 4 partitions and the first one will need to&lt;br /&gt;
be changed after XP is installed.&lt;br /&gt;
So for the first go round here is what you need to do...&lt;br /&gt;
&lt;br /&gt;
      Your First partition should be a fat32 drive and only 100MB or more;mine is 250MB playing it safe.&lt;br /&gt;
      Be sure this partition is set with a hidden flag! So Windows thinks its inactive and won't screw&lt;br /&gt;
      up its booting.However, after windows is installed this first partition will be ext2 and&lt;br /&gt;
      it's mount point will be /boot&lt;br /&gt;
      Your second partition will be your NTFS make this the size you want&lt;br /&gt;
      for windows, leaving room for your linux swap and ext3, or whatever fs.&lt;br /&gt;
      Next we will create an extended partition right after the NTFS&lt;br /&gt;
      This will be the rest of your hd.&lt;br /&gt;
      So, right after NTFS you should have extended and then your linux swap partition.&lt;br /&gt;
      The next partition will be the rest of your drive or however you want it.&lt;br /&gt;
      I chose to make the rest of my space an ext3 and its mount point will be / (root)&lt;br /&gt;
      The mount points will be set in anaconda the Sabayon installer after XP is installed.&lt;br /&gt;
      Go ahead and apply these changes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, once again. It should look like this&lt;br /&gt;
&lt;br /&gt;
      *fat32 100MB or &amp;gt; but not to huge with hidden flag&lt;br /&gt;
      *NTFS set with the boot flag&lt;br /&gt;
      *extended&lt;br /&gt;
      *linux swap&lt;br /&gt;
      *ext3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After thats all applied and everything is hunkydory, reboot with your windows XP CD and install&lt;br /&gt;
it to your NTFS partition.&lt;br /&gt;
&lt;br /&gt;
'''PART 2'''&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So you installed windows!Start your liveCD!&lt;br /&gt;
&lt;br /&gt;
Now we need to change that first partition in GParted, but before that&lt;br /&gt;
goto terminal in su mode again.&lt;br /&gt;
We need to activate the raid; makes life easier.Do you remember the command?&lt;br /&gt;
It's dmraid -a y and check it again by ls /dev/mapper&lt;br /&gt;
You will like the ls /dev/mapper since you can copy and paste the name of your RAID into&lt;br /&gt;
other parts that need them.&lt;br /&gt;
Ok--Lets go into GParted and change that first partition to ext2 with no flags.&lt;br /&gt;
Apply the changes, it might not take the first time(for some reason) and you may have to do it again.&lt;br /&gt;
&lt;br /&gt;
Yeah! Now we are ready to install Sabayon!&lt;br /&gt;
&lt;br /&gt;
Go ahead and start your live install!&lt;br /&gt;
When you get to the partitioning screen pick manual partitioning and now we can set our mount points!&lt;br /&gt;
&lt;br /&gt;
Do it the way I said in part 1:&lt;br /&gt;
&lt;br /&gt;
      *first partition will be mount point of /boot Chose do not format on all of them!&lt;br /&gt;
      *last partition will be ext 3 and mounted at / (root)&lt;br /&gt;
      *or however you decide to do it, but this is the easiest&lt;br /&gt;
      *Also Important keep notes of the numbers in this window like name of array and all the raid#'s in the window; this makes life easy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you get to your grub installer go ahead and set that up; go to advanced and pick the first option&lt;br /&gt;
dmraid MBR;also for ease in setting up your grub.conf file later, go ahead and pick the partition for your&lt;br /&gt;
XP if it didn't detect it.&lt;br /&gt;
&lt;br /&gt;
Start installing!WARNING THIS MIGHT STALL THE FIRST TIME! It did this to me twice...and you will have&lt;br /&gt;
to reset your mountpoints again! Just remember before starting anaconda again to&lt;br /&gt;
set the raid active dmraid -a y for peace of mind! BUT DO NOT FORMAT IF IT DOES THIS INSTALL OVER TOP! IT WILL BE FINE!&lt;br /&gt;
&lt;br /&gt;
After we are done installing Sabayon don't reboot since grub has no idea what to do(unless you want&lt;br /&gt;
to boot from the liveCD again and mount the drive)...&lt;br /&gt;
Now, we need to define grub correctly and our different boot partitions, right?...So we need to set-up&lt;br /&gt;
Grub! To do this we need to access that partition--Lets hit the terminal again and go into su mode&lt;br /&gt;
remember the ls /dev/mapper command? Let's enter that so we can copy and paste the name of our raid!&lt;br /&gt;
Pick the one that is your / (root) partition. We need to mount that drive...So if you don't know already--&lt;br /&gt;
*type mkdir mnt/root&lt;br /&gt;
*type mount /dev/mapper/your_raid_root_partition_here /mnt/root&lt;br /&gt;
*type chown root:root /mnt/root&lt;br /&gt;
*type chroot /mnt/root&lt;br /&gt;
&lt;br /&gt;
Now, you should notice a command line change.We have to tell Grub we are specifying&lt;br /&gt;
our devices manually...&lt;br /&gt;
&lt;br /&gt;
Time to get our hands dirty!&lt;br /&gt;
&lt;br /&gt;
*type grub --device-map=/dev/null&lt;br /&gt;
&lt;br /&gt;
We are now at the grub command prompt--&lt;br /&gt;
&lt;br /&gt;
We need to specify where our partitions are:&lt;br /&gt;
&lt;br /&gt;
*type device (hd0) /dev/mapper/copy and paste the name of your raid set here&lt;br /&gt;
&lt;br /&gt;
We also need to specify our drive geometry by specifying our cylinders heads and sectors&lt;br /&gt;
&lt;br /&gt;
This is an easy task!&lt;br /&gt;
Go back into su mode in a different terminal and type cfdisk /dev/mapper/paste the name of your raid here&lt;br /&gt;
&lt;br /&gt;
You should get an output something like this:&lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
                  cfdisk (util-linux-ng 2.13.1)&lt;br /&gt;
&lt;br /&gt;
                   Disk Drive: /dev/mapper/isw_bcehhdfdci_TOWER_RAID1&lt;br /&gt;
                           Size: 320080969728 bytes, 320.0 GB&lt;br /&gt;
                ''' Heads: 255   Sectors per Track: 63   Cylinders: 38914'''&lt;br /&gt;
&lt;br /&gt;
        Name        Flags      Part Type  FS Type          [Label]        Size (MB)&lt;br /&gt;
    ------------------------------------------------------------------------------&lt;br /&gt;
        isw_bcehhdfdci_TOWER_RAIPrimary   Linux ext2                         263.21&lt;br /&gt;
        isw_bcehhdfdBootOWER_RAIPrimary   NTFS             [^R]           157283.81&lt;br /&gt;
        isw_bcehhdfdci_TOWER_RAILogical   Linux swap / Solaris              3142.06&lt;br /&gt;
        isw_bcehhdfdci_TOWER_RAILogical   Linux ext3                      159389.48&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice the bold section above?Now we can use that in our grub terminal!&lt;br /&gt;
&lt;br /&gt;
Lets specify the drive geometry in Grub terminal.&lt;br /&gt;
&lt;br /&gt;
*type geometry (hd0) C H S&lt;br /&gt;
Where the C H S above corresponds with your cfdisk; keep your spacing.&lt;br /&gt;
&lt;br /&gt;
Now Grub knows where the boot partition is and where to write the MBR!&lt;br /&gt;
&lt;br /&gt;
We are ready to install Grub...&lt;br /&gt;
&lt;br /&gt;
*type root (hd0, and hit tab key here it should display your partitions.)&lt;br /&gt;
pick the partition that is your /boot one. It is most likely 0&lt;br /&gt;
&lt;br /&gt;
*next we type set-up (hd0)&lt;br /&gt;
&lt;br /&gt;
Before we type quit in Grub lets check the partitions again&lt;br /&gt;
&lt;br /&gt;
So we know the partition numbers for XP and Linux but do not hit enter!&lt;br /&gt;
&lt;br /&gt;
*type root (hd0,hit tab then back space&lt;br /&gt;
&lt;br /&gt;
You should have one that shows as a ext2(x83) partition and on that show NTFS (x7)&lt;br /&gt;
Save those numbers and remember where they go for the grub.conf&lt;br /&gt;
&lt;br /&gt;
Now *type quit&lt;br /&gt;
&lt;br /&gt;
We are done with that! It's grub.conf time! We can close that out and start a new terminal in su mode&lt;br /&gt;
&lt;br /&gt;
We have to mount our /boot partition to get at the grub.conf&lt;br /&gt;
&lt;br /&gt;
So we need to mount that drive:&lt;br /&gt;
&lt;br /&gt;
Remember how?&lt;br /&gt;
&lt;br /&gt;
*type mkdir /mnt/boot&lt;br /&gt;
*type mount /dev/mapper/copyandpastetheraidnameofyourbootdrivehere /mnt/boot&lt;br /&gt;
&lt;br /&gt;
You won't chroot that--&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we can open her up!&lt;br /&gt;
&lt;br /&gt;
*type abiword /mnt/boot/boot/grub/grub.conf&lt;br /&gt;
&lt;br /&gt;
We should have our grub.conf before us and being in su mode we can save it when we are done!&lt;br /&gt;
&lt;br /&gt;
I'll give you the example from the gentoo guide and then mine and it should be easy to decipher&lt;br /&gt;
&lt;br /&gt;
Code: &lt;br /&gt;
    #nano /boot/grub/grub.conf&lt;br /&gt;
&lt;br /&gt;
    default 0&lt;br /&gt;
    timeout 10&lt;br /&gt;
    splashimage (hd0,0)/grub/splash.xpm.gz&lt;br /&gt;
&lt;br /&gt;
    title Gentoo Linux&lt;br /&gt;
    kernel (hd0,0)/your_kernel_image root=/dev/ram0 real_root=/dev/mapper/your_raid_set* init=/linuxrc ramdisk=8192 dodmraid udev&lt;br /&gt;
    #(change your_raid_set* to your root partition)&lt;br /&gt;
    #init=/linuxrc may be needed if you get errors after the ramdrive loading&lt;br /&gt;
    #udev is needed on some newer boards, add this if during boot it fails to find root&lt;br /&gt;
    initrd (hd0,0)/your_initrd_image&lt;br /&gt;
&lt;br /&gt;
    title Windows XP SP2&lt;br /&gt;
    rootnoverify (hd0,1)&lt;br /&gt;
    makeactive&lt;br /&gt;
    chainloader +1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This above is a good guide for what goes where;now my grub.conf file&lt;br /&gt;
&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    # grub.conf generated by the Sabayon Linux Installer&lt;br /&gt;
    #&lt;br /&gt;
    # Note that you do not have to rerun grub after making changes to this file&lt;br /&gt;
    # NOTICE: You have a /boot partition. This means that&lt;br /&gt;
    # all kernel and initrd paths are relative to /boot/, eg.&lt;br /&gt;
    # root (hd0,0)&lt;br /&gt;
    # kernel /kernel-genkernel real_root=/dev/mapper/isw_bcehhdfdci_TOWER_RAID16&lt;br /&gt;
    # initrd /initramfs-genkernel&lt;br /&gt;
    #boot=mapper/isw_bcehhdfdci_TOWER_RAID&lt;br /&gt;
    default=0&lt;br /&gt;
    timeout=6&lt;br /&gt;
    splashimage=(hd0,0)/grub/splash.xpm.gz&lt;br /&gt;
&lt;br /&gt;
    title Sabayon Linux x86 3.5 (genkernel-x86-2.6.25-sabayon-r1)&lt;br /&gt;
    root (hd0,0)&lt;br /&gt;
    kernel /kernel-genkernel-x86-2.6.25-sabayon-r1 root=/dev/ram0 ramdisk=8192 dodmraid udev real_root=/dev/mapper/isw_bcehhdfdci_TOWER_RAID16 dolvm quiet init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 resume=swap:/dev/mapper/isw_bcehhdfdci_TOWER_RAID15&lt;br /&gt;
    initrd /initramfs-genkernel-x86-2.6.25-sabayon-r1&lt;br /&gt;
&lt;br /&gt;
    title Sabayon Linux x86 3.5 (genkernel-x86-2.6.25-sabayon-r1) (safe mode)&lt;br /&gt;
    root (hd0,0)&lt;br /&gt;
    kernel /kernel-genkernel-x86-2.6.25-sabayon-r1 root=/dev/ram0 ramdisk=8192 dodmraid udev real_root=/dev/mapper/isw_bcehhdfdci_TOWER_RAID16 dolvm init=/linuxrc CONSOLE=/dev/tty1 resume=swap:/dev/mapper/isw_bcehhdfdci_TOWER_RAID15 nox acpi=off ide=nodma vga=normal&lt;br /&gt;
    initrd /initramfs-genkernel-x86-2.6.25-sabayon-r1&lt;br /&gt;
&lt;br /&gt;
    title XP PRO&lt;br /&gt;
    rootnoverify (hd0,1)&lt;br /&gt;
    makeactive&lt;br /&gt;
    map (hd0,0) (hd0,1)&lt;br /&gt;
    map (hd0,1) (hd0,0)&lt;br /&gt;
    chainloader +1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also, note the map command at the end; this is needed so Winblows believes its on the first partition!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is also kind of a rough draft so if any mistakes were made or problems let me know!&lt;br /&gt;
&lt;br /&gt;
'''TESTING'''&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is my speeds if you want to see how to test it--&lt;br /&gt;
&lt;br /&gt;
 # hdparm -tT /dev/mapper/isw_bcehhdfdci_TOWER_RAID1 &lt;br /&gt;
&lt;br /&gt;
/dev/mapper/isw_bcehhdfdci_TOWER_RAID1:&lt;br /&gt;
 Timing cached reads:   1986 MB in  2.00 seconds = 993.63 MB/sec&lt;br /&gt;
 Timing buffered disk reads:  346 MB in  3.01 seconds = 115.09 MB/sec&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Forum Discusion[[http://www.sabayonlinux.org/forum/viewtopic.php?f=57&amp;amp;t=14376]] Another Discussion [[http://www.sabayonlinux.org/forum/viewtopic.php?f=50&amp;amp;t=13985]]&lt;/div&gt;</summary>
		<author><name>BASH</name></author>	</entry>

	</feed>