Re: Newbie needs help with Grub!
- From: JimR <kd1yv6@xxxxxxxxxxxxxx>
- Date: Mon, 23 Jul 2007 23:07:15 -0400
krazbaty79@xxxxxxxxx wrote:
Hello, I'm new to Linux/Ubuntu as of this past week.
I have an IDE HD with Ubuntu loaded. Loaded this OS last. I also have
a SATA drive with XP (loaded first) and Vista. Ubuntu loads great via
grub, but I keep getting an Error 17 file not found when I select the
Windows boot loader option.
Again, I'm very new to this stuff so any help is appreciated. Thanks!
sudo fdisk -l
Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2327 18691596 83 Linux
/dev/sda2 2328 2434 859477+ 5 Extended
/dev/sda5 2328 2434 859446 82 Linux swap / Solaris
Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2570 20643493+ 7 HPFS/NTFS
/dev/sdb2 2571 4865 18434587+ f W95 Ext'd (LBA)
/dev/sdb5 2571 4865 18434556 7 HPFS/NTFS
menu.lst
title Windows Vista or XP (loader)
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Windoze wants to believe that he owns the system, i.e., think he is on
drive 0. On my Dell, Windows is on the older IDE drive hda0. When I
installed a new SATA drive, it became drive 0 (no override option in the
BIOS). This is where I installed Open Suse 10.0 and subsequently
Mandriva 2007 spring.
Here is my GRUB menu that works for all 3 (note that I share the swap
drive between Suse and Mandriva).
Note the comments around the windows stanza. They might give you some
good clues, since it appears that you have windows on the 2nd drive.
Pardon some odd line breaks - that is my newsreader client.
# Modified by YaST2. Last modification on Sat Jan 6 04:13:43 UTC 2007
color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,0)/message
###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.0
root (hd0,0)
kernel /vmlinuz root=/dev/sda11 vga=788 selinux=0
resume=/dev/sda2 splash=silent showopts
initrd /initrd
title Mandriva 2007 Spring
root (hd0,11)
kernel (hd0,11)/boot/vmlinuz root=/dev/sda12 resume=/dev/sda2 vga=788
initrd (hd0,11)/boot/initrd.img
###Don't change this comment - YaST2 identifier: Original name: windows###
# I edited this to try to make it work
# lots of problems to get this to work. Here is a suggestion that
somebody else got on the newsgroup
# finally figured it out by reading an on-line GRUB manual plus what I
saw here
# the first new drive is the SATA drive, which is linux.
# Windows is on the 2nd partition of the 2nd drive, which give us hd1,1
in the chainloader line
title Windows
rootnoverify (hd0,0)
map (hd1) (hd0)
map (hd0) (hd1)
makeactive
chainloader (hd1,1)+1
.
- References:
- Newbie needs help with Grub!
- From: krazbaty79
- Newbie needs help with Grub!
- Prev by Date: Re: Newbie needs help with Grub!
- Next by Date: All RTOS (linux Based ) Other than RT-Linux
- Previous by thread: Re: Newbie needs help with Grub!
- Next by thread: Linux XP Freespire Edition and Ubuntu Version 7.04
- Index(es):
Relevant Pages
|