LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 06-13-2012, 05:15 AM   #1
j_h
LQ Newbie
 
Registered: Oct 2011
Posts: 26

Rep: Reputation: Disabled
Grub Error 15 troubleshooting


I have recently cloned a linux partition (sda6) from one laptop to install to another. The new laptop did not have any OS on it beforehand, I set up the partition table manually. After the clone finished installing I booted from liveCD, then did:

-mounted partition /dev/sda6 to /mnt
-ran `grub-install --root-directory=/mnt /dev/sda`, which gave success message

On reboot I get 'loading stage 1.5', then error 15 File not found.

I have run through all the potential things I know of:
-BIOS is set to boot from the hard drive (there is only one)
-kernel image is present in /boot, all grub files look to be present in /boot/grub
-/boot/grub/device.map and menu.lst, and /etc/fstab all look fine

If I enter grub command prompt on live CD with the partition mounted:
`find /boot/grub/stage1` correctly returns (hd0,5)
`root (hd0,5)` looks successful
`setup (hd0)` looks successful
grub-install gives success messages when run.
I also tried chrooting into the mounted partition and re-running grub setup and install from there with root-directory set to /boot.

I guess since the error is with stage 1.5 it is probably something to do with the fact that I have cloned only a single partition, but the cloning software I used had the option for 'include hidden data between MBR and first partition' checked, and I would have thought that re-installing grub would restore this data anyway.

Any ideas on what else I can do to try fix this?

PS: this is legacy GRUB (0.97)

Last edited by j_h; 06-13-2012 at 11:32 AM. Reason: clarified wording slightly
 
Old 06-13-2012, 06:30 AM   #2
j_h
LQ Newbie
 
Registered: Oct 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
In case this helps, after some googling on this problem, I found that over on the ubuntu forums someone has made a script to get various grub details. On running it, I get this output:

Code:
                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on the 
    same drive in partition #6 for /boot/grub/stage2 and /boot/grub/menu.lst.

sda1: __________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info:     Mounting failed:   mount: unknown filesystem type ''

sda2: __________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info:     Mounting failed:   mount: unknown filesystem type ''
mount: unknown filesystem type ''

sda3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Grub Legacy
    Boot sector info:  Grub Legacy (v0.97) is installed in the boot sector 
                       of sda3 and looks at sector 137210744 of the same hard 
                       drive for the stage2 file.  A stage2 file is at this 
                       location on /dev/sda.  Stage2 looks on partition #6 
                       for /boot/grub/menu.lst.

sda5: __________________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info:     Mounting failed:   mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  Grub Legacy
    Boot sector info:  Grub Legacy (v0.97) is installed in the boot sector 
                       of sda6 and looks at sector 137210744 of the same hard 
                       drive for the stage2 file.  A stage2 file is at this 
                       location on /dev/sda.  Stage2 looks on partition #6 
                       for /boot/grub/menu.lst.
    Operating System:  Welcome to openSUSE 11.3 "Teal" 
                       - Kernel ().
    Boot files:        /boot/grub/menu.lst /boot/grub/grub.conf /etc/fstab

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:     Operating System:  
    Boot files:        
       
============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 127.8 GB, 127767240704 bytes
255 heads, 63 sectors/track, 15533 cylinders, total 249545392 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1               2,048       206,847       204,800   7 NTFS / exFAT / HPFS
/dev/sda2             206,848   125,831,167   125,624,320   7 NTFS / exFAT / HPFS
/dev/sda3    *    125,831,168   249,544,703   123,713,536   f W95 Extended (LBA)
/dev/sda5         125,833,216   130,045,951     4,212,736  82 Linux swap / Solaris
/dev/sda6         130,048,000   171,991,039    41,943,040  83 Linux
/dev/sda7         171,993,088   249,522,175    77,529,088  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/loop1                                              squashfs   
/dev/loop2                                              squashfs   
/dev/loop3                                              squashfs   
/dev/sda6        c13eb4a2-3244-43da-93eb-3c774e5c9bde   ext4       
/dev/sda7        db844ec0-d7a5-4775-9966-5533d7fe273b   ext4       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda6        /mnt                     ext4       (rw)


=========================== sda6/boot/grub/menu.lst: ===========================

--------------------------------------------------------------------------------
# Modified by YaST2. Last modification on Sun Oct 16 19:33:00 BST 2011
# 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 (hd0,5)/boot/message
##YaST - activate
title Linux -- openSUSE 11.3 Recompiled 2.6.34-12
    root (hd0,5)
    kernel /boot/recompiled_kernel root=/dev/sda6 vmalloc=256M noresume splash=silent nousb showopts vga=0x314 elevator=noop
    initrd /boot/initrd_recompiled_kernel

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.3 - 2.6.34-12
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.34-12-desktop root=/dev/sda6 resume=/dev/sda5 splash=silent quiet showopts vga=0x314
    initrd /boot/initrd-2.6.34-12-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.3 - 2.6.34-12
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.34-12-desktop root=/dev/sda6 showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 
nomodeset x11failsafe vga=0x314
    initrd /boot/initrd-2.6.34-12-desktop

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title Windows 7
    rootnoverify (hd0,1)
    chainloader +1

--------------------------------------------------------------------------------

=============================== sda6/etc/fstab: ================================

--------------------------------------------------------------------------------
/dev/sda5	swap                 	swap       	defaults              			0 0
/dev/sda6	/                    	ext4       	noatime,data=writeback,acl,user_xattr	1 1
/dev/sda7	/home                	ext4       	noatime,data=writeback,acl,user_xattr   1 2
/dev/sda1	/windows/C           	ntfs-3g    	nouser,noauto				0 0
/dev/sda2	/windows/D           	ntfs-3g    	nouser,noauto				0 0
proc            /proc                	proc       	defaults              			0 0
sysfs           /sys                 	sysfs      	noauto                			0 0
debugfs         /sys/kernel/debug    	debugfs    	noauto                			0 0
usbfs           /proc/bus/usb        	usbfs      	noauto                			0 0
devpts         	/dev/pts             	devpts     	mode=0620,gid=5       			0 0
tmpfs		/tmp			tmpfs		defaults,noatime,mode=1777		0 0
tmpfs		/var/tmp		tmpfs		defaults,noatime,mode=1777		0 0
tmpfs		/var/log		tmpfs		defaults,noatime,mode=1777		0 0
/dev/cdrom	/media/cdrom		iso9660		ro,users,unhide				0 0
/dev/cdrw	/media/cdrom		iso9660		ro,users,unhide				0 0
/dev/dvdrom	/media/dvdrom		iso9660		ro,users,unhide				0 0
/dev/dvdrw	/media/dvdrom		iso9660		ro,users,unhide				0 0

--------------------------------------------------------------------------------

=================== sda6: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)

  70.691429138 = 75.904344064   boot/grub/grub.conf                            1
  70.691429138 = 75.904344064   boot/grub/menu.lst                             1
  65.427299500 = 70.252027904   boot/grub/stage2                               1
  62.328502655 = 66.924720128   boot/initrd                                    1
  62.328502655 = 66.924720128   boot/initrd-2.6.34-12-desktop                  1
  62.242252350 = 66.832109568   boot/initrd_recompiled_kernel                  1
  64.552009583 = 69.312192512   boot/vmlinuz                                   1
  64.552009583 = 69.312192512   boot/vmlinuz-2.6.34-12-desktop                 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda1

00000000  41 6c 62 ac f8 21 c0 5f  75 af 2b 94 86 20 4d b8  |Alb..!._u.+.. M.|
00000010  1b c2 81 b1 e7 56 12 fd  81 ac 11 96 0e a2 b6 a7  |.....V..........|
00000020  9c 80 0b 92 3d a7 cf 78  20 12 cc fe b7 48 6c 21  |....=..x ....Hl!|
00000030  e7 8c 92 e5 7f f8 da cf  18 d6 d9 6d cd dc 96 9a  |...........m....|
00000040  7e c4 76 8d 46 ad 8e ff  98 16 6a b2 f9 25 0a 09  |~.v.F.....j..%..|
*
00000200

Unknown BootLoader on sda2

00000000  41 6c 61 ac f8 01 c0 5f  75 af 2b 94 86 20 4d b8  |Ala...._u.+.. M.|
00000010  1b c2 82 b1 e7 76 12 fd  81 ac 11 96 0e a2 b6 a7  |.....v..........|
00000020  9c 80 08 92 3d 87 cf 78  20 12 cc fe b7 48 6c 21  |....=..x ....Hl!|
00000030  e7 8c 91 e5 7f d8 da cf  18 d6 d9 6d cd dc 96 9a  |...........m....|
00000040  7e c4 76 8d 46 ad 8e ff  98 16 6a b2 f9 25 0a 09  |~.v.F.....j..%..|
*
00000200

Unknown BootLoader on sda5

00000000  41 6c e2 ab f8 39 c0 5f  75 af 2b 94 86 20 4d b8  |Al...9._u.+.. M.|
00000010  1b c2 01 b6 e7 4e 12 fd  81 ac 11 96 0e a2 b6 a7  |.....N..........|
00000020  9c 80 8b 95 3d bf cf 78  20 12 cc fe b7 48 6c 21  |....=..x ....Hl!|
00000030  e7 8c 12 e2 7f e0 da cf  18 d6 d9 6d cd dc 96 9a  |...........m....|
00000040  7e c4 76 8d 46 ad 8e ff  98 16 6a b2 f9 25 0a 09  |~.v.F.....j..%..|
*
00000200


=============================== StdErr Messages: ===============================

  No volume groups found
mdadm: No arrays found in config file or automatically
It says that it detects grub on sda3, but this is the extended partition and it correctly says that it looks in sda6 for menu.lst, so I imagine this is ok and does not indicate that I have duplicate grub installs.

(sda1 and sda2 fail because there is nothing installed on them yet. sda5 is swap)

Last edited by j_h; 06-13-2012 at 06:32 AM.
 
Old 06-13-2012, 11:08 AM   #3
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,089

Rep: Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809Reputation: 809
Quote:
I have cloned only a single partition
Your bootinfoscript shows 7 partitions? You also indicate you have no operating system on this laptop. What are the other ntfs partitions?
The Error 15 message indicates File Not Found and that generally refers to the stage2/menu.lst file. Did you use the Opensuse 11.3 Live CD to install Grub to the drive? The bootinfoscript does show Grub in the mbr and appears to point to sda6 which contains the menu.lst file so I'm not sure what the problem might be.
 
Old 06-13-2012, 11:18 AM   #4
j_h
LQ Newbie
 
Registered: Oct 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
Thanks for your reply,

Quote:
Originally Posted by yancek View Post
Your bootinfoscript shows 7 partitions? You also indicate you have no operating system on this laptop. What are the other ntfs partitions?
I set up the partition table manually (to match the source laptop's partition table), then installed a clone of source laptop's sda6 to target laptop's sda6.

After installing I booted into a liveCD to run 'grub-install' in an attempt to restore the MBR and be able to boot.

The ntfs partitions are empty at the moment, but will have Windows on them eventually.

Quote:
The Error 15 message indicates File Not Found and that generally refers to the stage2/menu.lst file.
In /boot/grub, all the expected files are there as far as I can see: device.map, menu.lst, stage1, stage2. And the kernel image is present in /boot.

One thought I did have, is this could be an ext4 issue, but the suse release notes suggests they patched their legacy grub to support ext4 in 11.2, so perhaps not. S:

Last edited by j_h; 06-13-2012 at 11:28 AM.
 
Old 06-13-2012, 12:35 PM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
Quote:
title Linux -- openSUSE 11.3 Recompiled 2.6.34-12
root (hd0,5)
kernel /boot/recompiled_kernel root=/dev/sda6 vmalloc=256M noresume splash=silent nousb showopts vga=0x314 elevator=noop
initrd /boot/initrd_recompiled_kernel
Quote:
boot/grub/grub.conf
boot/grub/menu.lst
boot/grub/stage2
boot/initrd
boot/initrd-2.6.34-12-desktop
boot/initrd_recompiled_kernel
boot/vmlinuz
boot/vmlinuz-2.6.34-12-desktop
The menu.lst entry calls for a kernel named recompiled_kernel, but there is no such kernel listed in the /boot directory.

That would account for the error you are getting when trying to boot the default OS.

What happens when you select one of the other entries in the menu on boot?

Last edited by bigrigdriver; 06-13-2012 at 12:50 PM. Reason: Add additional comment.
 
Old 06-14-2012, 02:55 AM   #6
j_h
LQ Newbie
 
Registered: Oct 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
Hm, interesting... I was sure I checked to see that the custom kernel image was present in /boot.

Unfortunately I can't boot into the other entries because I don't get as far as being given the grub menu (my timeout is set to > 0 so it's obviously failing before that point). Which is a point actually.. does the fact that I don't get to the grub menu mean it isn't the kernel image it's failing to find, but rather one of the stage<x> files?


Edit: I've booted up the machine in question and the recompiled_kernel is indeed present in /boot. `ll` gives me:
Code:
backup_mbr
boot -> .
bootinfoscript
boot.readme
CHANGELOG
config-2.6.34-12.desktop
grub
initrd -> initrd-2.6.34-12.desktop
initrd-2.6.34-12.desktop
initrd_recompiled_kernel
message
output.txt
README
recompiled_kernel
symsets-2.6.34-12.desktop.tar.gz
symtypes-2.6.34-12.desktop.gz
symvers-2.6.34-12.desktop.gz
System.map
System.map-2.6.34-12.desktop
vmlinux-2.6.34-12.desktop.gz
vmlinuz -> vmlinuz-2.6.34-12.desktop
vmlinuz-2.6.34-12.desktop
Does the fact that the script didn't pick it up mean that grub can't see/find it?

Last edited by j_h; 06-14-2012 at 03:12 AM.
 
Old 06-14-2012, 04:32 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,486

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
What's in /boot/grub ? - I'd be guessing it doesn't contain the stage1.5 files.
Quote:
Originally Posted by j_h View Post
Does the fact that the script didn't pick it up mean that grub can't see/find it?
No - more likely means that the script-writers are displaying their Debian heritage and refusing to admit that things exist that don't match their preconceived ideas of naming. Check the script.
In contrast, grub uses what you tell it. But if you're not seeing the boot menu, you aren't getting that far.
 
Old 06-14-2012, 04:41 AM   #8
j_h
LQ Newbie
 
Registered: Oct 2011
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
What's in /boot/grub ?
Code:
default
device.map
device.map.old
e2fs_stage1_5
fat_stage1_5
grub.conf -> menu.lst
jfs_stage1_5
menu.lst
menu.lst.old
minix_stage1_5
reiserfs_stage1_5
stage1
stage2
xfs_stage1_5
I note there isn't an ext4_stage1_5, but I was under the impression that e2fs_stage1_5 is still used for ext3 (and 4, in patched grub 0.97 versions)? The source laptop for this clone boots with this file set, anyway.

Last edited by j_h; 06-14-2012 at 04:43 AM.
 
  


Reply


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
Troubleshooting - Ruling-out GRUB Galaxy_Stranger Linux - Software 1 01-31-2011 11:33 PM
i got error while troubleshooting mysql palisetty_suman Linux - Software 2 03-21-2009 04:56 PM
error while troubleshooting mysql palisetty_suman Linux - Newbie 8 03-21-2009 11:07 AM
Troubleshooting Fedora DS Client Search Error? ajeetraina Linux - Server 0 10-04-2007 04:39 AM
scrolling numbers after GRUB!!!!!!!! troubleshooting carmichaelbaby Linux - General 0 10-27-2002 06:02 PM


All times are GMT -5. The time now is 01:46 AM.

Main Menu
Advertisement
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