LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-29-2013, 05:22 PM   #1
zorro_kwh
Member
 
Registered: May 2007
Posts: 34

Rep: Reputation: 0
Exclamation Clonezilla destroyed grub - cannot boot anymore - Need help!!!


I have a PC with Win7 on /dev/sda1 and OpenSuse 11.4 EVERGREEN on /dev/sda2.

Today I made a backup with clonezilla of the linux partition before I upgraded the kernel. After the kernel update I didn't get my TV- USB stick to work, so I thougt it will be a good idea to restore the Linux partition using my clonezilla backup today. Everything seems to work ok, but I got an error that grub cannot be installed correctly.

When I reboot my PC, I get the following message:
Code:
Grub loading stage 1.5.

Grub loading, please wait ...
Error 15
I rebooted clonezilla and found out that the restored linux is available in /dev/sda2 and the command in /etc/grub.conf says:
Code:
setup --stage2=/boot/grub/stage2 --force-lba (hd0) (hd0,1)
quit
so I get back to clonezilla and tried to rerun the grub-install command:
Code:
sudo grub-install --no-floppy --root-directory=/tmp/mnt /dev/sda
The result is Error 15: File not found. The linux partition is mounted using
Code:
sudo mount /dev/sda2 /tmp/mnt
I tried everything to avoid the "File not found" on bootup. I checked that stage1 and stage2 file is available in /boot/grub (I copied from /tmp/mnt/boot/grub). I tried the option --prefix=/tmp/mnt for the setup command within the grub shell, but I cannot get the boot manager grub to run successfully. I always get the error 15. Icannot run any OS on my PC! Even Win7 cannot fix the bootproblem for itself!!! It remains the "Error 15"

I Installed OpenSuse 11.4 from CD but the all data, configs and updates are lost. But grub worked again. So I decided to rerun a restore with clonezilla and I hoped that I get at least the grub shell, but that doesn't happened. After the second restore, I get the same error message and grub doesn't work anymore.

What grub-command must I make to get at least the grub shell after the restore?

What can I do? How can I install the grub bootloader zu get back my menu with Windows and Linux to boot? I can reinstall the linux distro again from scratch but the all my settings, configs data and updates are lost!

Can I run partrestore without changing/installing grub again, So that I can install the distro and then overwrite the partition without grub destroying?

Any help needed!! Please!
 
Old 12-29-2013, 05:41 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,321
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
You can boot another grubs configfile from grub. If you have a USB linux or Grub boot CD. Using "c" to get to grubs command mode if you don't have a menu entry for your destination.

$ grub-mkrescue -o boot.iso

GRUB> configfile (hd0,1)/boot/grub/grub.cfg

A few steps skipped, but that's the important bits. You'll need to reinstall grub after you boot your destination install. The simple version is to boot a USB linux and run update-grub and boot it again to have a menu option for the non-usb install. You'll still need to reinstall grub if you don't want to keep using that workaround.
 
Old 12-29-2013, 06:02 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,834

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
The root-directory is the grub root, not the Linux root - try
Code:
sudo grub-install --no-floppy --root-directory=/tmp/mnt/boot /dev/sda
 
1 members found this post helpful.
Old 12-29-2013, 06:02 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I run debian on my internal drive but I also have debian on usb.
When I have problems booting debian on internal drive, I boot my external run update-grub & it finds my debian system & adds to it's grub, reboot to the new grub entry dismount usb & reinstall grub. Reboot & everything is fine.
The only difference is that I use grub2.
How old is your system?
I ask becasuse wheezy uses grub2.
 
Old 12-29-2013, 08:22 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
If you successfully cloned your Opensuse partition (sda2) and successfully restored it to sda2, there is no logical reason it would not boot. If you have the restored Opensuse on the drive, boot a Live CD and mount it and take a look at the menu.lst file for the system and compare these entries with the kernel (vmlinuz) and initrd files which should be in its /boot directory. The above suggestion is if your Opensuse 11.4 is still using Grub Legacy and the Loading Stage 1.5 error would indicate it is.

If you can't remedy the situation, get the bootinfoscript from the link below while running from the Live CD, read the instructions, download and run it and post the output, a results.txt file.

http://sourceforge.net/projects/bootinfoscript/
 
Old 12-30-2013, 03:14 AM   #6
zorro_kwh
Member
 
Registered: May 2007
Posts: 34

Original Poster
Rep: Reputation: 0
Unhappy Nothing worked so far ...

I tried several things:

1. I used Knoppix Live linux to get bootinfoscript data the file RESULT.txt shows:
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 #256 for /boot/grub/stage2.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  Grub Legacy
    Boot sector info:  Grub Legacy (v) is installed in the boot sector of 
                       sda2 and looks at sector 512311487 of the same hard 
                       drive for the stage2 file, but no stage2 files can be 
                       found at this location.
    Operating System:  Welcome to openSUSE 11.4 
                       "Celadon" - Kernel ().
    Boot files:        /boot/grub/menu.lst /boot/grub/grub.conf /etc/fstab

sda3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  According to the info in the boot sector, sda5 starts 
                       at sector 607. But according to the info from fdisk, 
                       sda5 starts at sector 1015324672.
    Operating System:  
    Boot files:        

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xa739d90b

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048   512,006,143   512,004,096   7 NTFS / exFAT / HPFS
/dev/sda2         512,007,615 1,015,324,064   503,316,450  83 Linux
/dev/sda3       1,015,324,065 1,953,520,064   938,196,000   f W95 Extended (LBA)
/dev/sda5       1,015,324,672 1,670,684,671   655,360,000   7 NTFS / exFAT / HPFS
/dev/sda6       1,670,695,803 1,953,520,064   282,824,262  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/cloop0                                             iso9660    KNOPPIX_FS
/dev/sda1        14082C3B4F0DF338                       ntfs       Windows7
/dev/sda2        9949e790-cbe0-47c1-b5cc-1dc59fdcfe31   ext4       
/dev/sda5        5C449BDB449BB66C                       ntfs       Daten
/dev/sda6        54ab6c70-dff2-4bbb-94df-8ba2e55a8939   ext4       

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

Device           Mount_Point              Type       Options

/dev/cloop       /KNOPPIX                 iso9660    (ro,relatime)
/dev/sda2        /media/sda2              ext4       (rw,relatime,barrier=1,data=ordered)
/dev/sr0         /mnt-system              iso9660    (ro,relatime)


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

--------------------------------------------------------------------------------
# Modified by YaST2. Last modification on Sun Dec 29 12:52:25 CET 2013
# 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,1)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.4 - 3.0.101-71
    root (hd0,1)
    kernel /boot/vmlinuz-3.0.101-71-desktop root=/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part2 nosplash quiet showopts vga=0x317
    initrd /boot/initrd-3.0.101-71-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.4 - 3.0.101-71
    root (hd0,1)
    kernel /boot/vmlinuz-3.0.101-71-desktop root=/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part2 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe
    initrd /boot/initrd-3.0.101-71-desktop

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

=============================== sda2/etc/fstab: ================================

--------------------------------------------------------------------------------
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 
maya:/volume1/public	/mnt/maya/public	nfs	noauto,soft,defaults 0 0 
maya:/volume1/web	/mnt/maya/web	nfs	noauto,soft,defaults 0 0 
maya:/volume1/photo	/mnt/maya/photo	nfs	noauto,soft,defaults 0 0 
maya:/volume1/music	/mnt/maya/music	nfs	noauto,soft,defaults 0 0 
maya:/volume1/video	/mnt/maya/video	nfs	noauto,soft,defaults 0 0 
willi:/volume1/public	/mnt/willi/public	nfs	soft,defaults 0 0 
willi:/volume1/web	/mnt/willi/web	nfs	soft,defaults 0 0 
willi:/volume1/photo	/mnt/willi/photo	nfs	soft,defaults 0 0 
willi:/volume1/music	/mnt/willi/music	nfs	soft,defaults 0 0 
willi:/volume1/video	/mnt/willi/video	nfs	soft,defaults 0 0 
//willi/wendy		/mnt/willi/wendy cifs	noauto,users,gid=users,forcegid,file_mode=133,dir_mode=022
# /dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part2 /data2               ext4       defaults              1 1
/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part1 /windows/C           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part5 /windows/D           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part2 /                    ext4       defaults              1 1
/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part6 /opt                 ext4       acl,user_xattr        1 2
/dev/Extern_SCSI/data /data                ext4       user,noauto,acl,user_xattr 0 0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 244.281466961 = 262.295227904  boot/grub/grub.conf                            1
 244.281466961 = 262.295227904  boot/grub/menu.lst                             1
 244.339858532 = 262.357925376  boot/grub/stage2                               1
 245.365375042 = 263.459065344  boot/initrd                                    1
 256.831756115 = 275.770998272  boot/initrd-2.6.37.1-1.2-desktop.old           2
 245.365375042 = 263.459065344  boot/initrd-3.0.101-71-desktop                 1
 256.956035137 = 275.904441856  boot/vmlinuz                                   1
 245.523498058 = 263.628848640  boot/vmlinuz-2.6.37.1-1.2-desktop.old          1
 256.956035137 = 275.904441856  boot/vmlinuz-3.0.101-71-desktop                1

========= Devices which don't seem to have a corresponding hard drive: =========

sdb sdc sdd sde 

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

  No volume groups found
mdadm: No arrays found in config file or automatically
2. I tried to boot with a CD using an image called "Super Grub 2". I succeded booting my linux 64Bit in single user mode, but /dev/sda2 was mounted read-only, so I remounted the root partition and started the linux in multi-user:
Code:
mount -o remount,rw /
init 5
I logged in, open a root terminal and started grub-install:
Code:
zorro:~ # cat /etc/grub.conf
setup --stage2=/boot/grub/stage2 --force-lba (hd0) (hd0,1)
quit
zorro:~ # grub-install


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]
grub> setup --stage2=/boot/grub/stage2 --force-lba (hd0) (hd0,1)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  17 sectors are embedded.
succeeded
 Running "install --force-lba --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,1)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub> quit
Everything seems to be ok, but when I remove the CD and reboot the system I still get:
Code:
Grub loading stage 1.5.

Grub loading, please wait ...
Error 15
I also rebooted again into my linux and tried to install grub using "yast2 bootloader", but no success. Same error!

What else can I do? Can anybody analyse the output from bootinfoscript?

Using another live CD failes to chroot because all my live CDs are 32bit and my linux installation is 64bit. Using grub-install under the live CD using the --root-directory option always sais /mnt/.../boot/grub/stage1 not read correctly. (I have done this tries before I succeded booting into my linux using Super Grub2 CD!)
 
Old 12-30-2013, 10:56 AM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,321
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
=> Grub Legacy (v0.97) is installed in the MBR of /dev/sda

Grub2 (v0.99) and grub-legacy aka grub 1 do not play well with each other. You need to boot your install with "any" bootloader. Once you are booted into your distro you should reinstall grub while running that distro.
 
Old 12-30-2013, 06:16 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Grub Legacy (v) is installed in the boot sector of
sda2 and looks at sector 512311487 of the same hard
drive for the stage2 file, but no stage2 files can be
found at this location.
You have Grub Legacy (0.97) installed in the mbr. The problem is above. You have a stage2 file somewhere on that partition (sda2) but according to the output you posted, not where it should be. Are you using the Knoppix CD to install Grub? When you boot Knoppix, can you check to see that it has Grub 0.97. Different releases of Grub don't always work together and as stated above, Grub2 and Grub Legacy are totally different.

Your best option is to use the installation medium you used for Opensuse 11.4 as some times distributions modify Grub. If you boot the Opensuse 11.4 and open a terminal, login as root and type 'grub' (without quotes) to get a grub prompt then run the following commands consecutively:

root (hd0,1)
setup (hd0)
quit
 
Old 12-31-2013, 03:00 AM   #9
zorro_kwh
Member
 
Registered: May 2007
Posts: 34

Original Poster
Rep: Reputation: 0
Unhappy Last tip doesn't work - Still same error

I have booted using OpenSuse 11.4 64Bit. I have checked the version using grub --version:
Code:
zorro:~ # grub --version
grub (GNU GRUB 0.97)
zorro:~ #
I ran the command and still end in the same error 15 after reboot. Then I deleted the mbr in /dev/sda2 using dd. Repeated the last steps again and ended in Error 15 again. As you can see the only difference is that the boot sector info doesn't have any information in it:
Code:
albert@zorro:~/Documents> diff RESULTS2.txt RESULTS3.txt
20,25c20,21
<     Boot sector type:  Grub Legacy
<     Boot sector info:  Grub Legacy (v0.97) is installed in the boot sector 
<                        of sda2 and looks at sector 512417575 of the same hard 
<                        drive for the stage2 file.  A stage2 file is at this 
<                        location on /dev/sda.  Stage2 looks on partition #2 
<                        for /boot/grub/menu.lst.
---
>     Boot sector type:  -
>     Boot sector info:
 
Old 12-31-2013, 06:57 AM   #10
zorro_kwh
Member
 
Registered: May 2007
Posts: 34

Original Poster
Rep: Reputation: 0
Unhappy Still not working although bootinfoscript seems to be ok

I have done several tests:
  • I used my OpenSuse 11.4 64Bit
  • I used the installed grub version 0.97
  • I Installed grub at /dev/sda and /dev/sda2
My last trick was to install grub into /dev/sda2 too:
Code:
# grub
...
grub> root (hd0,1)
grub> setup (hd0,1)
grub> guit
The message of grub says no errors only success!

Then I ran bootinfoscript again and I got the result:
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 #2 for /boot/grub/stage2 and /boot/grub/menu.lst.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  According to the info in the boot sector, sda5 starts 
                       at sector 607. But according to the info from fdisk, 
                       sda5 starts at sector 1015324672.
    Operating System:  
    Boot files:        

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 Köpfe, 63 Sektoren/Spur, 121601 Zylinder, zusammen 1953525168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 4096 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048   512,006,143   512,004,096   7 NTFS / exFAT / HPFS
/dev/sda2         512,007,615 1,015,324,064   503,316,450  83 Linux
/dev/sda3       1,015,324,065 1,953,520,064   938,196,000   f W95 Extended (LBA)
/dev/sda5       1,015,324,672 1,670,684,671   655,360,000   7 NTFS / exFAT / HPFS
/dev/sda6       1,670,695,803 1,953,520,064   282,824,262  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        14082C3B4F0DF338                       ntfs       Windows7
/dev/sda2        9949e790-cbe0-47c1-b5cc-1dc59fdcfe31   ext4       
/dev/sda5        5C449BDB449BB66C                       ntfs       Daten
/dev/sda6        54ab6c70-dff2-4bbb-94df-8ba2e55a8939   ext4       

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

Device           Mount_Point              Type       Options

/dev/sda1        /windows/C               fuseblk    (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
/dev/sda2        /                        ext4       (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
/dev/sda5        /windows/D               fuseblk    (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
/dev/sda6        /opt                     ext4       (rw,relatime,user_xattr,acl,barrier=1,data=ordered)


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

--------------------------------------------------------------------------------
# Modified by YaST2. Last modification on Mon Dec 30 08:40:13 CET 2013
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

default 2
timeout 8
gfxmenu (hd0,1)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.4 - 3.0.101-71
    root (hd0,1)
    kernel /boot/vmlinuz-3.0.101-71-desktop root=/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part2 nosplash quiet showopts vga=0x317
    initrd /boot/initrd-3.0.101-71-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.4 - 3.0.101-71
    root (hd0,1)
    kernel /boot/vmlinuz-3.0.101-71-desktop root=/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part2 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe
    initrd /boot/initrd-3.0.101-71-desktop

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

=============================== sda2/etc/fstab: ================================

--------------------------------------------------------------------------------
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 
maya:/volume1/public	/mnt/maya/public	nfs	noauto,soft,defaults 0 0 
maya:/volume1/web	/mnt/maya/web	nfs	noauto,soft,defaults 0 0 
maya:/volume1/photo	/mnt/maya/photo	nfs	noauto,soft,defaults 0 0 
maya:/volume1/music	/mnt/maya/music	nfs	noauto,soft,defaults 0 0 
maya:/volume1/video	/mnt/maya/video	nfs	noauto,soft,defaults 0 0 
willi:/volume1/public	/mnt/willi/public	nfs	soft,defaults 0 0 
willi:/volume1/web	/mnt/willi/web	nfs	soft,defaults 0 0 
willi:/volume1/photo	/mnt/willi/photo	nfs	soft,defaults 0 0 
willi:/volume1/music	/mnt/willi/music	nfs	soft,defaults 0 0 
willi:/volume1/video	/mnt/willi/video	nfs	soft,defaults 0 0 
//willi/wendy		/mnt/willi/wendy cifs	noauto,users,gid=users,forcegid,file_mode=133,dir_mode=022
# /dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part2 /data2               ext4       defaults              1 1
/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part1 /windows/C           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part5 /windows/D           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part2 /                    ext4       defaults              1 1
/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part6 /opt                 ext4       acl,user_xattr        1 2
/dev/Extern_SCSI/data /data                ext4       user,noauto,acl,user_xattr 0 0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 244.288974285 = 262.303288832  boot/grub/grub.conf                            1
 244.288974285 = 262.303288832  boot/grub/menu.lst                             1
 244.331889629 = 262.349368832  boot/grub/stage2                               1
 265.068500042 = 284.615134720  boot/initrd                                    1
 256.831756115 = 275.770998272  boot/initrd-2.6.37.1-1.2-desktop.old           2
 265.068500042 = 284.615134720  boot/initrd-3.0.101-71-desktop                 1
 256.956035137 = 275.904441856  boot/vmlinuz                                   1
 245.523498058 = 263.628848640  boot/vmlinuz-2.6.37.1-1.2-desktop.old          1
 256.956035137 = 275.904441856  boot/vmlinuz-3.0.101-71-desktop                1

========= Devices which don't seem to have a corresponding hard drive: =========

sdb sdc sdd sde 

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

  No volume groups found
mdadm: No arrays found in config file or automatically
As you can see I get the message, that a stage2 file is installed at the correct location and I would expect that it works now, but that is not the case. I get:
Code:
Grub loading stage 1.5.

Grub loading, please wait ...
Error 15
Why????
 
Old 12-31-2013, 07:46 AM   #11
zorro_kwh
Member
 
Registered: May 2007
Posts: 34

Original Poster
Rep: Reputation: 0
Unhappy I gave up right now. I use lilo in MBR

After several tests with grub I gave up and downloaded and installed lilo using this simple configuration:
Code:
#
#  global options:
boot=/dev/sda
prompt
timeout=150
lba32
compact
vga=normal
root=/dev/sda2
# read-only
menu-title=" Zorro Computer "
#
#  bootable kernel images:
image=/boot/vmlinuz-3.0.101-71-desktop
	label=OpenSuse11.4
	root=/dev/sda2
	initrd=/boot/initrd-3.0.101-71-desktop
	vga=0x317
other=/dev/sda1
	label=Windows7
Now I can boot Windows and Linux without a CD.

I want to switch back to grub if possible, but even with yast2 bootloader I cannot reinstall/reconfigure grub in a way to get it to work.

Any hints are really appreciated.

Is there a way to use lilo in MBR and grub in /dev/sda2? Here is my last bootscriptinfo result:
Code:
                  Boot Info Script 0.61      [1 April 2012]


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

 => Lilo is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  According to the info in the boot sector, sda5 starts 
                       at sector 607. But according to the info from fdisk, 
                       sda5 starts at sector 1015324672.
    Operating System:  
    Boot files:        

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 Köpfe, 63 Sektoren/Spur, 121601 Zylinder, zusammen 1953525168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 4096 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048   512,006,143   512,004,096   7 NTFS / exFAT / HPFS
/dev/sda2         512,007,615 1,015,324,064   503,316,450  83 Linux
/dev/sda3       1,015,324,065 1,953,520,064   938,196,000   f W95 Extended (LBA)
/dev/sda5       1,015,324,672 1,670,684,671   655,360,000   7 NTFS / exFAT / HPFS
/dev/sda6       1,670,695,803 1,953,520,064   282,824,262  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        14082C3B4F0DF338                       ntfs       Windows7
/dev/sda2        9949e790-cbe0-47c1-b5cc-1dc59fdcfe31   ext4       
/dev/sda5        5C449BDB449BB66C                       ntfs       Daten
/dev/sda6        54ab6c70-dff2-4bbb-94df-8ba2e55a8939   ext4       

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

Device           Mount_Point              Type       Options

/dev/sda1        /windows/C               fuseblk    (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
/dev/sda2        /                        ext4       (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
/dev/sda5        /windows/D               fuseblk    (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
/dev/sda6        /opt                     ext4       (rw,relatime,user_xattr,acl,barrier=1,data=ordered)


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

--------------------------------------------------------------------------------
# Modified by YaST2. Last modification on Tue Dec 31 13:35:26 CET 2013
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

default 2
timeout 8
gfxmenu (hd0,1)/boot/message
##YaST - activate
##YaST - generic_mbr

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.4 - 3.0.101-71
    root (hd0,1)
    kernel /boot/vmlinuz-3.0.101-71-desktop root=/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part2 nosplash quiet showopts vga=0x317
    initrd /boot/initrd-3.0.101-71-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.4 - 3.0.101-71
    root (hd0,1)
    kernel /boot/vmlinuz-3.0.101-71-desktop root=/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part2 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe
    initrd /boot/initrd-3.0.101-71-desktop

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

=============================== sda2/etc/fstab: ================================

--------------------------------------------------------------------------------
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 
maya:/volume1/public	/mnt/maya/public	nfs	noauto,soft,defaults 0 0 
maya:/volume1/web	/mnt/maya/web	nfs	noauto,soft,defaults 0 0 
maya:/volume1/photo	/mnt/maya/photo	nfs	noauto,soft,defaults 0 0 
maya:/volume1/music	/mnt/maya/music	nfs	noauto,soft,defaults 0 0 
maya:/volume1/video	/mnt/maya/video	nfs	noauto,soft,defaults 0 0 
willi:/volume1/public	/mnt/willi/public	nfs	soft,defaults 0 0 
willi:/volume1/web	/mnt/willi/web	nfs	soft,defaults 0 0 
willi:/volume1/photo	/mnt/willi/photo	nfs	soft,defaults 0 0 
willi:/volume1/music	/mnt/willi/music	nfs	soft,defaults 0 0 
willi:/volume1/video	/mnt/willi/video	nfs	soft,defaults 0 0 
//willi/wendy		/mnt/willi/wendy cifs	noauto,users,gid=users,forcegid,file_mode=133,dir_mode=022
# /dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part2 /data2               ext4       defaults              1 1
/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part1 /windows/C           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part5 /windows/D           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=de_DE.UTF-8 0 0
/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part2 /                    ext4       defaults              1 1
/dev/disk/by-id/ata-WDC_WD10EARS-22Y5B1_WD-WCAV5H643071-part6 /opt                 ext4       acl,user_xattr        1 2
/dev/Extern_SCSI/data /data                ext4       user,noauto,acl,user_xattr 0 0
--------------------------------------------------------------------------------

============================= sda2/etc/lilo.conf: ==============================

--------------------------------------------------------------------------------
#
#  global options:
boot=/dev/sda
prompt
timeout=150
lba32
compact
vga=normal
root=/dev/sda2
# read-only
menu-title=" Zorro Computer "
#
#  bootable kernel images:
image=/boot/vmlinuz-3.0.101-71-desktop
	label=OpenSuse11.4
	root=/dev/sda2
	initrd=/boot/initrd-3.0.101-71-desktop
	vga=0x317
other=/dev/sda1
	label=Windows7

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

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

           GiB - GB             File                                 Fragment(s)

            ?? = ??             boot/grub/grub.conf                            1
            ?? = ??             boot/grub/menu.lst                             1
 244.331889629 = 262.349368832  boot/grub/stage2                               1
 265.068500042 = 284.615134720  boot/initrd                                    1
 256.831756115 = 275.770998272  boot/initrd-2.6.37.1-1.2-desktop.old           2
 265.068500042 = 284.615134720  boot/initrd-3.0.101-71-desktop                 1
 256.956035137 = 275.904441856  boot/vmlinuz                                   1
 245.523498058 = 263.628848640  boot/vmlinuz-2.6.37.1-1.2-desktop.old          1
 256.956035137 = 275.904441856  boot/vmlinuz-3.0.101-71-desktop                1

========= Devices which don't seem to have a corresponding hard drive: =========

sdb sdc sdd sde 

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

  No volume groups found
mdadm: No arrays found in config file or automatically
 
Old 12-31-2013, 11:04 AM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
I'm not sure what the problem is. The commands I suggested in my last post have always worked for me. You have the stage2 file where it should be according to your last post. When you run the commands, does it indicte stage1_5 found. I don't really have any other ideas.
 
Old 12-31-2013, 08:16 PM   #13
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,321
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Code:
# grub
...
grub> root (hd0,1)
grub> setup (hd0,1)
grub> guit
try "setup (hd0)" you need to replace the MBR, not the partition specific grub files.
 
Old 01-01-2014, 12:35 AM   #14
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
If you can boot using lilo then why not let the package manager install it?
 
Old 01-01-2014, 02:20 PM   #15
zorro_kwh
Member
 
Registered: May 2007
Posts: 34

Original Poster
Rep: Reputation: 0
Status update and answers to some of your questions

Some answers:
  • I have used
    Code:
    # grub
    grub> root (hd0,1)
    grub> setup (hd0)
    grub> quit
    several times during my tests and never get it to work. I always get "Error 15".
  • When I run a setup command grub finds the three files stage1, stage2 and e2fs_stage_1_5 (I am not sure if this was the right spelling). No errors may indicate any problems but I always get "Error 15".
Lilo is working now so far. When I start "yast2 bootloader" I get several messages, that a different bootloader is installed and it cannot handle it with grub settings anymore. I installed lilo packages using zypper, edited lilo.conf and installed lilo into MBR by myself without the yast2 GUI.

Shall I try to uninstall grub packages with zypper and afterwards reinstall grub packages again? - I will try that the next days and keep you updated...

(I have to test the rescue CD with lilo before I switch back to grub to get my OS booted.)
 
  


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
[SOLVED] Why do the bootloaders (grub, grub4dos & Lilo) boot clonezilla instead of gparted? yanfaun Linux - Software 20 10-21-2010 11:08 PM
HELP! MBR defunct, cannot boot anymore D: GRUB loader crashed HoBu Linux - Laptop and Netbook 10 09-12-2009 01:36 PM
Grub help - XP won't boot anymore lt2007 Linux - Newbie 5 09-27-2007 10:26 AM
Can't get grub to boot Windows anymore! a10waveracer Linux - General 7 08-24-2005 03:58 AM
grub won't boot anymore.... quark Linux - Newbie 3 07-29-2003 12:32 PM


All times are GMT -5. The time now is 04: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration