LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2009, 08:33 AM   #1
benav
Member
 
Registered: Sep 2009
Location: Canada
Distribution: Slackware 14.0
Posts: 36

Rep: Reputation: 1
Windows won't boot from GRUB but doesn't give any error messages


Hi

I'm quite new. Not a *complete* novice at Linux but hadn't used it in years and had only scratched the surface of it back then. I missed it, so I decided to install a distro.

A couple days ago I put Ubuntu 9.04 on my PC, which had Windows XP Home already installed. I partitioned the 1st hard drive and put Ubuntu on the 2nd half of it. (There's a second drive that just holds files, no OS.) Ubuntu is the default for GRUB. But when I select the Windows instead, all I get is the words "Starting up..." and a flashing cursor, and it just sits there. Ubuntu boots just fine.

I've hunted around this site and others for a solution, but I haven't found anything that worked, so I'll try asking here.

Results of fdisk -l :
Code:
Disk /dev/sda: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x82e782e7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4997    40138371    7  HPFS/NTFS
/dev/sda2            4998       10011    40274955    5  Extended
/dev/sda5            4998        9800    38580066   83  Linux
/dev/sda6            9801       10011     1694826   82  Linux swap / Solaris

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

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               2        9729    78140160    f  W95 Ext'd (LBA)
/dev/sdb5               2        9729    78140128+   7  HPFS/NTFS
Contents of /boot/grub/menu.lst :
Code:
title		Ubuntu 9.04, kernel 2.6.28-11-generic
uuid		74930bcf-7091-474c-82cd-4af4ffabd942
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=74930bcf-7091-474c-82cd-4af4ffabd942 ro quiet splash 
initrd		/boot/initrd.img-2.6.28-11-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid		74930bcf-7091-474c-82cd-4af4ffabd942
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=74930bcf-7091-474c-82cd-4af4ffabd942 ro  single
initrd		/boot/initrd.img-2.6.28-11-generic

title		Ubuntu 9.04, memtest86+
uuid		74930bcf-7091-474c-82cd-4af4ffabd942
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Home Edition
rootnoverify	(hd0,0)
savedefault
makeactive
chainloader	+1
I've tried changing the rootnoverify line to (hd0,1) and it told me that it's an invalid device.

I know Windows is still there, as I can mount the system from Linux and read and write data.

Any suggestions?

Any help greatly appreciated.
 
Old 09-23-2009, 09:01 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Interesting. Grub looks fine and all the partitions too. Have you tried to boot into Ubuntu and reinstall grub and try if it works.
And are you sure your windows is in first drive and not second? And the changes you made manually would obviously not work coz the partition you tried was formatted as extended.
 
Old 09-23-2009, 09:16 AM   #3
benav
Member
 
Registered: Sep 2009
Location: Canada
Distribution: Slackware 14.0
Posts: 36

Original Poster
Rep: Reputation: 1
I haven't tried reinstalling GRUB yet, but I guess that's the next step. Is that difficult to do?

I'm pretty sure Windows is on the 1st drive. It was always C: drive, and that's the one I partitioned. But I suppose it might be worth telling Grub to boot the 2nd drive just to make sure.
 
Old 09-23-2009, 09:19 AM   #4
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,787

Rep: Reputation: 211Reputation: 211Reputation: 211
I am not sure about this but...

Grub is not my strength. However, if the notation hd0,1 is meant to point to the Windows OS on the first partition, I think it should read hd0,0. If it is to point to linux, I would think it should be hd0,2, skipping the logical partition. If that isn't right, the second choice is hd0,4, pointing to partition number 5 by Grub number.

Grub starts with 0 for both the HDD and partition,
 
Old 09-24-2009, 01:20 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
To my knowledge, for which I do not yell about, the grub file looks fine and all the partitions are marked correctly by Ubuntu itself and there is no need to change them. Windows already is marked hd0,0 and that looks fine.
Installing grub isnt too difficult as you can already boot into Ubuntu. From Ubuntu, open a terminal and type:

sudo grub-install sda

It will ask for your password. Provide it and everything is done. It will tell you if process is successful.
 
Old 09-24-2009, 05:03 AM   #6
mambatjp
LQ Newbie
 
Registered: May 2008
Location: Manila
Distribution: mandriva, ubuntu
Posts: 2

Rep: Reputation: 0
hi there! try to look at this situation u got a installed os already and drive that would be the drive c: right? are you sure u have enough space for the linux os and u partitioned correctly?it is just a point of view anyway.
 
Old 09-24-2009, 09:02 PM   #7
benav
Member
 
Registered: Sep 2009
Location: Canada
Distribution: Slackware 14.0
Posts: 36

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by mambatjp View Post
are you sure u have enough space for the linux os and u partitioned correctly?
I used the partitioning tool included with the Ubuntu Jaunty distro live CD. As for space, I think 40GB ought to be enough to run Linux. The other 40GB partition with all of MS Windows and a whole ream of software is only 50% full.

(This box will have to be replaced relatively soon anyway, which will mean a bigger hard drive, and ultimately ought to mean I can start over if I need to. Maybe not partition at all, but have one OS per hard drive.)
 
Old 09-24-2009, 09:03 PM   #8
benav
Member
 
Registered: Sep 2009
Location: Canada
Distribution: Slackware 14.0
Posts: 36

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by linuxlover.chaitanya View Post
To my knowledge, for which I do not yell about, the grub file looks fine and all the partitions are marked correctly by Ubuntu itself and there is no need to change them. Windows already is marked hd0,0 and that looks fine.
Installing grub isnt too difficult as you can already boot into Ubuntu. From Ubuntu, open a terminal and type:

sudo grub-install sda

It will ask for your password. Provide it and everything is done. It will tell you if process is successful.
Thanks. I'll probably give that a shot on the weekend.
 
Old 09-25-2009, 05:09 AM   #9
btncix
Member
 
Registered: Aug 2009
Location: USA
Posts: 141

Rep: Reputation: 26
I don't see any problems with your menu.lst file.

Before you installed Ubuntu, how were the partitions setup for /dev/sda? Specifically, was the entire hard drive originally fully allocated for Windows use only? If you had needed to resize /dev/sda1 in order to make room to create /dev/sda5 and /dev/sda6, did you first defragment /dev/sda1 before you resized the /dev/sda1 partition?

I don't know if this is good advice, but an option to consider is to try to re-install the Windows bootloader with the fixmbr command from a rescue disk/cd.
 
Old 09-25-2009, 06:47 AM   #10
benav
Member
 
Registered: Sep 2009
Location: Canada
Distribution: Slackware 14.0
Posts: 36

Original Poster
Rep: Reputation: 1
Yes, the entire drive was for Windows, and I did defragment first.
 
Old 09-25-2009, 08:48 AM   #11
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,613

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
benav,

Boot from Ubuntu, edit following as root.
Try change/modify your menu.lst entry for XP to more simple Grub commands:

title Windows XP Home
root (hd0,0)
makeactive
chainloader +1

Also in your /boot/grub/device.map check if following entries are found, correct them accordingly if not found:

(hd0) /dev/sda
(hd1) /dev/sdb

These entries must exist because you have two hard disks.
Save file and reboot.
------------------------x

Quote:
I've tried changing the rootnoverify line to (hd0,1) and it told me that it's an invalid device.
No need to use rootnoverify. Your (hd0,1) is extended partition, only a logical partition is a valid device.
Check also if your Xp ntloadr is found at /dev/sda1 (or C:\). If so ever Windows requires you made repairs (or reinstall) Xp bootloader or employ repair console commands against MBR be reminded that you'll thereafter need to reinstall GRUB into the MBR to revert to current status. Just check back how it goes, let others here know how you have solved the problem.

Hope this helps.

Good luck.

Last edited by malekmustaq; 09-25-2009 at 08:59 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub windows boot error sethnap Linux - Newbie 11 08-04-2008 12:45 AM
GRUB error 22 <linux uninstalled, windows wont boot> Snow Keld Linux - Newbie 3 05-08-2008 10:01 AM
Grub 1.5 Error 21 when installing Debian/Windows dual-boot VinceIP Debian 15 01-30-2007 05:13 PM
Dual boot Linux with Windows: Grub Error 17 Veniogenesis Linux - Newbie 3 10-23-2005 10:41 AM
Grub Tripple Boot & Error Messages RJDavison Linux - Software 3 07-27-2004 12:52 PM


All times are GMT -5. The time now is 02:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration