LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2007, 10:03 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,452

Rep: Reputation: 85
grub problem


Hello, after installing Linux onto my friend's computer, windows does not boot anymore. He hasn't used Linux before, so he's not ready to switch entirely. I've tried appending this to the menu.lst

Code:
 title		Windows Vista
 root		(hd0,0)
 makeactive
 chainloader	+1
That didn't work. I think I got grub error 13, not found, so at the grub menu, I hit e and edited hd0,0 to hd1,0 to see if that would work. I hit b and got the same error message again. When installing Linux, it did not automatically add Windows to the grub menu like it usually has for me in the past.

Code:
$ sudo fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


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

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        9363    75208266   83  Linux
/dev/sda2            9364        9729     2939895    5  Extended
/dev/sda5            9364        9729     2939863+  82  Linux swap / Solaris

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x397a3979

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       19458   156288000    7  HPFS/NTFS
 
Old 12-17-2007, 10:26 PM   #2
ash4stuff
Member
 
Registered: Aug 2003
Location: Viena
Distribution: Debian Sarge
Posts: 139

Rep: Reputation: 15
choose other device

you have two disks.

dev sda is probably hd0 in grub
dev sdb is probably hd1 in grub

so try this:

title Windows Vista
root (hd1,1)
savedefault
makeactive
chainloader +1
 
Old 12-17-2007, 10:28 PM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
vista is installed to the second HDD - Windows OSs seem to prefer being first, so you have to remap the drives in menu.lst before you chainload. Alternatively, swap the boot order in bion, and install grub to the mbr of the (new) first drive.

title Windows Vista
rootnoverify (hd1,0)
savedefault
makeactive
chainloader +1

using mapping:

title Windows Vista
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1

http://ruslug.rutgers.edu/~mcgrof/gr.../docs/menu.lst
sda1 is (hd0,0)
sdb1 is (hd1,0)
sdb2 is (hd1,1)
... you don't want grub checking to see if that ntfs partition has valid boot stuff... it doesn't.

Last edited by Simon Bridge; 12-17-2007 at 10:36 PM.
 
Old 12-17-2007, 10:37 PM   #4
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,452

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by ash4stuff View Post
you have two disks.

dev sda is probably hd0 in grub
dev sdb is probably hd1 in grub

so try this:

title Windows Vista
root (hd1,1)
savedefault
makeactive
chainloader +1
Why not (hd1,0)? Windows is installed on the first partition of drive sdb, not the second partition of that drive which is what the second 1 represents in this (hd1,1).
 
  


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
installing GRUB 2, grub-install problem r00tb33r Linux - Software 1 02-26-2007 10:42 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 01:55 PM
GRUB dual boot problem: Boot "other" (windows) just restarts GRUB! stevod333 Linux - Software 13 04-06-2006 06:26 AM
HDD problem, scancode problem and grub EJ_INSIDE Debian 2 07-15-2004 10:36 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 09:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:27 AM.

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