Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help, overview for dual boot gentoo/winxp on sata raid0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ciM2pHat4U
n00b
n00b


Joined: 17 Jul 2006
Posts: 2

PostPosted: Mon Jul 17, 2006 12:43 am    Post subject: Help, overview for dual boot gentoo/winxp on sata raid0 Reply with quote

Hi I would appreciate if anyone with experience with my situation could just provide a quick overview of the things I will need to do to set up Gentoo correctly and quickly, taking into consideration my computer setup:

- My computer uses two SATA hard drives that are set up in RAID-0 by the BIOS.
- WinXP is already installed on my hard drive (ie the two drives which are in RAID-0).
- WinXP is the only operating system that has ever been installed.
- I would like dual boot option, to be able to use either Gentoo or WinXP.
- When using Gentoo, I want to be able to access files like documents, spreadsheets, pictures, etc that are already on my hard drive (ie files that were created with WinXP, which I assume are NTFS? don't know if that's right). Also vice versa, so I will be able to access, from WinXP, any documents created in Gentoo.
- My computer has a wire network card and a wireless network card. However, I can only use the wireless card because my computer is physically too far away from my cable modem. The wireless card is D-Link G510 and the wireless router is D-Link DI-524.
- Misc: CPU is Pentium 4 2.8E w/ HT, overclocked to 3.15 ghz. I have prepared a CD of the Gentoo LiveCD 2006.0 installer/boot disc, the one that should allow networkless install. I read somewhere that to configure the wireless network correctly I should use this networkless install?

Anyway, I am totally new to Gentoo and Linux. But I am a technical/computer-oriented person so please feel free to describe any why's and how's.

Thanks in advance!
Ray
Back to top
View user's profile Send private message
Ast0r
Guru
Guru


Joined: 11 Apr 2006
Posts: 404
Location: Dallas, Tx - USA

PostPosted: Mon Jul 17, 2006 6:34 am    Post subject: Reply with quote

If your disk does not have a free partition with enough space for Gentoo (at least 10GB I would say) then you will need to use a program like PartitionMagic (you should be able to find a torrent to download it if you don't have it). Once you have such a program, you will need to create at least two partitions, one for the root filesystem, and one for swap. The swap should be about twice the size of your physical RAM, unless you have a lot of RAM (anything over a 1GB swap is really overkill). My Gentoo install currently occupies about 29GB (including UT2004 and a bunch of apps), so I would recommend 40GB or so if you can spare it.

Once you have the disk partitioned, note what your partition numbers will be (they count starting at 1). Then follow the Gentoo handbook for the install. It tells you how to go everything, including setting up your bootloader for dual-boot with Windows. You'll have to set the partition types using fdisk in the LiveCD (I believe the install docs go over this).

You will be able to access your Windows stuff from Gentoo, provided that you compile NTFS support into the kernel. Be warned, however, that there is not full write-support for NTFS in the kernel yet. However, the FAT32 write support is excellent. I have a FAT32 partition so that I can exchange files between the OS's. All of my work stuff is on that partition so that I can edit in in both Linux and Windows.

As far as accessing your Linux data in Windows, I know it is possible, but you'll need to select the filesystem type carefully (use ext3 ... not reiser of XFS). You could always install Linux on a FAT32 partition, but I wouldn't recommend it.

If you have any trouble, feel free to post back in this thread; the Gentoo forums are full of friendly people that are willing to help you if you explain your problems.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Mon Jul 17, 2006 6:50 am    Post subject: Reply with quote

The next problem is the bootlader.
You can´t use grub, since Grub can´t boot a raid 0 Windows partition.
In this case, you should use lilo.
Back to top
View user's profile Send private message
Ast0r
Guru
Guru


Joined: 11 Apr 2006
Posts: 404
Location: Dallas, Tx - USA

PostPosted: Mon Jul 17, 2006 7:04 am    Post subject: Reply with quote

Keruskerfuerst wrote:
Grub can´t boot a raid 0 Windows partition.

Really? That seems like a critical feature to have.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Mon Jul 17, 2006 8:21 am    Post subject: Reply with quote

Just have a look at the grub manual.
Back to top
View user's profile Send private message
ciM2pHat4U
n00b
n00b


Joined: 17 Jul 2006
Posts: 2

PostPosted: Mon Jul 17, 2006 2:00 pm    Post subject: Reply with quote

Hey thanks for responding. When I use the LiveCD installer, at the step where I am to design my partitions it shows me my two hard drives seperately, as sda and sdb. Is this correct, I mean shouldn't the two hard drives show up as only one big drive since it is in RAID0 at the BIOS level?

I would like to use the default recommended 3 partition setup (boot, swap, root), so should I only do this for sda, or both sda and sdb? Will using only sda physically correspond to using only one hard drive, or will it know to split the setup between both raid0 sata hard drives?

Also, at this step it doesn't show me any portions of my hard drives that are already used (such as the existing windows). If I choose the recommended partition setup, will that be erasing/overwriting existing WinXP or other data?
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Jul 17, 2006 11:21 pm    Post subject: Reply with quote

ciM2pHat4U wrote:
at the step where I am to design my partitions it shows me my two hard drives seperately, as sda and sdb. Is this correct ?

This would be correct if you were not using RAID.

Be careful, if you write any data to the individual drives, it will corrupt whatever is stored on the array.

I think what you are looking for is dmraid (search the forums for more details).
Back to top
View user's profile Send private message
LoSeR_5150
Guru
Guru


Joined: 20 Mar 2005
Posts: 455
Location: San Francisco, CA

PostPosted: Tue Jul 18, 2006 8:21 am    Post subject: Reply with quote

I hate to say this but why does grub not boot Raid O Winxp ??? I have two 80 Gb 's running raid 0 with Gentoo and WinXP Anyways .... I am using dmraid w/ gentoo-sources-2.6.15-r8 until a new dmraid that is compatible with 2.16+ kernels is in portage. Anyways for ur install u can use partition magic as suggested but if u could it would be much better to just throw a livecd in.... boot it with dodmraid option, then fdisk /dev/mapper/yourraidarray create a boot(type 83) partition, then a ntfs partition(type 7) for windows as there is no need to use fat32 since there is full read/write support for NTFS built into the kernel if u so desire, then a root(type83) and swap(type82) for linux. after that u reboot and install winxp like normal. then when that is finished u pop ur live cd back in and install gentoo the only difference will be ur grub.conf and kernel setup. I'm using genkernel --menuconfig --dmraid --gensplash=livecd-2006.0 so i can set my kernel options manually as well as get a framebuffer splash as well as dmraid in my initrd there is a great guide on how to install fake hardware raid (onboard raid controllers) with a dual boot setup on gentoo-wiki.com under the howto section. I'll post my grub.conf and fstab so u will have an idea of what yours will need to look like. Cheers

grub.conf
Code:

default 0
timeout 5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz


title=GENTOO LINUX
root (hd0,0)
kernel /kernel root=/dev/ram0 init=/linuxrc real_root=/dev/mapper/via_bfdagjdhad
3 dodmraid vga=0x318 video=vesafb:mtrr:3,ywrap splash=silent,fadein,theme:livecd
-2006.0 quiet CONSOLE=/dev/tty1
initrd /initrd

title=MEMTEST86+
root (hd0,0)
kernel /memtest86plus/memtest.bin

title=WINDOWS XP SP2
rootnoverify (hd0,1)
makeactive
chainloader +1


fstab
Code:

# <fs>                          <mountpoint>    <type>          <opts>                  <dump/pass>

/dev/mapper/via_bfdagjdhad1     /boot           reiserfs        noauto,noatime,notail           1 2
/dev/mapper/via_bfdagjdhad3     /               reiserfs        noatime,notail                  0 1
/dev/mapper/via_bfdagjdhad4     none            swap            sw                              0 0
/dev/hdc                        /mnt/dvdrw      auto            noauto,user                     0 0
/dev/fd0                        /mnt/floppy     auto            noauto,user                     0 0

proc                    /proc           proc            defaults                                0 0

shm                     /dev/shm        tmpfs           nodev,nosuid,noexec                     0 0


heres the link to the gentoo wiki, look for Install Gentoo on Bios (Onboard) RAID
http://gentoo-wiki.com/Index:HOWTO
_________________
Opteron 1356@2.4Ghz
6GB DDR2 800Mhz
128MB Quadro NVS 210S
640GB Western Digital HD
*Gentoo-x86_64-2.6.30-r1

Opteron175@2.2GHz
2GB DDR 400MHz
256MB Quadro 1400 Go
(2) 80GB Segate HDs: RAID0
*Gentoo-x86_64-2.6.30-r1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum