Re: Newbie needs help with Grub!
- From: Roby <roby@xxxxxxxxxxxxxx>
- Date: Mon, 23 Jul 2007 20:00:55 -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
Here's an excerpt from the grub manual for stage 2 errors:
***********************************************************
15 : File not found <<<<<<<< not 17 <<<<<<<<<
This error is returned if the specified file name cannot be found, but
everything else (like the disk/partition info) is OK.
....
17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the
filesystem type cannot be recognized by GRUB.
************************************************************
Your menu.lst looks right to me. My guess is that that error message is
being written by the boot loader of whatever flavor of windows that lives
in /dev/sdb1 rather than from grub itself.
I don't have either Vista or XP, but I recall older windows versions needed
to be installed on the first hard drive and each in a primary partition. I
assume you had set up the 40gig drive as the first (probably only) drive
while installing windowses. Izzit OK for Vista (/dev/sdb5) to be in a
logical (rather than primary) partition???
The map statements should fool windows into thinking it's running on the
first drive, so that part is OK.
Try adding a separate boot menu entry for Vista (assuming /dev/sdb5 is a
location suitable to Vista).
title Windows Vista
root (hd1,4)
unhide (hd1,4)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Or, if you prefer:
title Windows Vista
unhide (hd1,4)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,4)+1
Either of these oughta start Vista directly from the grub menu without
trekking through an intermediate loader menu. The unhide() is good
insurance.
.
- References:
- Newbie needs help with Grub!
- From: krazbaty79
- Newbie needs help with Grub!
- Prev by Date: Re: When did the output of "ls -l" command change?
- Next by Date: Re: Newbie needs help with Grub!
- Previous by thread: Re: Newbie needs help with Grub!
- Next by thread: Re: Newbie needs help with Grub!
- Index(es):
Relevant Pages
|