LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-28-2010, 04:39 PM   #1
thomas_r
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Rep: Reputation: 1
Boot loader problems - GRUB has no valid entries


Hello all - some boot loader help would be much appreciated.

I have an existing WinXP install on the main drive (/dev/sda) of a Dell laptop. I installed OpenSUSE 11.3 on the second (caddy tray) drive and didn't touch the existing windows partition during install.

After install completed, I found there was no boot loader entry for WinXP during startup. Only SUSE-related stuff. I opened YaST boot loader and tried creating an entry of type "other" and device of "/dev/sda1" and set this as the default entry.

The /boot/grub/menu.lst file now has an entry:
Quote:
title Windows XP-32
rootnoverify(hd0,0)
chainloader (hd0,0)+1
When I restart the machine I get an error message:
Quote:
rootnoverify (hd0,0)
chainloader (hd0,0)+1
Error 13: Invalid or unsupported executable format
To add to the fun, I was able to boot into OpenSUSE previously, but during one of my edits to menu.lst I must have done something, and now there are no OpenSUSE entries during bootup at all. :-(

I do have an OpenSUSE LiveCD (installable) in the form of a USB key that I can boot from in order to perform repairs, but some pointers would be greatly appreciated.
 
Old 09-28-2010, 04:57 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,268

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Been a while since I tossed my m1330 out, but it had a Dell partition first - try "(hd0,1)" to get to the (real) NTFS partition.
(BTW make sure you stay on the latest BIOS code ....)
 
Old 09-28-2010, 05:26 PM   #3
thomas_r
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 1
Thanks for the reply, but there is no sda2 (hd0,1) partition. Changing the menu.lst entry just gives me a "Error 22: No such partition" message.

I had an old Lenovo laptop that had a vendor-specific partition like that, but this doesn't seem to be the case here with this Dell.

FWIW I do have my working OpenSUSE entries back in my boot loader, so I just need to get Windows back up and booting.
 
Old 09-28-2010, 05:28 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,268

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
What does "geometry (hd0)" from the grub prompt give ?.
 
Old 09-28-2010, 05:42 PM   #5
thomas_r
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 1
drive 0x80: C/H/S = 1024/255/63. The number of sectors = 312581808, LBA Partition num:0, Filesystem type unknown, partition type 0x7
 
Old 09-28-2010, 11:09 PM   #6
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,812

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Your geometry output shows a windows partition on sda1, the first and only partition on that drive. The only thing I see, and this may be a typo, is that you have no space between: chainloader (hd0,0) AND +1.
 
Old 09-28-2010, 11:25 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,268

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Do you, or do you not, have a space after "rootnoverify" ?.
 
Old 09-29-2010, 07:49 AM   #8
thomas_r
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 1
Yes to both of the above questions - there are spaces where there should be.
 
Old 09-29-2010, 09:00 AM   #9
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,812

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Post your partition information, run command 'fdisk -l' as root user.
Make sure both drives attached.

Post your menu.lst file.
 
Old 09-29-2010, 10:43 AM   #10
thomas_r
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 1
menu.lst
Code:
# Modified by YaST2. Last modification on Wed Sep 29 11:40:41 EDT 2010
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

default 0
timeout 8
gfxmenu (hd1,1)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.3 - 2.6.34.7-0.3
    root (hd1,1)
    kernel /boot/vmlinuz-2.6.34.7-0.3-desktop root=/dev/disk/by-id/ata-TOSHIBA_MK1229GSGF_4057WOOWW-part2 resume=/dev/disk/by-id/ata-TOSHIBA_MK1229GSGF_4057WOOWW-part1 splash=silent quiet showopts vga=0x317
    initrd /boot/initrd-2.6.34.7-0.3-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.3 - 2.6.34.7-0.3
    root (hd1,1)
    kernel /boot/vmlinuz-2.6.34.7-0.3-desktop root=/dev/disk/by-id/ata-TOSHIBA_MK1229GSGF_4057WOOWW-part2 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x317
    initrd /boot/initrd-2.6.34.7-0.3-desktop

###Don't change this comment - YaST2 identifier: Original name: Linux other###
title Linux other
    rootnoverify (hd2,0)
    chainloader +1

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
    rootnoverify (fd0)
    chainloader +1

###Don't change this comment - YaST2 identifier: Original name: other###
title Windows XP
    rootnoverify (hd0,0)
    makeactive
    chainloader +1

title Windows1
    root (hd1,0)
    makeactive
    map (hd0) (hd1)
    map (hd1) (hd0)
    chainloader +1

title Windows2
    root (hd1,0)
    makeactive
    chainloader +1

title Windows3
    root (hd0,0)
    makeactive
    map (hd0) (hd1)
    map (hd1) (hd0)
    chainloader +1

title Windows4
    root (hd0,0)
    makeactive
    chainloader +1
As you can see, I've tried a lot of different approaches - all of them give an Error 13.

fdisk -l
Code:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x83c583c5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       19458   156288000    7  HPFS/NTFS

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e85f9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1         262     2103296   82  Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sdb2             262        2873    20972544   83  Linux
/dev/sdb3            2873       14594    94143488   83  Linux
 
Old 09-29-2010, 07:54 PM   #11
thomas_r
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 1
[UNSOLVABLE] boot loader problems

The mystery is resolved.

Turns out this laptop has a "feature" known as SafeBoot from McAfee. This means the boot sector is secured via encryption, so it's no wonder GRUB couldn't launch anything even when the menu.lst entries were correct.

Many thanks to everybody who took the time to think through the situation and reply to this thread. Unfortunately, your efforts have been foiled by the evil that is McAfee. This machine has been re-imaged back to single-boot WinXP and shall remain that way forever.
 
Old 09-29-2010, 08:02 PM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,268

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Thanks for the update - Dell Datasafe apparently also causes grief like (similar but different) this.
I disabled it when it last nagged me.
 
  


Reply

Tags
boot loader, grub, opensuse, windows


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
Can't install boot loader- both Grub and Lilo failed. And other problems. bgraybr Linux - Hardware 8 01-25-2010 08:52 PM
Duplicate kernel entries of Ubuntu 9.04 in GRUB loader phantombudgie Linux - General 3 10-01-2009 06:21 PM
Boot loader (GNU grub 0.97) problems vin0914 Suse/Novell 2 11-29-2006 01:58 AM
Grub Boot Loader Problems tylerjroach Linux - Newbie 7 01-03-2006 02:54 AM


All times are GMT -5. The time now is 10:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration