Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub and xp[resolved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
bin
n00b
n00b


Joined: 03 Aug 2008
Posts: 5

PostPosted: Sun Aug 03, 2008 11:32 pm    Post subject: grub and xp[resolved] Reply with quote

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 7:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5618
Location: Removed by Neddy

PostPosted: Mon Aug 04, 2008 12:01 am    Post subject: Reply with quote

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

_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5834

PostPosted: Mon Aug 04, 2008 2:06 am    Post subject: Reply with quote

Sabayon related, split and moving.

Moved from Installing Gentoo to Unsupported Software.

Please note that sabayon actually has its own forums at: http://www.sabayonlinux.org/forum/

cheers
_________________
overlay | patches
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.
Back to top
View user's profile Send private message
bin
n00b
n00b


Joined: 03 Aug 2008
Posts: 5

PostPosted: Mon Aug 04, 2008 3:39 am    Post subject: Reply with quote

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 :cry: At least I learned a lot though...
Thanks
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 675

PostPosted: Mon Aug 04, 2008 9:39 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
bin
n00b
n00b


Joined: 03 Aug 2008
Posts: 5

PostPosted: Mon Aug 04, 2008 12:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
bin
n00b
n00b


Joined: 03 Aug 2008
Posts: 5

PostPosted: Mon Aug 04, 2008 12:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1046
Location: Massachusetts USA

PostPosted: Tue Aug 05, 2008 3:52 am    Post subject: Reply with quote

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
View user's profile Send private message
bin
n00b
n00b


Joined: 03 Aug 2008
Posts: 5

PostPosted: Wed Aug 06, 2008 7:39 pm    Post subject: Reply with quote

I forgot I made this thread, but the issue is resolved and thanks for that one jburns. If this happens again maybe I'll try that route just to try it...I got some help from Sabayon forums and Some from here...Here is my resolution...I made up a tut on it after viewing a tut from you guys! :wink: :D

http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Fake_Raid_0_Bios_and_Dual_Boot_Sabayon_and_XP
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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