Re: grub won't but XP

2009-07-12 Thread Bernard Fay
On Sun, Jul 12, 2009 at 11:42 AM, thveillon.debian <
thveillon.deb...@googlemail.com> wrote:

> Bernard Fay wrote:
> >
> >
> > On Sun, Jul 12, 2009 at 1:01 AM, Masood  > > wrote:
> >
> > On Sun, Jul 12, 2009 at 8:46 AM, Steve Reilly
> > mailto:sfrei...@roadrunner.com>> wrote:
> >
> > Bernard Fay wrote:
> >
> > > title   Windows XP
> > > rootnoverify(hd2,0)
> > > chainloader +1
> > > makeactive
> >
> >
> > if im not mistaken the rootnoverify line should be (hd0.1)  not
> > (hd2,0),
> > at least thats what mine is that works fine.
> >
> >
> > As Steve pointed out, (hd2,0) seems unusual unless you have 3 hard
> > drives of which the third has Windows XP on it. If you can boot into
> > Lenny try running the following as root to find out where your XP
> > installation is located:
> >
> > # fdisk -l
> >
> > Regrads,
> > Masood
> >
> >
> >
> > Oh sorry!  I should have told you.  Yes, I have 3 disks: 2 SATA for
> > Linux and 1 EIDE for Windows.  This is why I have (hd2,0).  This is
> > correct, yes?
> > I use to have ubuntu which use lilo and that was working fine.  Maybe, I
> > should go back to lilo but I rather stay with grub being more
> > powerful usually!
> >
> > Thanks again
> >
> >
> > strontium:~# fdisk -l
> >
> > Disk /dev/sda: 80.0 GB, 80026361856 bytes
> > 255 heads, 63 sectors/track, 9729 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > Disk identifier: 0x00042142
> >
> >Device Boot  Start End  Blocks   Id  System
> > /dev/sda1   *   1  20  160618+  83  Linux
> > /dev/sda2  21972977987542+  8e  Linux LVM
> >
> > Disk /dev/sdb: 500.1 GB, 500107862016 bytes
> > 255 heads, 63 sectors/track, 60801 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > Disk identifier: 0x4bcf667c
> >
> >Device Boot  Start End  Blocks   Id  System
> > /dev/sdb1   1   60801   488384001   8e  Linux LVM
> >
> > Disk /dev/hdc: 61.4 GB, 61492838400 bytes
> > 255 heads, 63 sectors/track, 7476 cylinders
> > Units = cylinders of 16065 * 512 = 8225280 bytes
> > Disk identifier: 0x000cf2ea
> >
> >Device Boot  Start End  Blocks   Id  System
> > /dev/hdc1   *   17475600429067  HPFS/NTFS
> >
> >
> >
>
> Hi, you could try to use the grup "map" command to make winxp happy by
> "thinking" is on the first partition of the first disk :
>
> title   Windows XP
> map (hd0,0) (hd2,0)
> map (hd2,0) (hd0,0)
> rootnoverify(hd2,0)
> chainloader +1
>
>
> If it doesn't work, double check in your bios the disks boot order, as I
> have seen strange behaviors when sata and (p)ata disks are mixed on the
> same motherboard.
>
> Tom
>
>
>
Bingo!  You got it right Tom!

Thanks a lot


Re: grub won't but XP

2009-07-12 Thread thveillon.debian
Bernard Fay wrote:
> 
> 
> On Sun, Jul 12, 2009 at 1:01 AM, Masood  > wrote:
> 
> On Sun, Jul 12, 2009 at 8:46 AM, Steve Reilly
> mailto:sfrei...@roadrunner.com>> wrote:
> 
> Bernard Fay wrote:
> 
> > title   Windows XP
> > rootnoverify(hd2,0)
> > chainloader +1
> > makeactive
> 
> 
> if im not mistaken the rootnoverify line should be (hd0.1)  not
> (hd2,0),
> at least thats what mine is that works fine.
> 
> 
> As Steve pointed out, (hd2,0) seems unusual unless you have 3 hard
> drives of which the third has Windows XP on it. If you can boot into
> Lenny try running the following as root to find out where your XP
> installation is located:
> 
> # fdisk -l
> 
> Regrads,
> Masood
> 
> 
> 
> Oh sorry!  I should have told you.  Yes, I have 3 disks: 2 SATA for
> Linux and 1 EIDE for Windows.  This is why I have (hd2,0).  This is
> correct, yes?
> I use to have ubuntu which use lilo and that was working fine.  Maybe, I
> should go back to lilo but I rather stay with grub being more
> powerful usually!
> 
> Thanks again
> 
> 
> strontium:~# fdisk -l
> 
> Disk /dev/sda: 80.0 GB, 80026361856 bytes
> 255 heads, 63 sectors/track, 9729 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0x00042142
> 
>Device Boot  Start End  Blocks   Id  System
> /dev/sda1   *   1  20  160618+  83  Linux
> /dev/sda2  21972977987542+  8e  Linux LVM
> 
> Disk /dev/sdb: 500.1 GB, 500107862016 bytes
> 255 heads, 63 sectors/track, 60801 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0x4bcf667c
> 
>Device Boot  Start End  Blocks   Id  System
> /dev/sdb1   1   60801   488384001   8e  Linux LVM
> 
> Disk /dev/hdc: 61.4 GB, 61492838400 bytes
> 255 heads, 63 sectors/track, 7476 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0x000cf2ea
> 
>Device Boot  Start End  Blocks   Id  System
> /dev/hdc1   *   17475600429067  HPFS/NTFS
> 
> 
> 

Hi, you could try to use the grup "map" command to make winxp happy by
"thinking" is on the first partition of the first disk :

title   Windows XP
map (hd0,0) (hd2,0)
map (hd2,0) (hd0,0)
rootnoverify(hd2,0)
chainloader +1


If it doesn't work, double check in your bios the disks boot order, as I
have seen strange behaviors when sata and (p)ata disks are mixed on the
same motherboard.

Tom


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: grub won't but XP

2009-07-12 Thread Bernard Fay
On Sun, Jul 12, 2009 at 1:01 AM, Masood  wrote:

> On Sun, Jul 12, 2009 at 8:46 AM, Steve Reilly wrote:
>
>> Bernard Fay wrote:
>>
>> > title   Windows XP
>> > rootnoverify(hd2,0)
>> > chainloader +1
>> > makeactive
>>
>>
>> if im not mistaken the rootnoverify line should be (hd0.1)  not (hd2,0),
>> at least thats what mine is that works fine.
>>
>>
> As Steve pointed out, (hd2,0) seems unusual unless you have 3 hard drives
> of which the third has Windows XP on it. If you can boot into Lenny try
> running the following as root to find out where your XP installation is
> located:
>
> # fdisk -l
>
> Regrads,
> Masood
>


Oh sorry!  I should have told you.  Yes, I have 3 disks: 2 SATA for Linux
and 1 EIDE for Windows.  This is why I have (hd2,0).  This is correct, yes?
I use to have ubuntu which use lilo and that was working fine.  Maybe, I
should go back to lilo but I rather stay with grub being more powerful
usually!

Thanks again


strontium:~# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00042142

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   *   1  20  160618+  83  Linux
/dev/sda2  21972977987542+  8e  Linux LVM

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4bcf667c

   Device Boot  Start End  Blocks   Id  System
/dev/sdb1   1   60801   488384001   8e  Linux LVM

Disk /dev/hdc: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000cf2ea

   Device Boot  Start End  Blocks   Id  System
/dev/hdc1   *   17475600429067  HPFS/NTFS


Re: grub won't but XP

2009-07-11 Thread Masood
On Sun, Jul 12, 2009 at 8:46 AM, Steve Reilly wrote:

> Bernard Fay wrote:
>
> > title   Windows XP
> > rootnoverify(hd2,0)
> > chainloader +1
> > makeactive
>
>
> if im not mistaken the rootnoverify line should be (hd0.1)  not (hd2,0),
> at least thats what mine is that works fine.
>
>
As Steve pointed out, (hd2,0) seems unusual unless you have 3 hard drives of
which the third has Windows XP on it. If you can boot into Lenny try running
the following as root to find out where your XP installation is located:

# fdisk -l

Regrads,
Masood


Re: grub won't but XP

2009-07-11 Thread Paul E Condon
On 2009-07-11_18:14:48, Bernard Fay wrote:
> Hi,
> 
> I have a dual boot system divided between Windows XP and Lenny.
> 
> Lenny is the king of my computer.  But sometimes I still need to use
> Windows.
> 
> Since I setup Lenny on my box, grub does not boot Windows XP.
> I have a hard time to find out why.
> 
> Here is what we can find in menu.lst regarding Windows :
> 
> titleWindows XP
> rootnoverify(hd2,0)
> chainloader+1
> makeactive
> 
> 
> When I try to load Windows, I have the following on screen:
> 
>   Booting 'Windows XP'
> 
> rootnoverify(hd2,0)
> chainloader+1
> makeactive
> 
> 
> It hangs there and do nothing.  Does someone can tell if something is wrong
> in my configuration of grub.
> I provided below my full grub configuration.
> 
> ### menu.lst ###
> default 0
> 
> timeout 5
> 
> color cyan/blue white/blue
> 
> title   Debian GNU/Linux, kernel 2.6.26-2-686
> root(hd0,0)
> kernel  /vmlinuz-2.6.26-2-686 root=/dev/mapper/lnxvg-rootlv ro
> initrd  /initrd.img-2.6.26-2-686
> 
> title   Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
> root(hd0,0)
> kernel  /vmlinuz-2.6.26-2-686 root=/dev/mapper/lnxvg-rootlv ro
> single
> initrd  /initrd.img-2.6.26-2-686
> 
> title   Windows XP
> rootnoverify(hd2,0)
> chainloader +1
> makeactive
> 
> ### end menu.lst ###
> 
> 
> Thanks a lot,
> Bernard

I'm not a expert on Windows, but I have succeeded several times in
setting up dual boot, Lenny - XP recently. 

Something puzzles me about your situation-- In all my setups Windows
was already there and it occupied TWO partitions.  One was titled
Windows Vista/Longhorn (loader). The second was titled Microsoft
Windows XP Home Edition. These were already on the HD before I started
installing Lenny and they were in the first two partitions, namely
(hd0,0) and (hd0,1). When I added Lenny, the installer guided me to
installing it in (hd0,2). How did you get Lenny to be the first
partition? I think you should boot from a live CD and examine your HD
with cfdisk. Is your Lenny really the first partition on the HD?

If you actually have two partitions of Windows stuff, you should set
up your grub to enable booting from either of them. The Longhorn
partition is a crash recovery thingy, which I hope you never have to
use, but...

And maybe I'm just off-the-wall crazy wrong...
HTH
-- 
Paul E Condon   
pecon...@mesanetworks.net


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: grub won't but XP

2009-07-11 Thread Steve Reilly
Bernard Fay wrote:

> title   Windows XP
> rootnoverify(hd2,0)
> chainloader +1
> makeactive


if im not mistaken the rootnoverify line should be (hd0.1)  not (hd2,0),
at least thats what mine is that works fine.



steve


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



grub won't but XP

2009-07-11 Thread Bernard Fay
Hi,

I have a dual boot system divided between Windows XP and Lenny.

Lenny is the king of my computer.  But sometimes I still need to use
Windows.

Since I setup Lenny on my box, grub does not boot Windows XP.
I have a hard time to find out why.

Here is what we can find in menu.lst regarding Windows :

titleWindows XP
rootnoverify(hd2,0)
chainloader+1
makeactive


When I try to load Windows, I have the following on screen:

  Booting 'Windows XP'

rootnoverify(hd2,0)
chainloader+1
makeactive


It hangs there and do nothing.  Does someone can tell if something is wrong
in my configuration of grub.
I provided below my full grub configuration.

### menu.lst ###
default 0

timeout 5

color cyan/blue white/blue

title   Debian GNU/Linux, kernel 2.6.26-2-686
root(hd0,0)
kernel  /vmlinuz-2.6.26-2-686 root=/dev/mapper/lnxvg-rootlv ro
initrd  /initrd.img-2.6.26-2-686

title   Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root(hd0,0)
kernel  /vmlinuz-2.6.26-2-686 root=/dev/mapper/lnxvg-rootlv ro
single
initrd  /initrd.img-2.6.26-2-686

title   Windows XP
rootnoverify(hd2,0)
chainloader +1
makeactive

### end menu.lst ###


Thanks a lot,
Bernard