PDA

View Full Version : [SOLVED] Ubuntu 12.04.3 will not boot



JohnMac
December 21st, 2013, 03:51 AM
I did the normal update last night before switching off the computer. This morning it will not boot up. I tried using my boot-repair disk to re-install grub and disk repair, but I just get a black screen and text asking me to login to my computer.

My computer details:

Desktop PC
CPU AMD 5200 X2
On board graphic
160 G IDE drive
Running Ubuntu 12.04.3 LTE





Boot Info Script 0.61-git [15 June 2012]


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

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

sda1: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04.3 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab
/boot/extlinux/extlinux.conf /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:

sda6: __________________________________________________ ________________________

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

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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 * 2,048 103,618,559 103,616,512 83 Linux
/dev/sda2 103,620,606 312,580,095 208,959,490 5 Extended
/dev/sda5 308,387,840 312,580,095 4,192,256 82 Linux swap / Solaris
/dev/sda6 103,626,752 308,385,791 204,759,040 83 Linux


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 741f375b-2561-44ff-9875-9fcd13a43c9c ext4
/dev/sda5 91477296-5006-4181-b532-73f0d1fc5b99 swap
/dev/sda6 e426d440-4167-4835-b472-208e94240849 ext4

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

Device Mount_Point Type Options

/dev/sr0 /live/image iso9660 (ro,noatime)


=========================== sda1/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 vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 741f375b-2561-44ff-9875-9fcd13a43c9c
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 741f375b-2561-44ff-9875-9fcd13a43c9c
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=10
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 ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
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.2.0-35-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 741f375b-2561-44ff-9875-9fcd13a43c9c
linux /boot/vmlinuz-3.2.0-35-generic-pae root=UUID=741f375b-2561-44ff-9875-9fcd13a43c9c ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-35-generic-pae
}
menuentry 'Ubuntu, with Linux 3.2.0-35-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 741f375b-2561-44ff-9875-9fcd13a43c9c
echo 'Loading Linux 3.2.0-35-generic-pae ...'
linux /boot/vmlinuz-3.2.0-35-generic-pae root=UUID=741f375b-2561-44ff-9875-9fcd13a43c9c ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-35-generic-pae
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.2.0-34-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 741f375b-2561-44ff-9875-9fcd13a43c9c
linux /boot/vmlinuz-3.2.0-34-generic-pae root=UUID=741f375b-2561-44ff-9875-9fcd13a43c9c ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-34-generic-pae
}
menuentry 'Ubuntu, with Linux 3.2.0-34-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 741f375b-2561-44ff-9875-9fcd13a43c9c
echo 'Loading Linux 3.2.0-34-generic-pae ...'
linux /boot/vmlinuz-3.2.0-34-generic-pae root=UUID=741f375b-2561-44ff-9875-9fcd13a43c9c ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-34-generic-pae
}
}
### 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_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 741f375b-2561-44ff-9875-9fcd13a43c9c
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 741f375b-2561-44ff-9875-9fcd13a43c9c
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/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###
--------------------------------------------------------------------------------

=============================== sda1/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/sda1 during installation
# UUID=741f375b-2561-44ff-9875-9fcd13a43c9c / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=91477296-5006-4181-b532-73f0d1fc5b99 none swap sw 0 0
UUID=e426d440-4167-4835-b472-208e94240849 /mnt/data ext4 auto,users,rw,relatime 0 2
# added following text cdrom not mount
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0


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

====================== sda1/boot/extlinux/extlinux.conf: =======================

--------------------------------------------------------------------------------
## /boot/extlinux/extlinux.conf
##
## IMPORTANT WARNING
##
## The configuration of this file is generated automatically.
## Do not edit this file manually, use: extlinux-update


default l0
prompt 1
timeout 50

include themes/debian/theme.cfg
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

?? = ?? boot/grub/core.img 1
?? = ?? boot/grub/grub.cfg 1
?? = ?? boot/initrd.img-3.2.0-34-generic-pae 2
?? = ?? boot/initrd.img-3.2.0-35-generic-pae 2
?? = ?? boot/vmlinuz-3.2.0-34-generic-pae 2
?? = ?? boot/vmlinuz-3.2.0-35-generic-pae 2
?? = ?? vmlinuz 2
?? = ?? vmlinuz.old 2

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

GiB - GB File Fragment(s)

?? = ?? boot/extlinux/chain.c32 1
?? = ?? boot/extlinux/extlinux.conf 1

============== sda1: Version of COM32(R) files used by Syslinux: ===============

boot/extlinux/chain.c32 : COM32R module (v4.xx)

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

File descriptor 7 (pipe:[5848]) leaked on lvscan invocation. Parent PID 8618: bash
File descriptor 8 (pipe:[5848]) leaked on lvscan invocation. Parent PID 8618: bash
No volume groups found
mdadm: No arrays found in config file or automatically

ADDITIONAL INFORMATION :
=================== log of boot-repair 2013-12-20__22h19 ===================
boot-repair version : 3.18-0ppa33~lucid
boot-sav version : 3.19-0ppa67~lucid
glade2script-gtk2 version : 0.0.1-0ppa4~lucid
boot-sav-nonfree version : 3.18-0ppa14~lucid
File descriptor 7 (pipe:[5848]) leaked on lvs invocation. Parent PID 3471: /bin/sh
File descriptor 8 (pipe:[5848]) leaked on lvs invocation. Parent PID 3471: /bin/sh
No volume groups found
boot-repair is executed in live-session (Boot-Repair-Disk 28.06.2012 , squeeze , Debian , i686)
CPU op-mode(s): 64-bit

=================== os-prober:


=================== blkid:
/dev/sda1: UUID="741f375b-2561-44ff-9875-9fcd13a43c9c" TYPE="ext4"
/dev/sda5: UUID="91477296-5006-4181-b532-73f0d1fc5b99" TYPE="swap"
/dev/sda6: UUID="e426d440-4167-4835-b472-208e94240849" TYPE="ext4"
/dev/loop0: TYPE="squashfs"

Linux not detected by os-prober on sda1. Please report this message to yannubuntu@gmail.com
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.


=================== sda1/etc/default/grub :

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
# GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"





=================== sda1/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Aug 2 23:03 grub.d
total 60
-rwxr-xr-x 1 root root 6743 Sep 12 2012 00_header
-rwxr-xr-x 1 root root 5522 Apr 17 2012 05_debian_theme
-rwxr-xr-x 1 root root 7780 Dec 10 2012 10_linux
-rwxr-xr-x 1 root root 6335 Apr 17 2012 20_linux_xen
-rwxr-xr-x 1 root root 1588 Nov 27 2011 20_memtest86+
-rwxr-xr-x 1 root root 7603 Apr 17 2012 30_os-prober
-rwxr-xr-x 1 root root 1388 Dec 10 2012 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Apr 17 2012 40_custom
-rwxr-xr-x 1 root root 95 Apr 17 2012 41_custom
-rw-r--r-- 1 root root 483 Apr 17 2012 README




=================== PARTITIONS & DISKS:
sda1 : sda, not-sepboot, grubenv-ok grub2, grub-pc, update-grub, 32, with-boot, is-os, not--efi--part, fstab-without-boot, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, no-grldr, no-b-bcd, apt-get, grub-install, with--usr, fstab-without-usr, not-sep-usr, /mnt/boot-sav/sda1.
sda6 : sda, maybesepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, no-grldr, no-b-bcd, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, /mnt/boot-sav/sda6.

sda : MSDos, not-GPT, BIOSboot-not-needed, has-no-EFIpart, not-usb, 2048 sectors * 512 bytes

=================== parted -l:

Model: ATA WDC WD1600AAJB-0 (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 53.1GB 53.1GB primary ext4 boot
2 53.1GB 160GB 107GB extended
6 53.1GB 158GB 105GB logical ext4
5 158GB 160GB 2146MB logical linux-swap(v1)




Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.


Error: /dev/sr0: unrecognised disk label


=================== mount:
aufs on / type aufs (rw)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sr0 on /live/image type iso9660 (ro,noatime)
tmpfs on /live/cow type tmpfs (rw,noatime,mode=755)
tmpfs on /live type tmpfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sda1 on /mnt/boot-sav/sda1 type ext4 (rw)
/dev/sda6 on /mnt/boot-sav/sda6 type ext4 (rw)


/sys/block/sda: alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro sda1 sda2 sda5 sda6 size slaves stat subsystem trace uevent
/sys/block/sr0: alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev: block bsg btrfs-control bus cdrom cdrw char console core cpu_dma_latency disk dri dvd dvdrw fb0 fd full fuse hidraw0 hpet initctl input kmsg log MAKEDEV md mem net network_latency network_throughput null port ppp psaux ptmx pts random rtc rtc0 scd0 sda sda1 sda2 sda5 sda6 sg0 sg1 shm snapshot snd sndstat sr0 stderr stdin stdout urandom v4l vga_arbiter video0 xconsole zero

=================== df -Th:

Filesystem Type Size Used Avail Use% Mounted on
aufs aufs 982M 8.2M 974M 1% /
tmpfs tmpfs 982M 0 982M 0% /lib/init/rw
udev tmpfs 977M 176K 977M 1% /dev
tmpfs tmpfs 982M 0 982M 0% /dev/shm
/dev/sr0 iso9660 346M 346M 0 100% /live/image
tmpfs tmpfs 982M 8.2M 974M 1% /live/cow
tmpfs tmpfs 982M 0 982M 0% /live
tmpfs tmpfs 982M 8.0K 982M 1% /tmp
/dev/sda1 ext4 49G 18G 29G 39% /mnt/boot-sav/sda1
/dev/sda6 ext4 97G 52G 41G 56% /mnt/boot-sav/sda6

=================== fdisk -l:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e99b4

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6450 51808256 83 Linux
/dev/sda2 6451 19458 104479745 5 Extended
/dev/sda5 19197 19458 2096128 82 Linux swap / Solaris
/dev/sda6 6451 19197 102379520 83 Linux

Partition table entries are not in disk order



=================== Default settings
recommendedrepair
This setting would reinstall the grub2 of sda1 into the MBR of sda.
Additional repair would be performed: unhide-bootmenu

=================== Settings chosen by the user
customrepair
This setting will reinstall the grub2 of sda1 into the MBR of sda.
Additional repair will be performed: unhide-bootmenu repair-filesystems


Force Unmount all blkid partitions (for fsck) except / /boot /cdrom /dev /etc /home /opt /pas /proc /rofs /sys /tmp /usr /var
fsck from util-linux-ng 2.17.2
fsck from util-linux-ng 2.17.2
Already mounted /dev/sda1 on /mnt/boot-sav/sda1
Reinstall the GRUB of sda1 into the MBR of sda
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-35-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-35-generic-pae
Found linux image: /boot/vmlinuz-3.2.0-34-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-34-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
File descriptor 7 (pipe:[5848]) leaked on lvs invocation. Parent PID 6180: /bin/sh
File descriptor 8 (pipe:[5848]) leaked on lvs invocation. Parent PID 6180: /bin/sh
No volume groups found
grub-install (GRUB) 1.99-21ubuntu3.10
grub-setup /dev/sda: exit code of grub-setup /dev/sda:0
grub-install --recheck /dev/sda: Installation finished. No error reported.
exit code of grub-install /dev/sda:0
Unhide GRUB boot menu in sda1/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.

paste.debian ko, using paste.ubuntu