View previous topic :: View next topic |
Author |
Message |
Shadowplane676 n00b
Joined: 08 Apr 2005 Posts: 34 Location: Windsor Locks, CT
|
Posted: Sun Apr 17, 2005 1:52 am Post subject: Need help with GRUB |
|
|
i am trying to do a dual boot system on the raid 0 array 1, so far, i have windows on a 15gb raid 0 and / on another 15gb partition. my question is how do i convince grub to work and install on the correct device (which is that anyways?)
so far i can mount /dev/md0 (the / directory) and chroot no problem, i have already compiled my kernel and await only a working boodloader that will work with the RAID and a dualboot option. so far i have been unable to uncover anything that will work for my system (that im aware of or could understand/find. some help would be much appreciated, thanks.
hardware is:
DFI Lanparty SLI 939 mainboard
AMD 64 3500
2 GB kingston DDR400
GF 6600GT Video card
2 74gb Raptors (RAID 0 array 1)
2 160gb WD (RAID 0 array 2)
1 400gb seagate (standalone) _________________ Trust me.....I do this ALL the time |
|
Back to top |
|
|
Gherald Veteran
Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Sun Apr 17, 2005 1:54 am Post subject: |
|
|
/boot must be on a non-raid (or at least raid 1) partition... I recommend around 100mb. This is where grub and your kernel images will go.
For the kernel's command line, do root=/dev/md0 |
|
Back to top |
|
|
Shadowplane676 n00b
Joined: 08 Apr 2005 Posts: 34 Location: Windsor Locks, CT
|
Posted: Sun Apr 17, 2005 4:00 pm Post subject: |
|
|
so, a 100mb nonraid partition would work, but then how would i set up the booting? i.e. how do i set up the MBR that windows uses already with grub for the dual boot? on the first drive /dev/sda? i tried that and it doesn't work, won't recognize it. i have a raid 1 array of 2 50mb partitions, but it doesn't initialize when i do raidstart -a.
(raid array 1 consists of sda and sdb) _________________ Trust me.....I do this ALL the time |
|
Back to top |
|
|
Gherald Veteran
Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Sun Apr 17, 2005 10:46 pm Post subject: |
|
|
Shadowplane676 wrote: | so, a 100mb nonraid partition would work, but then how would i set up the booting? i.e. how do i set up the MBR that windows uses already with grub for the dual boot? on the first drive /dev/sda? i tried that and it doesn't work, won't recognize it. i have a raid 1 array of 2 50mb partitions, but it doesn't initialize when i do raidstart -a.
(raid array 1 consists of sda and sdb) |
I don't quite follow what you're trying to do... post fdisk -ls |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Sun Apr 17, 2005 11:13 pm Post subject: |
|
|
Shadowplane676 wrote: | so, a 100mb nonraid partition would work, but then how would i set up the booting? i.e. how do i set up the MBR that windows uses already with grub for the dual boot? on the first drive /dev/sda? i tried that and it doesn't work, won't recognize it. i have a raid 1 array of 2 50mb partitions, but it doesn't initialize when i do raidstart -a.
(raid array 1 consists of sda and sdb) |
Understanding your setup is confusing.
a) Linux software raid uses partitions, so your last line above is wrong.
b) GRUB will replace the Windows bootloader. It will boot Windows also.
c) Is the Windows raid partitions using Windows software dynamic disks?
Posting what Gherald asked for will greatly help. |
|
Back to top |
|
|
Shadowplane676 n00b
Joined: 08 Apr 2005 Posts: 34 Location: Windsor Locks, CT
|
Posted: Tue Apr 19, 2005 6:57 pm Post subject: |
|
|
ok my drives are as follows
/dev/sda : raid 0 array 1 - 15gb windoze, 15gb linux, / directory mounts off of livecd as /dev/md0 using raidstart
/dev/sdb : raid 0 array 1 - ""
/dev/sdc : raid 0 array 2 - 160gb storage array
/dev/sdd : raid 0 array 2 - ""
/dev/sde : standaolone
has everything compiled and ready to go save for a bootloader. not sure how to configure grubt o dual boot windoze and gentoo. _________________ Trust me.....I do this ALL the time |
|
Back to top |
|
|
jdgill0 Veteran
Joined: 25 Mar 2003 Posts: 1366 Location: Lexington, Ky -- USA
|
Posted: Tue Apr 19, 2005 8:14 pm Post subject: |
|
|
Shadowplane676 wrote: | ... not sure how to configure grubt o dual boot windoze and gentoo. |
Use something like the following:
Code: | title WinXP Pro
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
|
You can omit the map lines if you have Windows on the first primary drive, i.e. hda -- in which case you would change rootnoverify (hd1,0) to rootnoverify (hd0,0), assuming Windows is on the first partition of course. _________________ Vim has excellent syntax highlighting for configuration files: emerge gentoo-syntax
Learn how to use Vim: vimtutor |
|
Back to top |
|
|
|