Re: Newbie needs help with Grub!



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.
.



Relevant Pages

  • What Does It Take to Get a PC With XP?
    ... I won't waste time rehashing the argument over whether Windows Vista ... that virtually every copy of Vista Business or Vista Ultimate Edition ... machines doesn't mean that its employees understand that policy. ...
    (misc.consumers)
  • Re: List of Applications Not Compatible with Leopard
    ... If there is an equal on Windows I truly would love to know about ... program on the Plasq frontpage was clearly taken on Vista. ... the product is on both Windows and Mac. ... hardware than Vista works on PC hardware is hardly "silly". ...
    (comp.sys.mac.advocacy)
  • Re: OS/2 mentioned in a Vista review
    ... You can also install it in a classic way in 2K (and XP, and 2003 and Vista) by ... That may be a good basis of comparison for you, but to someone who is already displeased with the previous standard of operation of Windows, what should that mean? ... It can be done on XP or OS/2, ... Consider: full-screen apps. ...
    (comp.os.os2.misc)
  • Re: I cant install critical updates
    ... I resolved error message problem from Vista Security Center by uninstalling and reinstalling Antivir. ... How it comes I can't either manage to install manually failing updates? ... Be sure to obtain the correct version for Windows x86. ... Windows Update Agent File Versions: ...
    (microsoft.public.windowsupdate)
  • Re: Format again
    ... specs to see if it can handle Vista. ... and I want to reformat my hard disk and re-install Windows XP ... and update it with a Vista upgrade which my good lady brought ... Instead of performing a clean install of XP, ...
    (microsoft.public.windowsxp.help_and_support)