[Fixed] Ubuntu Not Found

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
goatgonads

[Fixed] Ubuntu Not Found

Post by goatgonads »

I have ubuntu on one drive and mint on another. I am attempting to update grub to dual boot. Each drive had a separate install with no other drives installed. I wanted mint to be my default. I can boot there no problem. In order to get ubuntu to show up on grub i ran "update-grub" and it produced the following:

Found Debian background: linuxmint.png
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Ubuntu 9.10 (9.10) on /dev/sdb1
done

This leads me to believe that grub sees the ubuntu install. Yet it does not appear in my boot menu. I checked the boot folder on that drive and it is empty besides a grub folder containing many files. I am completely lost, can anyone provide any tips?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Leppie

Re: Ubuntu Not Found

Post by Leppie »

to get a better understanding of your current system, could you please download and run the boot info script and post the generated RESULTS.txt?
goatgonads

Re: Ubuntu Not Found

Post by goatgonads »

Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for /boot/grub.
=> Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in
partition #1 for /boot/grub.
=> No boot loader is installed in the MBR of /dev/sdc

sda1: _________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Linux Mint 8 Helena - x64
Edition
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: _________________________________________________________________________

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

sda5: _________________________________________________________________________

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

sdb1: _________________________________________________________________________

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

sdb2: _________________________________________________________________________

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

sdb5: _________________________________________________________________________

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

sdc1: _________________________________________________________________________

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

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

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x0002553e

Partition Boot Start End Size Id System

/dev/sda1 * 63 599,738,579 599,738,517 83 Linux
/dev/sda2 599,738,580 625,137,344 25,398,765 5 Extended
/dev/sda5 599,738,643 625,137,344 25,398,702 82 Linux swap / Solaris


Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x000b60bf

Partition Boot Start End Size Id System

/dev/sdb1 * 63 468,519,659 468,519,597 83 Linux
/dev/sdb2 468,519,660 488,392,064 19,872,405 5 Extended
/dev/sdb5 468,519,723 488,392,064 19,872,342 82 Linux swap / Solaris


Drive: sdc ___________________ _____________________________________________________

Disk /dev/sdc: 64.1 GB, 64105742336 bytes
255 heads, 63 sectors/track, 7793 cylinders, total 125206528 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x000854a8

Partition Boot Start End Size Id System

/dev/sdc1 63 125,194,544 125,194,482 83 Linux


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 91e4b8cc-ae64-4a0d-a9d9-a0291d6111eb ext4
/dev/sda5 2c9890f7-51c1-4d2a-b345-061751f5dd1f swap
/dev/sdb1 f3b5437c-1a53-4fab-bc46-9f5715cdbaa0 ext4
/dev/sdb5 4fdb10a6-c82d-4ce1-9180-eca7de329d7a swap
/dev/sdc1 3eff8220-ba91-418b-9494-ce3d7f8215da ext4 OCZ

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda1 / ext4 (rw,errors=remount-ro)
/dev/sdc1 /media/OCZ ext4 (rw,nosuid,nodev,uhelper=devkit)


=========================== sda1/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 91e4b8cc-ae64-4a0d-a9d9-a0291d6111eb
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

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

### BEGIN /etc/grub.d/06_mint_theme ###
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 91e4b8cc-ae64-4a0d-a9d9-a0291d6111eb
insmod png
if background_image /boot/grub/linuxmint.png ; then
set color_normal=white/black
set color_highlight=white/light-gray
else
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
fi
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Linux Mint 8 Helena x64, linux 2.6.31-14-generic (/dev/sda1)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 91e4b8cc-ae64-4a0d-a9d9-a0291d6111eb
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=91e4b8cc-ae64-4a0d-a9d9-a0291d6111eb ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Linux Mint 8 Helena x64, linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 91e4b8cc-ae64-4a0d-a9d9-a0291d6111eb
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=91e4b8cc-ae64-4a0d-a9d9-a0291d6111eb ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###

=============================== sda1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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/sda1 during installation
UUID=91e4b8cc-ae64-4a0d-a9d9-a0291d6111eb / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=2c9890f7-51c1-4d2a-b345-061751f5dd1f none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

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


.4GB: boot/grub/core.img
.8GB: boot/grub/grub.cfg
.7GB: boot/initrd.img-2.6.31-14-generic
.3GB: boot/vmlinuz-2.6.31-14-generic
.7GB: initrd.img
.3GB: vmlinuz

=========================== sdb1/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set f3b5437c-1a53-4fab-bc46-9f5715cdbaa0
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

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

### BEGIN /etc/grub.d/10_linux ###
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###

=============================== sdb1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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/sda1 during installation
UUID=f3b5437c-1a53-4fab-bc46-9f5715cdbaa0 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=4fdb10a6-c82d-4ce1-9180-eca7de329d7a none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sdb1 /media/sdb1 ext4 defaults 0 0
/dev/sdb5 /media/sdb5 swap sw 0 0
/dev/sdd1 /media/sdd1 ext4 defaults 0 0

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


.1GB: boot/grub/core.img
.1GB: boot/grub/grub.cfg
=======Devices which don't seem to have a corresponding hard drive==============

sdd sde sdf sdg
Last edited by goatgonads on Wed Feb 17, 2010 2:02 pm, edited 1 time in total.
Leppie

Re: Ubuntu Not Found

Post by Leppie »

could you also post the first part of the output please?
goatgonads

Re: Ubuntu Not Found

Post by goatgonads »

I edited the post above, sorry about that.
Leppie

Re: Ubuntu Not Found

Post by Leppie »

ok, boot into your mint install and recreate your device.map:

Code: Select all

sudo mv /boot/grub/device.map /boot/grub/device.map.old
sudo grub-mkdevicemap
then regenerate your grub.cfg:

Code: Select all

sudo update-grub
if you want both grub2's to show all entries, boot into your ubuntu install and repeat the same steps.
goatgonads

Re: Ubuntu Not Found

Post by goatgonads »

It is seeing it when I update, but nothing appears on the boot menu.

Found Debian background: linuxmint.png
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Ubuntu 9.10 (9.10) on /dev/sdb1
done

Perhaps the boot files on that drive are corrupted?
Leppie

Re: Ubuntu Not Found

Post by Leppie »

could you post your /boot/grub/device.map?
goatgonads

Re: Ubuntu Not Found

Post by goatgonads »

(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
Leppie

Re: Ubuntu Not Found

Post by Leppie »

that seems to be ok.
could you also post the output of the following command:

Code: Select all

ls -al /etc/grub.d/
goatgonads

Re: Ubuntu Not Found

Post by goatgonads »

total 52
drwxr-xr-x 2 root root 4096 2009-12-02 11:34 .
drwxr-xr-x 140 root root 12288 2010-02-17 14:21 ..
-rwxr-xr-x 1 root root 3296 2009-10-23 20:43 00_header
-rwxr-xr-x 1 root root 1154 2009-10-23 20:31 05_debian_theme
-rwxr-xr-x 1 root root 1152 2009-10-28 11:43 06_mint_theme
-rwxr-xr-x 1 root root 3891 2009-11-14 10:30 10_linux
-rwxr-xr-x 1 root root 772 2009-10-23 12:24 20_memtest86+
-rwxr-xr-x 1 root root 5467 2009-11-14 10:30 30_os-prober
-rwxr-xr-x 1 root root 214 2009-10-23 20:43 40_custom
-rw-r--r-- 1 root root 483 2009-10-23 20:43 README
Leppie

Re: Ubuntu Not Found

Post by Leppie »

ok, something strange is going on as your 30_os-prober is set to be executable but is not really processed with update-grub.
i think that you may have a broken grub2 installation. try removing it and then re-installing it:

Code: Select all

sudo apt-get purge grub grub-pc grub-common
sudo apt-get install grub-pc grub-common
if you get some message that some package(s) is (are) not installed, just ignore it and go ahead.
goatgonads

Re: Ubuntu Not Found

Post by goatgonads »

Tried that, it still lists ubuntu when it is updating, but does not list it at the boot loader.
goatgonads

Re: Ubuntu Not Found

Post by goatgonads »

I have found that the hard drive has a bunch of bad sectors on it, i'm going to replace the drive and give up on it. Thanks anyway.
Locked

Return to “Installation & Boot”