PDA

View Full Version : [SOLVED] Just installed Ubuntu, and there is no option to boot it.



rilomuse
February 18th, 2012, 12:42 AM
Running it from the disc right now all fine and dandy.

I managed to use that script that helps identify these problems. I think that I managed it correctly.

lisati
February 18th, 2012, 12:47 AM
To boot into Ubuntu, all that is usually needed is to restart your computer, remembering to take the CD out when requested.

rilomuse
February 18th, 2012, 12:48 AM
Oh, yes... I've done that a few times.

It just sits at some screen for a few minutes then asks me to pick to boot my CD drive or my Hard Drive first. Then if I boot the hard drive that I installed Ubuntu, too.. It sits at that same screen.

23dornot23d
February 18th, 2012, 12:54 AM
Will just add the output here for you more people may comment on it ....




Boot Info Script 0.60 from 17 May 2011


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

=> No boot loader is installed in the MBR of /dev/sda.

sda1: __________________________________________________ ________________________

File system: vfat
Boot sector type: -
Boot sector info: According to the info in the boot sector, sda1 has 0
sectors.
Operating System:
Boot files: /boot/grub/core.img

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:

============================ 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 / 4096 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 968,560,581 968,521,485 Data partition (Windows/Linux)
/dev/sda3 968,560,582 976,773,118 8,212,537 Swap partition (Linux)

"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 CCD4-B726 vfat
/dev/sda2 34461926-f7f2-43fc-94f5-2f1ab02ebc9c ext4
/dev/sda3 c0906ac7-6107-4d62-bdc8-f1072219eeef swap

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

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sr0 /cdrom iso9660 (ro,noatime)


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

GiB - GB File Fragment(s)

?? = ?? boot/grub/core.img 1

=========================== sda2/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
set have_grubenv=true
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 recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
}

insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 34461926-f7f2-43fc-94f5-2f1ab02ebc9c
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 34461926-f7f2-43fc-94f5-2f1ab02ebc9c
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
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/light-gray
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 34461926-f7f2-43fc-94f5-2f1ab02ebc9c
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=34461926-f7f2-43fc-94f5-2f1ab02ebc9c ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 34461926-f7f2-43fc-94f5-2f1ab02ebc9c
echo 'Loading Linux 3.0.0-12-generic ...'
linux /boot/vmlinuz-3.0.0-12-generic root=UUID=34461926-f7f2-43fc-94f5-2f1ab02ebc9c ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.0.0-12-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 34461926-f7f2-43fc-94f5-2f1ab02ebc9c
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root 34461926-f7f2-43fc-94f5-2f1ab02ebc9c
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
--------------------------------------------------------------------------------

=============================== sda2/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 nodev,noexec,nosuid 0 0
# / was on /dev/sda2 during installation
UUID=34461926-f7f2-43fc-94f5-2f1ab02ebc9c / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=CCD4-B726 /boot/efi vfat defaults 0 1
# swap was on /dev/sda3 during installation
UUID=c0906ac7-6107-4d62-bdc8-f1072219eeef none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

= boot/grub/grub.cfg 1
= boot/initrd.img-3.0.0-12-generic 2
= boot/vmlinuz-3.0.0-12-generic 1
= initrd.img 2
= vmlinuz 1

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

sdb

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

awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in

rilomuse
February 18th, 2012, 12:55 AM
:( Oh, sorry, new here so wasn't sure how to post it.

darkod
February 18th, 2012, 01:04 AM
You have identical situation like here:
http://ubuntuforums.org/showthread.php?t=1926948

Look at my post #9. That might help you point you in a right direction.

rilomuse
February 18th, 2012, 01:20 AM
Thanks, I'll try and figure out what this means then... Thanks! I'll see if any of this helps.

EDIT: Eh.. Didn't really figure anything out. It's all just gibberish to me <_< Was hoping I just needed to install a little something or other.

Last time I installed Ubuntu a few years ago, it just installed perfectly fine and booted right up...

23dornot23d
February 18th, 2012, 01:53 AM
I pm'd drs305 as he is a wizard on these things .....

this is the response ..... hope it helps ....



You must install grub to the MBR. To do so, boot the 11.10 LiveCD, mount your Ubuntu partition and install Grub:

Code:
sudo mount /dev/sda2 /mnt
sudo grub-install --root-directory=/mnt /dev/sda

Don't use the partition number in the second command.
Reboot without the LiveCD.


drs305

rilomuse
February 18th, 2012, 01:59 AM
K, I'll try that. I just paste that code into the terminal, right?

23dornot23d
February 18th, 2012, 02:01 AM
Wait - there may be more to this than that with it being EFI .......

/dev/sda1 34 39,096 39,063 EFI System partition

# /boot/efi was on /dev/sda1 during installation UUID=CCD4-B726 /boot/efi vfat defaults 0 1


http://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface (http://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface)

drs305
February 18th, 2012, 02:03 AM
Sorry, I failed to notice the EFI portion of RESULTS.txt

I don't think it's going to be as simple as I expected, since you are using EFI. I haven't used it so I think you will have to wait for someone who does if you want to use EFI. (Although I agree with darkod in the post he references.

rilomuse
February 18th, 2012, 02:03 AM
I apologize again, this is what I got...


mount: unrecognized option '--root-directory=/mnt'
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .

darkod
February 18th, 2012, 02:07 AM
Note that those are two separate commands to run one after the other.
sudo mount /dev/sda2 /mnt
sudo grub-install --root-directory=/mnt /dev/sda

I wonder if that will help, but try it. If not, you have other options.

I am sorry that you didn't figure anything out, but the point is that there is no single solution. There are different options and we can't say do this or do that, because it depends how you use your computer.

My idea remains the same, unless it is impossible for you, do this:
1. Write new empty msdos partition table on the hdd (NOTE: That will delete ALL DATA on it, do this only if you have nothing you want to keep).
2. Use bios boot, and not efi boot.

23dornot23d
February 18th, 2012, 02:42 AM
A link to some more information regarding this boot problem ....

LINK (http://www.rodsbooks.com/gdisk/booting.html)

I also apologize as when I cut and pasted the commands in they came together as one.

Old Fred seemed to know his way around this problem .... we once came across it a long
time back .... and it was not as easy as it first looked .....

But if there is Data on there you need - you need to boot from the LiveCD and make sure that everything that you want is backed up .....

rilomuse
February 18th, 2012, 04:36 AM
I just installed the 32 bit version instead and that seems to be working fine! Thanks! I had 64 bit Windows installed, so I assumed 64 bit Ubuntu would be fine.

Now I am having wireless problems even though I installed the drivers it told me, too. I think I should be able to figure this out, though.

EDIT: Nevermind, I got it! Thanks for all the help!

23dornot23d
February 18th, 2012, 04:41 AM
Excellent - glad you sorted it out .... :D

there is a section for wireless and comms here .... to get help if you need it for that.


http://ubuntuforums.org/forumdisplay.php?f=336

drs305
February 18th, 2012, 01:59 PM
I just installed the 32 bit version instead and that seems to be working fine!

Glad it's working for you now. If you ever run the boot info script again would you mind posting it here? I'm curious to see what changed regarding EFI - something a lot of us don't know much about...

Happy Ubuntu-ing !

oldfred
February 18th, 2012, 03:57 PM
Only the newest test/git version of the Boot info script parses efi partitions. It is in Boot Repair as the default or you have to download from the git direct download. Gert has not updated from version 60 yet.

wget -O bootinfoscript 'http://bootinfoscript.git.sourceforge.net/git/gitweb.cgi?p=bootinfoscript/bootinfoscript;a=blob_plain;f=bootinfoscript;hb=HE AD'
chmod a+x bootinfoscript
sudo bash bootinfoscript

I cannot tell if the OP was booting from efi or just had gpt partitioning and was booting from the MBR. If gpt & MBR, there is no room for the core.img, so it installs like a partition install with blocklists. To avoid the blocklists you have to create a bios_grub 1MB partition somewhere on the drive. If booting with efi, you do not have a bios_grub partition but the efi partition has to be the first partition.