 |
|
 |
|
Next: When did the output of "ls -l" command ..
|
| Author |
Message |
External

Since: Jul 23, 2007 Posts: 1
|
(Msg. 1) Posted: Mon Jul 23, 2007 6:57 am
Post subject: Newbie needs help with Grub! Archived from groups: comp>os>linux>setup (more info?)
|
|
|
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 |
|
| Back to top |
|
 |  |
External

Since: Sep 12, 2004 Posts: 84
|
(Msg. 2) Posted: Mon Jul 23, 2007 3:00 pm
Post subject: Re: Newbie needs help with Grub! [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
krazbaty79 RemoveThis @gmail.com 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. |
|
| Back to top |
|
 |  |
External

Since: Jul 04, 2003 Posts: 389
|
(Msg. 3) Posted: Mon Jul 23, 2007 4:08 pm
Post subject: Re: Newbie needs help with Grub! [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
krazbaty79.TakeThisOut@gmail.com wrote:
> menu.lst
>
> title Windows Vista or XP (loader)
> root (hd1,0)
> savedefault
> makeactive
> map (hd0) (hd1)
> map (hd1) (hd0)
> chainloader +1
"root" here is where the grub files are stored.
Normally it is the Linux /boot partition.
(It should probably be the same as for the ubuntu system.)
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland |
|
| Back to top |
|
 |  |
External

Since: Jul 23, 2007 Posts: 1
|
(Msg. 4) Posted: Mon Jul 23, 2007 6:07 pm
Post subject: Re: Newbie needs help with Grub! [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
krazbaty79.DeleteThis@gmail.com 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 |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|