Re: Boot problem : Operating System not found.

March 16th, 2012 - 02:30 pm ET by Bruno Costacurta | Report spam


'Operating System not found' is displayed once boot via GRUB command line.




[snip]


What's the output of bootinfoscript?


[snip]

So I ran boot_info_script.sh.
Which returns the following (snipped to mainly show /dev/sda4 on which
Debian is installed) :


Boot Info Script 0.60 from 17 May 2011

== Boot Info Summary:

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector
946507840 of the same hard drive for core.img. core.img is at this
location and looks for on this drive.

sda1:
__________________________________________________________________________

File system: vfat
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda1
and looks at sector 932584136 of the same hard drive
for core.img. core.img is at this location and looks
for on this drive. According to the info in the boot
sector, sda1 has 0 sectors.
Operating System:
Boot files:

[snip]
sda4:
__________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Debian GNU/Linux 6.0
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
[snip]
sda4/boot/grub/grub.cfg:
==
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_gpt
insmod ext2
set root='(hd0,gpt4)'
search --no-floppy --fs-uuid --set b6ebc0b2-59cc-4ceb-81ba-c60d90be2fdc
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmoded0x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt4)'
search --no-floppy --fs-uuid --set b6ebc0b2-59cc-4ceb-81ba-c60d90be2fdc
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian
insmod part_gpt
insmod ext2
set root='(hd0,gpt4)'
search --no-floppy --fs-uuid --set
b6ebc0b2-59cc-4ceb-81ba-c60d90be2fdc
echo 'Loading Linux 2.6.32-5-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-amd64
root=UUID=b6ebc0b2-59cc-4ceb-81ba-c60d90be2fdc ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery
mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_gpt
insmod ext2
set root='(hd0,gpt4)'
search --no-floppy --fs-uuid --set
b6ebc0b2-59cc-4ceb-81ba-c60d90be2fdc
echo 'Loading Linux 2.6.32-5-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-amd64
root=UUID=b6ebc0b2-59cc-4ceb-81ba-c60d90be2fdc ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-amd64
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, with Linux 3.0.0-16-generic (on /dev/sda2)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set
1f2cac6a-301f-48f7-a83e-70485ad3a653
linux /boot/vmlinuz-3.0.0-16-generic
root=UUID=1f2cac6a-301f-48f7-a83e-70485ad3a653 ro acpi=off splash
vt.handoff=7
initrd /boot/initrd.img-3.0.0-16-generic
}
menuentry "Ubuntu, with Linux 3.0.0-16-generic (recovery mode) (on
/dev/sda2)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set
1f2cac6a-301f-48f7-a83e-70485ad3a653
linux /boot/vmlinuz-3.0.0-16-generic
root=UUID=1f2cac6a-301f-48f7-a83e-70485ad3a653 ro recovery nomodeset
acpi=off
initrd /boot/initrd.img-3.0.0-16-generic
}
menuentry "Ubuntu, with Linux 3.0.0-15-generic (on /dev/sda2)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set
1f2cac6a-301f-48f7-a83e-70485ad3a653
linux /boot/vmlinuz-3.0.0-15-generic
root=UUID=1f2cac6a-301f-48f7-a83e-70485ad3a653 ro acpi=off splash
vt.handoff=7
initrd /boot/initrd.img-3.0.0-15-generic
}
menuentry "Ubuntu, with Linux 3.0.0-15-generic (recovery mode) (on
/dev/sda2)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set
1f2cac6a-301f-48f7-a83e-70485ad3a653
linux /boot/vmlinuz-3.0.0-15-generic
root=UUID=1f2cac6a-301f-48f7-a83e-70485ad3a653 ro recovery nomodeset
acpi=off
initrd /boot/initrd.img-3.0.0-15-generic
}
menuentry "Ubuntu, with Linux 3.0.0-14-generic (on /dev/sda2)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set
1f2cac6a-301f-48f7-a83e-70485ad3a653
linux /boot/vmlinuz-3.0.0-14-generic
root=UUID=1f2cac6a-301f-48f7-a83e-70485ad3a653 ro acpi=off splash
vt.handoff=7
initrd /boot/initrd.img-3.0.0-14-generic

}
menuentry "Ubuntu, with Linux 3.0.0-14-generic (recovery mode) (on
/dev/sda2)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set
1f2cac6a-301f-48f7-a83e-70485ad3a653
linux /boot/vmlinuz-3.0.0-14-generic
root=UUID=1f2cac6a-301f-48f7-a83e-70485ad3a653 ro recovery nomodeset
acpi=off
initrd /boot/initrd.img-3.0.0-14-generic
}
menuentry "Ubuntu, with Linux 3.0.0-13-generic (on /dev/sda2)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set
1f2cac6a-301f-48f7-a83e-70485ad3a653
linux /boot/vmlinuz-3.0.0-13-generic
root=UUID=1f2cac6a-301f-48f7-a83e-70485ad3a653 ro acpi=off splash
vt.handoff=7
initrd /boot/initrd.img-3.0.0-13-generic
}
menuentry "Ubuntu, with Linux 3.0.0-13-generic (recovery mode) (on
/dev/sda2)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set
1f2cac6a-301f-48f7-a83e-70485ad3a653
linux /boot/vmlinuz-3.0.0-13-generic
root=UUID=1f2cac6a-301f-48f7-a83e-70485ad3a653 ro recovery nomodeset
acpi=off
initrd /boot/initrd.img-3.0.0-13-generic
}
menuentry "Ubuntu, with Linux 3.0.0-12-generic (on /dev/sda2)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set
1f2cac6a-301f-48f7-a83e-70485ad3a653
linux /boot/vmlinuz-3.0.0-12-generic
root=UUID=1f2cac6a-301f-48f7-a83e-70485ad3a653 ro acpi=off splash
vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry "Ubuntu, with Linux 3.0.0-12-generic (recovery mode) (on
/dev/sda2)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set
1f2cac6a-301f-48f7-a83e-70485ad3a653
linux /boot/vmlinuz-3.0.0-12-generic
root=UUID=1f2cac6a-301f-48f7-a83e-70485ad3a653 ro recovery nomodeset
acpi=off
initrd /boot/initrd.img-3.0.0-12-generic
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

= sda4/etc/fstab:
=
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda4 during installation
UUID=b6ebc0b2-59cc-4ceb-81ba-c60d90be2fdc / ext4
errors=remount-ro 0 1
# swap was on /dev/sda3 during installation
UUID=cc3d3f3f-d38e-4741-adc1-7807282fdc16 none swap sw
0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

= sda4: Location of files loaded by Grub:
=
GiB - GB File
Fragment(s)

442.020458221 = 474.615853056 boot/grub/core.img
1
450.046794891 = 483.234066432 boot/grub/grub.cfg
2
442.517547607 = 475.149598720 boot/initrd.img-2.6.32-5-amd64
1
442.415344238 = 475.039858688 boot/vmlinuz-2.6.32-5-amd64
1
442.517547607 = 475.149598720 initrd.img
1
442.415344238 = 475.039858688 vmlinuz
1

[snip]


Linux Counter # 353844
https://linuxcounter.net/user/353844.html



To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20120316201...5DBS9kkx9A@webmail.costacurta.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Tom H
March 16th, 2012 - 05:30 pm ET | Report spam
On Fri, Mar 16, 2012 at 3:13 PM, Bruno Costacurta wrote:

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector
   946507840 of the same hard drive for core.img. core.img is at this
   location and looks for  on this drive.
...
sda1:

   File system:       vfat
   Boot sector type:  Grub2 (v1.99)
   Boot sector info:   Grub2 (v1.99) is installed in the boot sector of sda1
                      and looks at sector 932584136 of the same hard drive
                      for core.img. core.img is at this location and looks
                      for  on this drive. According to the info in the boot
                      sector, sda1 has 0 sectors.
...
set root='(hd0,gpt4)'



It would've been helpful not to have snipped the "drive partition
info" section! :)

You have a gpt-labelled disk but sda1 isn't OK. As "File system", it
should have "BIOS Boot partition". "Boot sector type" and "Boot sector
info" cannot be right but I don't know what they should be.

The two "looks at sector" seem *very* wrong.


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/CAOdo=SyofqPWFQbZ=XttS=

Similar topics