Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub + Windows Vista = immediate computer reboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Wed Nov 28, 2007 3:13 am    Post subject: grub + Windows Vista = immediate computer reboot Reply with quote

Hi all,

I'm helping out a remote user who has Windows Vista and a fresh linux install on their machine. Grub loads Linux perfect, but when loading Windows Vista, the machine immediately reboots... no error or anything.

As far as I can tell the ntfs partition mounts fine and doesn't appear corrupted. I've installed next to vista before and never have seen this issue.

This is the grub entry for vista:
Code:

title "Windows Vista"
rootnoverify (hd0,0)
makeactive
chainloader +1


FYI - hd0,0 == /dev/sda1

I'm not sure what to check next. Can someone point me in a direction of what might be happening?

(I feel ashamed writing about a Windows question :oops: :wink: )
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Nov 28, 2007 3:47 am    Post subject: Reply with quote

Are you sure that your Vista is your first partition.

Maybe you could post the content of

Code:

# fdisk -l
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Wed Nov 28, 2007 3:59 am    Post subject: Reply with quote

Unfortunately I'm not in front of the machine at the moment, and I won't get remote access to it again until tomorrow morning.

The fdisk output looks something like this (I'm recreating it from memory):
Code:
Disk /dev/hda: 160.0 GB, 160011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           x         140000000      x     NTFS
/dev/sda5                x           x         20000000   x    W'95 Ext
/dev/sda6                x           x         10000000   x  Linux



Basically, there sda1 which is about 140 gigs that contains Vista, then an extended partition (sda5) that is 20 gigs that contains a 10 gig linux partition inside (sda6). I'm not 100% sure if the boot flag is toggled on sda1 or not, but nothing would have turned it off, so I'm assuming it's on for the time being.

Sorry for the limited into, without the machine in front of me I can only get sporadic info.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Nov 28, 2007 11:51 am    Post subject: Reply with quote

no problem :)
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Wed Nov 28, 2007 4:07 pm    Post subject: Reply with quote

Here is the real fdisk output:
Code:
# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
40 heads, 11 sectors/track, 710413 cylinders
Units = cylinders of 440 * 512 = 225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1      623139   137090528+   7  HPFS/NTFS
/dev/sda2          623139      710413    19200300    f  W95 Ext'd (LBA)
/dev/sda5          623139      670802    10485760+  83  Linux
Back to top
View user's profile Send private message
neiljw
Apprentice
Apprentice


Joined: 12 Nov 2007
Posts: 166
Location: Telford, UK

PostPosted: Wed Nov 28, 2007 5:06 pm    Post subject: Reply with quote

It sounds to me like the Windows bootloader has been zapped. That can be repaired using the Vista install CD, I believe.
_________________
Be lucky,

Neil
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Nov 28, 2007 5:23 pm    Post subject: Reply with quote

And if you do this, you will need to reinstall grub after that :)
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Wed Nov 28, 2007 8:17 pm    Post subject: Reply with quote

I think you are right. For some reason after installing grub on the system (in the MBR) Windows just won't boot anymore. Restoring the Windows MBR seems to have restored Vista on the disk. I used a tool called EasyBCD to add Linux to the Vista bootloader instead. I'm not really sure what went wrong in the case of this machine.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Nov 29, 2007 2:03 am    Post subject: Reply with quote

I have vista on my Laptop and I use Grub to boot my Gentoo box and Vista.

I have no answer for that :(
Back to top
View user's profile Send private message
whiskcat
n00b
n00b


Joined: 19 Mar 2005
Posts: 8

PostPosted: Fri Mar 28, 2008 4:38 pm    Post subject: Reply with quote

So by using EasyBCD, you've updated the Vista boot loader to display Vista or Linux. If you choose Linux, does that then go into GRUB, where you can chose between between several Linux's, assuming several kernels are available and have been defined to GRUB menu lst?

I've read several articles on the web, where after installing grub to the linux boot(?) partition, the first 512 bytes have to be copied to Vista, and you tell EasyBCD the name of the file. Does this still have to be done?

Also, where GRUB is installed on the linux file system, does it have to be in an extended partition?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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