FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 03-16-2012, 06:13 PM
Bruno Costacurta
 
Default Boot problem : Operating System not found.

'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 gfxmode=640x480
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
--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 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: 20120316201305.Horde.E2_tKb5-3oNPY5DBS9kkx9A@webmail.costacurta.org">http://lists.debian.org/20120316201305.Horde.E2_tKb5-3oNPY5DBS9kkx9A@webmail.costacurta.org
 
Old 03-16-2012, 09:21 PM
Tom H
 
Default Boot problem : Operating System not found.

On Fri, Mar 16, 2012 at 3:13 PM, Bruno Costacurta <techie@costacurta.org> 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 debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAOdo=SyofqPWFQbZ=XttS=FP-UNi8yiFybfxh4UN9qOFLFx6Xg@mail.gmail.com">http://lists.debian.org/CAOdo=SyofqPWFQbZ=XttS=FP-UNi8yiFybfxh4UN9qOFLFx6Xg@mail.gmail.com
 
Old 03-17-2012, 01:23 PM
Bruno Costacurta
 
Default Boot problem : Operating System not found.

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.


OK, hereafter I added the drive info produced by boot_info_script.sh.
I'll also try the SuperGrub2Disk ASAP.

Bye.
Bruno

============================= 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:

sda2:
__________________________________________________ ________________________


File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /boot/grub/grub.cfg /etc/fstab

sda3:
__________________________________________________ ________________________


File system: swap
Boot sector type: -
Boot sector info:

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]

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


Drive: sda
__________________________________________________ ___________________


Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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 1 976,773,167 976,773,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 34 39,096 39,063 EFI System partition
/dev/sda2 39,097 926,705,663 926,666,567 Data partition
(Windows/Linux)

/dev/sda3 968,710,973 976,773,118 8,062,146 Swap partition (Linux)
/dev/sda4 926,705,664 946,236,914 19,531,251 Data partition
(Windows/Linux)

/dev/sda5 946,237,440 968,710,143 22,472,704 EFI System partition

"blkid" output:
__________________________________________________ ______________


Device UUID TYPE LABEL

/dev/sda1 DAA7-3EEF vfat
/dev/sda2 1f2cac6a-301f-48f7-a83e-70485ad3a653 ext4
/dev/sda3 cc3d3f3f-d38e-4741-adc1-7807282fdc16 swap
/dev/sda4 b6ebc0b2-59cc-4ceb-81ba-c60d90be2fdc ext4
/dev/sda5 5c1fb0d9-aafd-42cd-9626-ce4d1c170d7f ext4

[snip]

=============================== 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]


Bye,
Bruno


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 20120317152303.Horde.0ohANr5-3oNPZJ5HdzFReRA@webmail.costacurta.org">http://lists.debian.org/20120317152303.Horde.0ohANr5-3oNPZJ5HdzFReRA@webmail.costacurta.org
 
Old 03-17-2012, 04:30 PM
Bruno Costacurta
 
Default Boot problem : Operating System not found.

[snip]

I'll also try the SuperGrub2Disk ASAP.

[snip]

Yes, it works when booting using a SuperGrub2Disk CD.

From SuperGrub2Disk boot menu :
Detect any OS -> Debian correctly found on /dev/sda4 -> boot is OK.

So I suppose the GRUB on the hard disk is incorrectly setup.
As the boot-info script reported in previous email.
Note that others distros (Xubuntu and Sabayon) boots correctly.

So how to correct GRUB regarding Debian problem ?
Manually or using tools (certainly preferred solution )?
I already ran update-grub but without any success.

Bye.
Bruno


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 20120317183051.Horde.8dTRBb5-3oNPZMpLyb3nQnA@webmail.costacurta.org">http://lists.debian.org/20120317183051.Horde.8dTRBb5-3oNPZMpLyb3nQnA@webmail.costacurta.org
 
Old 03-17-2012, 05:42 PM
Camaleón
 
Default Boot problem : Operating System not found.

On Sat, 17 Mar 2012 18:30:51 +0100, Bruno Costacurta wrote:

Bruno, you MUA is somehow deleting both "References:" and "In-Reply-To:"
header fields and thus your posts are kept unthreaded.

> [snip]
>> I'll also try the SuperGrub2Disk ASAP.
> [snip]
>
> Yes, it works when booting using a SuperGrub2Disk CD.
>
> From SuperGrub2Disk boot menu :
> Detect any OS -> Debian correctly found on /dev/sda4 -> boot is OK.

Good :-)

> So I suppose the GRUB on the hard disk is incorrectly setup. As the
> boot-info script reported in previous email. Note that others distros
> (Xubuntu and Sabayon) boots correctly.
>
> So how to correct GRUB regarding Debian problem ? Manually or using
> tools (certainly preferred solution )? I already ran update-grub but
> without any success.

I would first try to manually boot Debian from GRUB2 console. Based on
the information you've provided and the link I previously sent, it should
be something like this:

***
set root=(hd0,gpt4)
linux /boot/vmlinuz root=/dev/sda4 ro
initrd /boot/initrd.img-2.6.32-5-amd64
boot
***

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: jk2luf$q5l$14@dough.gmane.org">http://lists.debian.org/jk2luf$q5l$14@dough.gmane.org
 

Thread Tools




All times are GMT. The time now is 10:15 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org