| View previous topic :: View next topic |
| Author |
Message |
bin n00b

Joined: 03 Aug 2008 Posts: 5
|
Posted: Sun Aug 03, 2008 6:32 pm Post subject: grub and xp[resolved] |
|
|
Hi, there! I'm actually a Sabayon user, but I think you guys are probably more knowledgeable. I set up a fake bios raid...
It works except for XP won't boot...I used to use just Linux, but I need Windows for college. Grub displays with menu options and Sabayon boots and thats wonderful!
Here is my hard drive layout:
First partition = /boot (mount point) contains boot files and Grub
Second partition = NTFS (This partition has boot flag) Here is my windows XP install
Third partition= Linux Swap
Fourth Partition = / mounted @ root
Here is how its defined in cfdisk:
| Code: |
Disk Drive: /dev/mapper/isw_bcehhdfdci_TOWER_RAID1
Size: 320080969728 bytes, 320.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 38914
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
isw_bcehhdfdci_TOWER_RAIPrimary Linux ext2 690.93
isw_bcehhdfdBootOWER_RAIPrimary NTFS [^R] 160039.28
isw_bcehhdfdci_TOWER_RAILogical Linux swap / Solaris 3142.06
isw_bcehhdfdci_TOWER_RAILogical Linux ext3 156206.30
|
Here is what the /dev/mapper looks like:
| Code: |
control isw_bcehhdfdci_TOWER_RAID16
isw_bcehhdfdci_TOWER_RAID1 isw_bcehhdfdci_TOWER_RAID1p1
isw_bcehhdfdci_TOWER_RAID11 isw_bcehhdfdci_TOWER_RAID1p2
isw_bcehhdfdci_TOWER_RAID12 isw_bcehhdfdci_TOWER_RAID1p5
isw_bcehhdfdci_TOWER_RAID15 isw_bcehhdfdci_TOWER_RAID1p6
|
RAID1=Just Name of Raid
RAID11=Windows
RAID12=boot
etc...
Here is how grub shows it:
| Code: |
root (hd0,0)
Filesystem type unknown, partition type 0x7
So, I know the above is a NTFS
root (hd0,1)
Filesystem type is ext2fs, partition type 0x83
Obviously, thats my partition to the Sabayon install
|
Now, are you ready for this? Drum roll please....My grub.conf file
| Code: |
# grub.conf generated by the Sabayon Linux Installer
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /kernel-genkernel real_root=/dev/mapper/isw_bcehhdfdci_TOWER_RAID16
# initrd /initramfs-genkernel
#boot=mapper/isw_bcehhdfdci_TOWER_RAID
default=0
timeout=6
splashimage=(hd0,1)/grub/splash.xpm.gz
title Sabayon Linux x86 3.5 (genkernel-x86-2.6.25-sabayon-r1)
root (hd0,1)
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
initrd /initramfs-genkernel-x86-2.6.25-sabayon-r1
title Sabayon Linux x86 3.5 (genkernel-x86-2.6.25-sabayon-r1) (safe mode)
root (hd0,1)
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
initrd /initramfs-genkernel-x86-2.6.25-sabayon-r1
title XP PRO
rootnoverify (hd0,0)
makeactive
chainloader +1
|
Any ideas?...I can mount the windows drive, but I can't see anything inside it.Do you think thats toast?Grub just basically says booting...XP PRO makeactive
chainloader +1
and nothing happens.
Last edited by bin on Wed Aug 06, 2008 2:40 pm; edited 1 time in total |
|
| Back to top |
|
 |
Naib Veteran


Joined: 21 May 2004 Posts: 3188 Location: UK - Birmingham
|
Posted: Sun Aug 03, 2008 7:01 pm Post subject: |
|
|
windows likes/needs to be the 1st partition
| Code: |
title Microsoft Windows XP
rootnoverify(hd0,1)
map (hd0,0) (hd0,1)
map (hd0,1) (hd0,0)
chainloader +1 |
_________________
| Quote: | | There is a forgotten, nay almost forbidden word, which means more to me than any other. That word is ENGLAND |
Weaver Projects |
|
| Back to top |
|
 |
bunder Bodhisattva


Joined: 10 Apr 2004 Posts: 5150 Location: Hamilton, Ontario
|
|
| Back to top |
|
 |
bin n00b

Joined: 03 Aug 2008 Posts: 5
|
Posted: Sun Aug 03, 2008 10:39 pm Post subject: |
|
|
| Naib wrote: | windows likes/needs to be the 1st partition
| Code: |
title Microsoft Windows XP
rootnoverify(hd0,1)
map (hd0,0) (hd0,1)
map (hd0,1) (hd0,0)
chainloader +1 |
|
Thanks for the reply and I believe you are correct. However, I got this error: error 13 invalid or unsupported executable format. Does this mean my windows install is smoked? If so, can I just set the boot flag to hidden on the first partition and then reformat and install my XP with partition magic? Can I use gParted on it?Would I just reinstall grub when I am done, or would I not need to?
This is my first time dealing with fake raid--I believe I hit every pit trap along the way At least I learned a lot though...
Thanks |
|
| Back to top |
|
 |
pigeon768 Guru

Joined: 02 Jan 2006 Posts: 383
|
Posted: Mon Aug 04, 2008 4:39 am Post subject: |
|
|
I've never gotten map to work right. Putting Windows on anything other than the initial partition has, in my experience, always been nothing but an excercise in frustration.
I'd recommend giving Windows what it wants. Reinstall time. =x _________________ Unanswered posts. Please add "[SOLVED]" to the title to your thread if you believe your issue is solved. |
|
| Back to top |
|
 |
bin n00b

Joined: 03 Aug 2008 Posts: 5
|
Posted: Mon Aug 04, 2008 7:03 am Post subject: |
|
|
hmmm...puzzler. I think I forgot to set the first partitions flag to hidden. I'll try that.
A guy suggested that I try this...
ls -Fla /mnt/windows
It seems good...
| Code: |
# ls -Fla /mnt/windows
total 8
drwxr-xr-x 2 root root 4096 2008-08-03 07:10 ./
drwxr-xr-x 6 root root 4096 2008-08-03 07:10 ../
|
|
|
| Back to top |
|
 |
bin n00b

Joined: 03 Aug 2008 Posts: 5
|
Posted: Mon Aug 04, 2008 7:21 am Post subject: |
|
|
| pigeon768 wrote: | I've never gotten map to work right. Putting Windows on anything other than the initial partition has, in my experience, always been nothing but an excercise in frustration.
I'd recommend giving Windows what it wants. Reinstall time. =x |
Also, its a fake raid and thats why /boot has to be first...
It won't let me change the flag to hidden...I'm running out of ideas. |
|
| Back to top |
|
 |
jburns Guru

Joined: 17 Jan 2007 Posts: 412 Location: Massachusetts USA
|
Posted: Mon Aug 04, 2008 10:52 pm Post subject: |
|
|
If you want to run windows XP from the second partition modify the windows boot.ini file. My file for running Windows XP from the second partition is | Code: | [boot loader]
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Windows XP Media Center Edition" /noexecute=optin /fastdetect
| The only thing that needs to be changed in the file is the partition number. |
|
| Back to top |
|
 |
bin n00b

Joined: 03 Aug 2008 Posts: 5
|
|
| Back to top |
|
 |
|