PDA

View Full Version : [SOLVED] kernel panic-not syncing: VFS: unable to mount root fs on unknown block(0,0)



war59312
February 6th, 2013, 12:59 AM
Update:

Issue 100% Solved..

Wow that was crazy. Hope it helps someone..

Hi,

Not sure what happen.

Running Ubuntu 12.10 and when I came home after the weekend, Ubutnu is failing to boot. :(

I keep getting:


kernel panic-not syncing: VFS: unable to mount root fs on unknown block(0,0)Boot Info Script 0.61 shows below.

Thanks for the help,

Will


Boot Info Script 0.61 [1 April 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
in partition 72 for .
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sdb and looks at sector
312496993 of the same hard drive for core.img, but core.img can not be
found at this location.

sda1: __________________________________________________ ________________________

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

sda2: __________________________________________________ ________________________

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

sda5: __________________________________________________ ________________________

File system: ext2
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda5
and looks at sector 312497849 of the same hard drive
for core.img, but core.img can not be found at this
location.
Operating System:
Boot files: /grub/grub.cfg

sdb2: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Grub2 (v1.97-1.98)
Boot sector info: Grub2 (v1.97-1.98) is installed in the boot sector of
sdb2 and looks at sector 312497793 of the same hard
drive for core.img, but core.img can not be found at
this location. According to the info in the boot
sector, sdb2 has 1763162111 sectors, but according to
the info from fdisk, it has 4984387583 sectors.
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
Disk identifier: 0x0003cd00

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 63 312,078,689 312,078,627 8e Linux LVM
/dev/sda2 312,078,690 312,576,704 498,015 5 Extended
/dev/sda5 312,078,753 312,576,704 497,952 83 Linux


Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 7499.9 GB, 7499945082880 bytes
255 heads, 63 sectors/track, 911816 cylinders, total 14648330240 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00000000

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 1 4,294,967,295 4,294,967,295 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sdb2 264,192 4,984,651,775 4,984,387,584 Data partition (Windows/Linux)

"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 fNpxfS-uz8f-ZYiw-W6sQ-fC9E-ADnJ-WqoFO0 LVM2_member
/dev/sda5 3379011a-2f8c-4d27-91f5-205bcc68dc50 ext2
/dev/sdb2 8210E37910E37319 ntfs RAID 5 Volume

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

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (rw)
/dev/sda5 /media/ubuntu ext2 (rw)
/dev/sr0 /cdrom iso9660 (rw)


============================= sda5/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 [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

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 {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod lvm
insmod ext2
set root='lvm/RobsUbuntuServer-root'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvm/RobsUbuntuServer-root' ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f
else
search --no-floppy --fs-uuid --set=root ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f
fi
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_GB
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 ###
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' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f' {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 3379011a-2f8c-4d27-91f5-205bcc68dc50
else
search --no-floppy --fs-uuid --set=root 3379011a-2f8c-4d27-91f5-205bcc68dc50
fi
linux /vmlinuz-3.5.0-22-generic root=/dev/mapper/RobsUbuntuServer-root ro ipv6.disable=1 quiet splash elevator=cfq $vt_handoff
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f' {
menuentry 'Ubuntu, with Linux 3.5.0-22-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-22-generic-advanced-ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f' {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 3379011a-2f8c-4d27-91f5-205bcc68dc50
else
search --no-floppy --fs-uuid --set=root 3379011a-2f8c-4d27-91f5-205bcc68dc50
fi
echo 'Loading Linux 3.5.0-22-generic ...'
linux /vmlinuz-3.5.0-22-generic root=/dev/mapper/RobsUbuntuServer-root ro ipv6.disable=1 quiet splash elevator=cfq $vt_handoff
}
menuentry 'Ubuntu, with Linux 3.5.0-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-22-generic-recovery-ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f' {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 3379011a-2f8c-4d27-91f5-205bcc68dc50
else
search --no-floppy --fs-uuid --set=root 3379011a-2f8c-4d27-91f5-205bcc68dc50
fi
echo 'Loading Linux 3.5.0-22-generic ...'
linux /vmlinuz-3.5.0-22-generic root=/dev/mapper/RobsUbuntuServer-root ro recovery nomodeset
}
}

### 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,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 3379011a-2f8c-4d27-91f5-205bcc68dc50
else
search --no-floppy --fs-uuid --set=root 3379011a-2f8c-4d27-91f5-205bcc68dc50
fi
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 3379011a-2f8c-4d27-91f5-205bcc68dc50
else
search --no-floppy --fs-uuid --set=root 3379011a-2f8c-4d27-91f5-205bcc68dc50
fi
linux16 /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/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 ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

= grub/grub.cfg 1
= vmlinuz-3.5.0-22-generic 22

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

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

tgalati4
February 6th, 2013, 05:55 AM
Is this a dual-boot system? If so, a Windows update may have "fixed" your system.

Perhaps you just need to refresh the Master Boot Record (mbr). There are lots of tutorials on how to restore the MBR.

dino99
February 6th, 2013, 07:57 AM
I'm also concerned by that issue time to time; it mainly fail while it create the boot ram disk on some configs.
This is not a new issue, as it has been reported many times since a while; but is very hard to fix as there is no log for helping in such case.
It is either a race condition or an initramfs issue with some chipsets.

All you can do is to test the latest kernel, and/or test with a new install on fresh formatted partitions (/, swap)

war59312
February 7th, 2013, 12:34 AM
No windows at all on this server and never has been.

Well been fine for 3 years. ugh!

Well I cant even access the drive on a live cd it seems:


ubuntu@ubuntu:/mnt$ sudo mkdir sys
ubuntu@ubuntu:/mnt$ sudo mount --bind /sys /mnt/sys
ubuntu@ubuntu:/mnt$ sudo chroot /mnt
chroot: cannot run command `/bin/bash': No such file or directoryAnd:


ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0003cd00

Device Boot Start End Blocks Id System
/dev/sda1 * 1 19426 156039313+ 8e Linux LVM
/dev/sda2 19427 19457 249007+ 5 Extended
/dev/sda5 19427 19457 248976 83 Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: The size of this disk is 7.5 TB (7499945082880 bytes).
DOS partition table format can not be used on drives for volumes
larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID
partition table format (GPT).


Disk /dev/sdb: 7499.9 GB, 7499945082880 bytes
255 heads, 63 sectors/track, 911816 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 1 267350 2147483647+ ee GPT
ubuntu@ubuntu:~$ sudo mount /dev/sdb1 /mnt3
mount: special device /dev/sdb1 does not exist

war59312
February 9th, 2013, 04:03 PM
Hi,

Well finally figured out how to access the drive:


sudo mount --bind /dev /media/ubuntu/ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f/dev

sudo mount --bind /dev/pts /media/ubuntu/ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f/dev/pts

sudo mount --bind /proc /media/ubuntu/ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f/proc

sudo mount --bind /sys /media/ubuntu/ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f/sys

sudo chroot /media/ubuntu/ed3be733-f9ab-4dd6-a9a8-0d3489b7a06fSo then tried to reinstall kernel:


root@ubuntu:/# apt-get install --reinstall linux-image-3.5.0-22-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
crda guile-1.8-libs iw libevtlog0 libmongo-client0 libnet1 libnotify1
libsyslog-ng-3.3.4 libx264-120 libx264-98 wireless-crda wireless-regdb
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
Need to get 0 B/11.8 MB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 403918 files and directories currently installed.)
Preparing to replace linux-image-3.5.0-22-generic 3.5.0-22.34 (using .../linux-image-3.5.0-22-generic_3.5.0-22.34_amd64.deb) ...
Done.
Unpacking replacement linux-image-3.5.0-22-generic ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic
Setting up linux-image-3.5.0-22-generic (3.5.0-22.34) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Not updating image symbolic links since we are being updated/reinstalled
(3.5.0-22.34 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic
update-initramfs: Generating /boot/initrd.img-3.5.0-22-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic
/usr/sbin/grub-mkconfig: 237: /usr/sbin/grub-mkconfig: cannot create /boot/grub/grub.cfg.new: Directory nonexistent
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.5.0-22-generic.postinst line 1010.
dpkg: error processing linux-image-3.5.0-22-generic (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-image-3.5.0-22-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)So then tried:


root@ubuntu:/# apt-get install --reinstall linux-image-3.5.0-21-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
crda guile-1.8-libs iw libevtlog0 libmongo-client0 libnet1 libnotify1
libsyslog-ng-3.3.4 libx264-120 libx264-98 wireless-crda wireless-regdb
Use 'apt-get autoremove' to remove them.
Suggested packages:
fdutils linux-doc-3.5.0 linux-source-3.5.0 linux-tools
The following NEW packages will be installed:
linux-image-3.5.0-21-generic
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 11.8 MB of archives.
After this operation, 31.5 MB of additional disk space will be used.
0% [Working]Ignoring unknown parameter "so_rcvbuf"
Err http://security.ubuntu.com/ubuntu/ quantal-security/main linux-image-3.5.0-21-generic amd64 3.5.0-21.32
Could not resolve 'security.ubuntu.com'
0% [Working]Ignoring unknown parameter "so_rcvbuf"
Err http://archive.linux.duke.edu/ubuntu/ quantal-updates/main linux-image-3.5.0-21-generic amd64 3.5.0-21.32
Could not resolve 'archive.linux.duke.edu'
Failed to fetch http://archive.linux.duke.edu/ubuntu/pool/main/l/linux/linux-image-3.5.0-21-generic_3.5.0-21.32_amd64.deb Could not resolve 'archive.linux.duke.edu'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?The files exist at http://archive.linux.duke.edu/ubuntu/pool/main/l/linux/ so what is wrong?

Then tried:


root@ubuntu:/# sudo dpkg --configure -a
Ignoring unknown parameter "so_rcvbuf"
sudo: unable to resolve host ubuntu
Setting up linux-image-3.5.0-22-generic (3.5.0-22.34) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Not updating initrd symbolic links since we are being updated/reinstalled
(3.5.0-22.34 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(3.5.0-22.34 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic
update-initramfs: Generating /boot/initrd.img-3.5.0-22-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.5.0-22-generic /boot/vmlinuz-3.5.0-22-generic
/usr/sbin/grub-mkconfig: 237: /usr/sbin/grub-mkconfig: cannot create /boot/grub/grub.cfg.new: Directory nonexistent
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.5.0-22-generic.postinst line 1010.
dpkg: error processing linux-image-3.5.0-22-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-3.5.0-22-genericBoot is there..


root@ubuntu:/# df
df: `/run/shm': No such file or directory
df: `/run/user': No such file or directory
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/RobsUbuntuServer-root 147311096 50358672 89469444 37% /
udev 4078424 4 4078420 1% /dev
none 147311096 50358672 89469444 37% /run/lock
/dev/sda5 147311096 50358672 89469444 37% /bootThis cant be good:


root@ubuntu:/# apt-get update
Ignoring unknown parameter "so_rcvbuf"
Ignoring unknown parameter "so_rcvbuf"
Ignoring unknown parameter "so_rcvbuf"
Ignoring unknown parameter "so_rcvbuf"
Ignoring unknown parameter "so_rcvbuf"
0% [Working]Ignoring unknown parameter "so_rcvbuf"
Ignoring unknown parameter "so_rcvbuf"
Err http://ppa.launchpad.net quantal InRelease

Err http://ppa.launchpad.net quantal InRelease

Err http://ppa.launchpad.net quantal InRelease

Err http://ppa.launchpad.net quantal InRelease

Err http://ppa.launchpad.net quantal InRelease

Err http://ppa.launchpad.net quantal InRelease

Err http://ppa.launchpad.net quantal Release.gpg
Could not resolve 'ppa.launchpad.net'
Err http://ppa.launchpad.net quantal Release.gpg
Could not resolve 'ppa.launchpad.net'
Err http://ppa.launchpad.net quantal Release.gpg
Could not resolve 'ppa.launchpad.net'
Err http://ppa.launchpad.net quantal Release.gpg
Could not resolve 'ppa.launchpad.net'
Err http://ppa.launchpad.net quantal Release.gpg
Could not resolve 'ppa.launchpad.net'
Err http://ppa.launchpad.net quantal Release.gpg
Could not resolve 'ppa.launchpad.net'
Err http://security.ubuntu.com quantal-security InRelease

Err http://security.ubuntu.com quantal-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://linux.dropbox.com precise InRelease

Err http://linux.dropbox.com precise Release.gpg
Could not resolve 'linux.dropbox.com'
Err http://archive.linux.duke.edu quantal InRelease

Err http://dl.google.com stable InRelease

Err http://dl.google.com stable InRelease

Err http://archive.linux.duke.edu quantal-updates InRelease

Err http://archive.linux.duke.edu quantal-backports InRelease

Err http://dl.google.com stable Release.gpg
Could not resolve 'dl.google.com'
Err http://archive.linux.duke.edu quantal Release.gpg
Could not resolve 'archive.linux.duke.edu'
Err http://archive.linux.duke.edu quantal-updates Release.gpg
Could not resolve 'archive.linux.duke.edu'
Err http://dl.google.com stable Release.gpg
Could not resolve 'dl.google.com'
Err http://archive.linux.duke.edu quantal-backports Release.gpg
Could not resolve 'archive.linux.duke.edu'
Err http://www.ksplice.com quantal InRelease

Err http://www.ksplice.com quantal Release.gpg
Could not resolve 'www.ksplice.com'
Err http://packages.medibuntu.org quantal InRelease

Err http://packages.medibuntu.org quantal Release.gpg
Could not resolve 'packages.medibuntu.org'
Reading package lists... Done
W: Failed to fetch http://ppa.launchpad.net/nginx/development/ubuntu/dists/quantal/InRelease

W: Failed to fetch http://ppa.launchpad.net/jcfp/ppa/ubuntu/dists/quantal/InRelease

W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/quantal/InRelease

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/InRelease

W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/quantal-updates/InRelease

W: Failed to fetch http://ppa.launchpad.net/webupd8team/haguichi/ubuntu/dists/quantal/InRelease

W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/quantal-backports/InRelease

W: Failed to fetch http://ppa.launchpad.net/apt-fast/stable/ubuntu/dists/quantal/InRelease

W: Failed to fetch http://linux.dropbox.com/ubuntu/dists/precise/InRelease

W: Failed to fetch http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu/dists/quantal/InRelease

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease

W: Failed to fetch http://www.ksplice.com/apt/dists/quantal/InRelease

W: Failed to fetch http://packages.medibuntu.org/dists/quantal/InRelease

W: Failed to fetch http://dl.google.com/linux/mod-pagespeed/deb/dists/stable/InRelease

W: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/quantal/InRelease

W: Failed to fetch http://ppa.launchpad.net/nginx/development/ubuntu/dists/quantal/Release.gpg Could not resolve 'ppa.launchpad.net'

W: Failed to fetch http://ppa.launchpad.net/jcfp/ppa/ubuntu/dists/quantal/Release.gpg Could not resolve 'ppa.launchpad.net'

W: Failed to fetch http://ppa.launchpad.net/webupd8team/haguichi/ubuntu/dists/quantal/Release.gpg Could not resolve 'ppa.launchpad.net'

W: Failed to fetch http://ppa.launchpad.net/apt-fast/stable/ubuntu/dists/quantal/Release.gpg Could not resolve 'ppa.launchpad.net'

W: Failed to fetch http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu/dists/quantal/Release.gpg Could not resolve 'ppa.launchpad.net'

W: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/quantal/Release.gpg Could not resolve 'ppa.launchpad.net'

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/quantal-security/Release.gpg Could not resolve 'security.ubuntu.com'

W: Failed to fetch http://linux.dropbox.com/ubuntu/dists/precise/Release.gpg Could not resolve 'linux.dropbox.com'

W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/quantal/Release.gpg Could not resolve 'archive.linux.duke.edu'

W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg Could not resolve 'dl.google.com'

W: Failed to fetch http://dl.google.com/linux/mod-pagespeed/deb/dists/stable/Release.gpg Could not resolve 'dl.google.com'

W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/quantal-updates/Release.gpg Could not resolve 'archive.linux.duke.edu'

W: Failed to fetch http://archive.linux.duke.edu/ubuntu/dists/quantal-backports/Release.gpg Could not resolve 'archive.linux.duke.edu'

W: Failed to fetch http://www.ksplice.com/apt/dists/quantal/Release.gpg Could not resolve 'www.ksplice.com'

W: Failed to fetch http://packages.medibuntu.org/dists/quantal/Release.gpg Could not resolve 'packages.medibuntu.org'

W: Some index files failed to download. They have been ignored, or old ones used instead.Maybe because DNS is failing?

Was running a local DNS server but now I am doing this through a live cd..


root@ubuntu:/etc# cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directoryNow that is very strange. Of course the file exists and ls show that it exists.

OK trying this: http://askubuntu.com/questions/119080/how-to-update-kernel-to-the-latest-mainline-version-without-any-distro-upgrade

Via:


mkdir kernel v3.5.7.5-quantal && cd kernel v3.5.7.5-quantal

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.7.5-quantal/linux-headers-3.5.7-03050705-generic_3.5.7-03050705.201302081935_amd64.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.7.5-quantal/linux-headers-3.5.7-03050705_3.5.7-03050705.201302081935_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.7.5-quantal/linux-image-3.5.7-03050705-generic_3.5.7-03050705.201302081935_amd64.deb

sudo dpkg -i linux-*.deb

sudo update-grubOf course the wget failed because of the dns issue.

So instead I download on another drive and then copied them over via:


sudo cp "/media/ubuntu/RAID 5 Volume/linux-headers-3.5.7-03050705_3.5.7-03050705.201302081935_all.deb" "/media/ubuntu/ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f/kernel"

sudo cp "/media/ubuntu/RAID 5 Volume/linux-headers-3.5.7-03050705-generic_3.5.7-03050705.201302081935_amd64.deb" "/media/ubuntu/ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f/kernel"

sudo cp "/media/ubuntu/RAID 5 Volume/linux-image-3.5.7-03050705-generic_3.5.7-03050705.201302081935_amd64.deb" "/media/ubuntu/ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f/kernel"Sadly that failed too. Ugh!


root@ubuntu:/kernel# sudo dpkg -i linux-*.deb
Ignoring unknown parameter "so_rcvbuf"
sudo: unable to resolve host ubuntu
Selecting previously unselected package linux-headers-3.5.7-03050705.
(Reading database ... 403918 files and directories currently installed.)
Unpacking linux-headers-3.5.7-03050705 (from linux-headers-3.5.7-03050705_3.5.7-03050705.201302081935_all.deb) ...
Selecting previously unselected package linux-headers-3.5.7-03050705-generic.
Unpacking linux-headers-3.5.7-03050705-generic (from linux-headers-3.5.7-03050705-generic_3.5.7-03050705.201302081935_amd64.deb) ...
Selecting previously unselected package linux-image-3.5.7-03050705-generic.
Unpacking linux-image-3.5.7-03050705-generic (from linux-image-3.5.7-03050705-generic_3.5.7-03050705.201302081935_amd64.deb) ...
Done.
Setting up linux-headers-3.5.7-03050705 (3.5.7-03050705.201302081935) ...
Setting up linux-headers-3.5.7-03050705-generic (3.5.7-03050705.201302081935) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.5.7-03050705-generic /boot/vmlinuz-3.5.7-03050705-generic
Setting up linux-image-3.5.7-03050705-generic (3.5.7-03050705.201302081935) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.5.7-03050705-generic /boot/vmlinuz-3.5.7-03050705-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.7-03050705-generic /boot/vmlinuz-3.5.7-03050705-generic
update-initramfs: Generating /boot/initrd.img-3.5.7-03050705-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.5.7-03050705-generic /boot/vmlinuz-3.5.7-03050705-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.5.7-03050705-generic /boot/vmlinuz-3.5.7-03050705-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.5.7-03050705-generic /boot/vmlinuz-3.5.7-03050705-generic
/usr/sbin/grub-mkconfig: 237: /usr/sbin/grub-mkconfig: cannot create /boot/grub/grub.cfg.new: Directory nonexistent
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.5.7-03050705-generic.postinst line 1010.
dpkg: error processing linux-image-3.5.7-03050705-generic (--install):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-3.5.7-03050705-genericOk trying this now:


root@ubuntu:/# update-initramfs -u -k 3.5.0-22-generic
update-initramfs: Generating /boot/initrd.img-3.5.0-22-generic
root@ubuntu:/# update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.7-03050705-generic
Found initrd image: /boot/initrd.img-3.5.7-03050705-generic
Found linux image: /boot/vmlinuz-3.5.0-22-generic
Found initrd image: /boot/initrd.img-3.5.0-22-generic
done No errors, maybe it worked.. Rebooting..

Ugh no difference, same original error. WTF!!

OK i think its because I am doing this wrong..

Seems it should in fact be:


sudo mount --bind /dev /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50/dev

sudo mount --bind /dev/pts /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50/dev/pts

sudo mount --bind /proc /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50/proc

sudo mount --bind /sys /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50/sys

sudo chroot /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50 Sadly that results in: chroot: failed to run command `/bin/bash': No such file or directory

Ugh, still fails:


ubuntu@ubuntu:~$ sudo mkdir /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50/bin
ubuntu@ubuntu:~$ sudo mount --bind /bin /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50/bin
ubuntu@ubuntu:~$ sudo chroot /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50
chroot: failed to run command `/bin/bash': No such file or directorygoing to try http://serverfault.com/questions/162362/chroot-fails-cannot-run-command-bin-bash-no-such-file-or-directory after reboot

Well i don't seem to have all the required files:


ubuntu@ubuntu:~$ ldd /bin/bash
linux-vdso.so.1 => (0x00007fffcd3ff000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fc293d4a000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc293b46000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc293786000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc293f85000)Dang it:


ubuntu@ubuntu:~$ sudo cp -r /lib /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50
ubuntu@ubuntu:~$ sudo ln -s /lib64 /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50/lib64
ubuntu@ubuntu:~$ sudo ln -s /bin /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50/bin
ubuntu@ubuntu:~$ sudo chroot /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50 chroot: failed to run command `/bin/bash': Too many levels of symbolic linksok this seems to be working:


sudo cp -r /bin /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50
sudo cp -r /lib /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50
sudo cp -r /lib64 /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50
sudo chroot /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50
bash-4.2#Now that I finally have access to the real boot drive I'm going to copy all files from /media/ubuntu/ed3be733-f9ab-4dd6-a9a8-0d3489b7a06f/boot to /media/ubuntu/3379011a-2f8c-4d27-91f5-205bcc68dc50 and pray Grub finally works.

OMG finally!!!!!! It's booting. Yeah!!!!!!!!!! Doing the hard disk check atm to be sure.. Please work!

OK So finally working again, somewhat. Now my usb mouse and keyboard is not working. Ugh!

Oddly enough lsusb sees them both just fine. Odd!


rob@RobsUbuntuServer:~$ sudo lsusb -v
Bus 004 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x045e Microsoft Corp.
idProduct 0x0040 Wheel Mouse Optical
bcdDevice 1.21
iManufacturer 1 Microsoft
iProduct 2 Microsoft Wheel Mouse OpticalŪ
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 72
Report Descriptor: (length is 72)
Item(Global): Usage Page, data= [ 0x01 ] 1
Generic Desktop Controls
Item(Local ): Usage, data= [ 0x02 ] 2
Mouse
Item(Main ): Collection, data= [ 0x01 ] 1
Application
Item(Local ): Usage, data= [ 0x01 ] 1
Pointer
Item(Main ): Collection, data= [ 0x00 ] 0
Physical
Item(Global): Usage Page, data= [ 0x09 ] 9
Buttons
Item(Local ): Usage Minimum, data= [ 0x01 ] 1
Button 1 (Primary)
Item(Local ): Usage Maximum, data= [ 0x03 ] 3
Button 3 (Tertiary)
Item(Global): Logical Minimum, data= [ 0x00 ] 0
Item(Global): Logical Maximum, data= [ 0x01 ] 1
Item(Global): Report Size, data= [ 0x01 ] 1
Item(Global): Report Count, data= [ 0x03 ] 3
Item(Main ): Input, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Report Size, data= [ 0x05 ] 5
Item(Global): Report Count, data= [ 0x01 ] 1
Item(Main ): Input, data= [ 0x01 ] 1
Constant Array Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Usage Page, data= [ 0x01 ] 1
Generic Desktop Controls
Item(Local ): Usage, data= [ 0x30 ] 48
Direction-X
Item(Local ): Usage, data= [ 0x31 ] 49
Direction-Y
Item(Local ): Usage, data= [ 0x38 ] 56
Wheel
Item(Global): Logical Minimum, data= [ 0x81 ] 129
Item(Global): Logical Maximum, data= [ 0x7f ] 127
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Global): Report Count, data= [ 0x03 ] 3
Item(Main ): Input, data= [ 0x06 ] 6
Data Variable Relative No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Main ): End Collection, data=none
Item(Global): Usage Page, data= [ 0xff ] 255
Vendor Specific
Item(Local ): Usage, data= [ 0x02 ] 2
(null)
Item(Global): Logical Minimum, data= [ 0x00 ] 0
Item(Global): Logical Maximum, data= [ 0x01 ] 1
Item(Global): Report Size, data= [ 0x01 ] 1
Item(Global): Report Count, data= [ 0x01 ] 1
Item(Main ): Feature, data= [ 0x22 ] 34
Data Variable Absolute No_Wrap Linear
No_Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Report Size, data= [ 0x07 ] 7
Item(Global): Report Count, data= [ 0x01 ] 1
Item(Main ): Feature, data= [ 0x01 ] 1
Constant Array Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Main ): End Collection, data=none
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)

Bus 004 Device 003: ID 0a81:0101 Chesen Electronics Corp. Keyboard
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0a81 Chesen Electronics Corp.
idProduct 0x0101 Keyboard
bcdDevice 1.10
iManufacturer 1 CHESEN
iProduct 2 USB Keyboard
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 59
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 1 Keyboard
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 33 US
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 65
Report Descriptor: (length is 65)
Item(Global): Usage Page, data= [ 0x01 ] 1
Generic Desktop Controls
Item(Local ): Usage, data= [ 0x06 ] 6
Keyboard
Item(Main ): Collection, data= [ 0x01 ] 1
Application
Item(Global): Usage Page, data= [ 0x07 ] 7
Keyboard
Item(Local ): Usage Minimum, data= [ 0xe0 ] 224
Control Left
Item(Local ): Usage Maximum, data= [ 0xe7 ] 231
GUI Right
Item(Global): Logical Minimum, data= [ 0x00 ] 0
Item(Global): Logical Maximum, data= [ 0x01 ] 1
Item(Global): Report Size, data= [ 0x01 ] 1
Item(Global): Report Count, data= [ 0x08 ] 8
Item(Main ): Input, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Report Count, data= [ 0x01 ] 1
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Main ): Input, data= [ 0x01 ] 1
Constant Array Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Report Count, data= [ 0x05 ] 5
Item(Global): Report Size, data= [ 0x01 ] 1
Item(Global): Usage Page, data= [ 0x08 ] 8
LEDs
Item(Local ): Usage Minimum, data= [ 0x01 ] 1
NumLock
Item(Local ): Usage Maximum, data= [ 0x05 ] 5
Kana
Item(Main ): Output, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Report Count, data= [ 0x03 ] 3
Item(Global): Report Size, data= [ 0x01 ] 1
Item(Main ): Output, data= [ 0x01 ] 1
Constant Array Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Report Count, data= [ 0x06 ] 6
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Global): Logical Minimum, data= [ 0x00 ] 0
Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
Item(Global): Usage Page, data= [ 0x07 ] 7
Keyboard
Item(Local ): Usage Minimum, data= [ 0x00 ] 0
No Event
Item(Local ): Usage Maximum, data= [ 0xff 0x00 ] 255
(null)
Item(Main ): Input, data= [ 0x00 ] 0
Data Array Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Main ): End Collection, data=none
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 33 US
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 102
Report Descriptor: (length is 102)
Item(Global): Usage Page, data= [ 0x01 ] 1
Generic Desktop Controls
Item(Local ): Usage, data= [ 0x80 ] 128
System Control
Item(Main ): Collection, data= [ 0x01 ] 1
Application
Item(Global): Report ID, data= [ 0x02 ] 2
Item(Local ): Usage, data= [ 0x81 ] 129
System Power Down
Item(Local ): Usage, data= [ 0x82 ] 130
System Sleep
Item(Local ): Usage, data= [ 0x83 ] 131
System Wake Up
Item(Global): Logical Maximum, data= [ 0x01 ] 1
Item(Global): Logical Minimum, data= [ 0x00 ] 0
Item(Global): Report Size, data= [ 0x01 ] 1
Item(Global): Report Count, data= [ 0x03 ] 3
Item(Main ): Input, data= [ 0x06 ] 6
Data Variable Relative No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Report Size, data= [ 0x05 ] 5
Item(Global): Report Count, data= [ 0x01 ] 1
Item(Main ): Input, data= [ 0x01 ] 1
Constant Array Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Main ): End Collection, data=none
Item(Global): Usage Page, data= [ 0x0c ] 12
Consumer
Item(Local ): Usage, data= [ 0x01 ] 1
Consumer Control
Item(Main ): Collection, data= [ 0x01 ] 1
Application
Item(Global): Report ID, data= [ 0x03 ] 3
Item(Global): Logical Minimum, data= [ 0x00 ] 0
Item(Global): Logical Maximum, data= [ 0x01 ] 1
Item(Local ): Usage Minimum, data= [ 0xb5 ] 181
Scan Next Track
Item(Local ): Usage Maximum, data= [ 0xb7 ] 183
Stop
Item(Local ): Usage, data= [ 0xcd ] 205
Play/Pause
Item(Local ): Usage, data= [ 0xe2 ] 226
Mute
Item(Local ): Usage, data= [ 0xe5 ] 229
Bass Boost
Item(Local ): Usage, data= [ 0xe7 ] 231
Loudness
Item(Local ): Usage, data= [ 0x83 0x01 ] 387
AL Consumer Control Configuration
Item(Local ): Usage, data= [ 0xe9 ] 233
Volume Increment
Item(Local ): Usage, data= [ 0xea ] 234
Volume Decrement
Item(Local ): Usage, data= [ 0x52 0x01 ] 338
Bass Increment
Item(Local ): Usage, data= [ 0x53 0x01 ] 339
Bass Decrement
Item(Local ): Usage, data= [ 0x54 0x01 ] 340
Treble Increment
Item(Local ): Usage, data= [ 0x55 0x01 ] 341
Treble Decrement
Item(Local ): Usage, data= [ 0x8a 0x01 ] 394
AL Email Reader
Item(Local ): Usage, data= [ 0x92 0x01 ] 402
AL Calculator
Item(Local ): Usage, data= [ 0x94 0x01 ] 404
AL Local Machine Browser
Item(Local ): Usage, data= [ 0x21 0x02 ] 545
AC Search
Item(Local ): Usage Minimum, data= [ 0x23 0x02 ] 547
AC Home
Item(Local ): Usage Maximum, data= [ 0x27 0x02 ] 551
AC Refresh
Item(Local ): Usage, data= [ 0x2a 0x02 ] 554
(null)
Item(Global): Report Count, data= [ 0x18 ] 24
Item(Global): Report Size, data= [ 0x01 ] 1
Item(Main ): Input, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Main ): End Collection, data=none
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)

Even managed to compile correct kernal again and still usb keyboard and mouse is NOT working.


rob@RobsUbuntuServer:~$ uname -a
Linux RobsUbuntuServer 3.5.0-22-generic #34-Ubuntu SMP Tue Jan 8 21:47:00 UTC 2013 x86_64 x86_64 x86_64 GNU/LinuxInterestingly, mouse and keyboard via Team Viewer works just fine as does my PS2 mouse.

cya,

Will

tgalati4
February 9th, 2013, 06:50 PM
Do you have smartmontools installed on this server? Do you have SMART codes?
sudo smartctl -a /dev/sda1

For a server that has been running OK for 3 years and then mysteriously dies, I would suspect a hardware failure. Do you have an UPS on this machine? Do you have any UPS logs? /var/log/apcupsd.events

The fact that the system can't find bash or that you had to reinstall the kernel is troubling. Do you have backup or rescue kernels listed in your GRUB entries? Did you try booting from them? Presumably, they would be OK, since they are rarely read from. But if the hard drive is failing, it won't matter.

war59312
February 9th, 2013, 07:13 PM
Hey,

I think what happened, was that I ****** it up. I deleted all but the last kernel on accident it seems. :(

And yes I have a backup from last May. This is not a priority server. It's mainly a backup server for personal use. As such, it is hooked up to a UPS but no logs. Never really bothered since its just a backup server.

I'd still like to save it if possible.

The issue with grub is that I think I installed it wrong 3 years ago. On the wrong drive. So /boot is separate from the main OS. And that drive is only used for booting, so no bash or no bin directory at all in fact.

And my motherboard shows SMART status when it boots up and all good. I'm using a live cd atm so no that tool is NOT installed atm.

Thanks,

Will

tgalati4
February 9th, 2013, 10:54 PM
While running in LiveCD mode, install smartmontools:


sudo apt-get install smartmontools
sudo smartctl -a /dev/sda
sudo smartctl -a /dev/sdb

Look for errors and how many power-on hours. I have one server with 118,000 hours on the hard disk. It's certainly due for meltdown.

Even though /boot is on a different partition or drive, the operating system knows where everything is by mounting what is in /etc/fstab. If a mount fails, then you will lose functionality.

Did you have a power outage over the weekend? Perhaps a blinking clock or VCR?

I have never tried to reinstall a kernel from a mounted disk using chroot. Breakage comes to mind.

I first want to verify that the hardware is working correctly before mangling the software.

Have you run memtest for a complete cycle? Has the machine been cleaned out and components reseated?

war59312
February 10th, 2013, 12:53 AM
Hey,

Well I managed to get boot back up finally. :)

Now my USB mouse and keyboard is not working. Any thoughts?

Should not that my PS2 mouse works fine though. As does connecting via TeamViewer. That is while using teamviewer my mouse and keyboard is working.

Very strange!

And here is the smart results:


rob@RobsUbuntuServer:~$ sudo smartctl -a /dev/sda
[sudo] password for rob:
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.5.0-22-generic] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.10
Device Model: ST3160815A
Serial Number: 5RA0ER8L
Firmware Version: 3.AAC
User Capacity: 160,041,885,696 bytes [160 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Sat Feb 9 18:48:29 2013 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 430) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 54) minutes.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 117 095 006 Pre-fail Always - 139894124
3 Spin_Up_Time 0x0003 097 097 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 411
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 084 060 030 Pre-fail Always - 328656202
9 Power_On_Hours 0x0032 062 062 000 Old_age Always - 33360
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 413
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 073 064 045 Old_age Always - 27 (Min/Max 24/28)
194 Temperature_Celsius 0x0022 027 040 000 Old_age Always - 27 (0 16 0 0 0)
195 Hardware_ECC_Recovered 0x001a 070 061 000 Old_age Always - 101614085
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 Data_Address_Mark_Errs 0x0032 100 253 000 Old_age Always - 0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1

SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

And nope no power failure either. My desktop is connected to a UPS and not a single outage in last 24 weeks.

This did NOT work: http://www.ubuntugeek.com/how-to-fix-usb-stops-working-problem-in-ubuntu.html

Neither did this: http://www.noobslab.com/2012/10/install-latest-nvidia-drivers-in-ubuntu.html

Well my raid 5 disk is gone. Ugh!

Thanks again,

Will

tgalati4
February 10th, 2013, 04:20 AM
You might have a power supply problem. When booting, if the disks don't come up to speed (due to undervoltage) they won't register. It's also possible that your motherboard is failing. I had a client's desktop that lost the sound chip. I put in a $10 sound card. Two months later the USB ports (including USB mouse and keyboard) stopped working. Put in a $10 USB card. Two months later, trouble booting. Put in a $50 power supply. Two months later, failed to POST. Replaced the motherboard.

The PS2 port is powered differently than the USB subsystem, so yes, it's possible to lose USB and still have PS2 working.

Have you cleaned the machine and reseated everything? Check your power supply voltages with a meter or in BIOS Health Monitoring.

war59312
February 10th, 2013, 12:58 PM
Hey,

OK so yes I reseated everything and cleaned out the very little dust there was. Everything looked pretty good to being with but to be sure I did a complete tear down.

Hooked up to a http://www.amazon.com/gp/product/B00429N19W/ref=oh_details_o08_s00_i00 UPS and all voltages look good. Hell I even switched out he power supply with a new one and same results. Just to be sure.

Also, USB works fine using a live CD. So its not DEAD. Also using the live CD it sees my RAID array just fine. To be sure I tested this 10 times with a live cd (as in shutting down and booting backup and checking). Worked perfect every time.

For the last 8 hours while I got some shut eye, I let SpinRite do its thing, no issues found.

Something bad did happen that caused everything to screw up but its looking more and more to be software related. I really think the darn Kernel failed to install properly during a security update.

Again, I have a backup image that I know works but I'd still like to figure it out if possible.

And no the RAID array does NOT show up on the server via sudo blkid but does show up every single time using a live CD. UGh!

Major Update... Finally fixed. :)

OK So now my RAID 5 is back and my USB keyboard and Mouse is working again too. :D

To fix, I did a few things.

First I ran these commands:


sudo mv /initrd.img initrd.img.bak

sudo apt-get -f

sudo dpkg --configure -a

sudo apt-get update

Still not fixed, so I installed boot-repair:


sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

Ran that, did everything it asked me to do and clicked the big repair button.

Before Log:

http://paste.ubuntu.com/1633102/

After Log:

http://paste.ubuntu.com/1633144/

I also still had to fix usb so I ran:


gksudo gksudo gedit /etc/modules

Why two gksudo you ask. Because of stupid bug. If only 1 gksudo then it will open "Untitled Document 1". See: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/796076

At the bottom of that file I added:


usb_storage
usbhid

Still not done. I had to fix "x" via:


sudo dpkg-reconfigure -phigh xserver-xorg

So after doing and rebooting my RAID 5 drive came back and now my USB mouse and keyboard is working again too.

Crazy! Well hope this craziness helps someone.

Thanks again,

Will

melon73
March 22nd, 2013, 07:58 AM
I had a Kernel Panic unable to mount VFS problem too. It took me a week to figure it out with a lot of Google not leading anywhere.

Symptoms: After a kernel update to 3.2.0-39 in Kubuntu I hit Kernel Panic after reboot. I tried

- to boot using an older kernel
- recovery mode
- Linux Boot Repair
- changing grub config to use /dev/sdx instead of UUID
- installing other kernels using chroot by command line

-- ALL TO NO AVAIL.

My system is a dual boot - I had an older Ubuntu 10.04 on top which I kept just in case the new Kubuntu with quite a few horrific KDE related bugs doesn't come up. The later always booted just fine. When I installed another distro Linux Mint 14 as 3rd OS I managed to get into the older Kubuntu 12.04 for 2 logins then kernel panic again. Also the newly installed Linux Mint 14 suddenly had the same kernel panic. Since I had the old 10.04 on HDD1 and the other 2 on HDD2 I suspected the HDD at first but then I figured that when in 10.04 access to that drive was flawless, SMART showed no errors and FS integrity was OK too.

So I was more than sure that it was a HW error related to the initial RAM disk FS not coming up which would be the RAM then right?

Just as so I removed the second 8GB Corsair Vengeance module from the 16GB config leaving a single RAM module with 8GB in and - voila - everything worked fine. I tested this and it is repeatable.

Now this is to show that a defect RAM module can cause this error just as much as a corrupt kernel or GRUB. Now the difference between the initramfs of 10.04 (=old) and 12.04 (post kernel 3.2.0-39) and 12.10 seems to be the reason that one boots and the other one doesn't. It looks to me that 10.04 was just fine not accessing the upper 8GB on the second module while 12.04 did.

So if you are unlucky and have a defect RAM module you will see a kernel panic after the second reboot on newer kernels - not being able to boot anything but will get a hang / freeze on olde kernels if you ever access the upper defect RAM of the second module.

Interestingly, RAM testers show the defect but BIOS RAM tests don't give you any indication that the module isn't OK.

I just thought I share another reason for this omninous problem so one can test if it's not a problem with crappy RAM rather than anythign else.