PDA

View Full Version : [ubuntu] kernel panic + cannot mount /dev /sys and etc



hanbin973
December 16th, 2010, 08:25 AM
the error message is as follows.

mount mounting /dev( also /sys and /proc ) on /root/dev failed: invalid argumant
Also, there is kernel panic.

I tried fsck, e2fsck and everything on the live usb but no error was found.

sikander3786
December 16th, 2010, 07:02 PM
I would suggest to post the output of bootinfoscript as per instructions here.

http://bootinfoscript.sourceforge.net

It might reveal something interesting ;-)

hanbin973
December 17th, 2010, 07:53 AM
Well, I don't know how to read the data. what ever. here is the RESULT.TXT


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 (,msdos1)/boot/grub.
=> Syslinux is installed in the MBR of /dev/sdb

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
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: vfat
Boot sector type: Fat32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /boot/grub/grub.cfg

=========================== 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
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 63 601,361,144 601,361,082 83 Linux
/dev/sda2 601,361,145 625,137,344 23,776,200 5 Extended
/dev/sda5 601,361,208 625,137,344 23,776,137 82 Linux swap / Solaris


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 1043 MB, 1043333120 bytes
33 heads, 61 sectors/track, 1012 cylinders, total 2037760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdb1 * 61 2,037,155 2,037,095 b W95 FAT32


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 8f2a33fd-ba18-4bc9-88fe-378126101018 ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 36ee4ba9-89f3-4499-84d5-b1d7ca4f1dcb swap
/dev/sda: PTTYPE="dos"
/dev/sdb1 CCCE-7F7B vfat XTICK
/dev/sdb: PTTYPE="dos"

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

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sdb1 /cdrom vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,i ocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 /rofs squashfs (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 part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8f2a33fd-ba18-4bc9-88fe-378126101018
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8f2a33fd-ba18-4bc9-88fe-378126101018
set locale_dir=($root)/boot/grub/locale
set lang=ko
insmod gettext
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8f2a33fd-ba18-4bc9-88fe-378126101018
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=8f2a33fd-ba18-4bc9-88fe-378126101018 ro ipv6.disable=1 quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8f2a33fd-ba18-4bc9-88fe-378126101018
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=8f2a33fd-ba18-4bc9-88fe-378126101018 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.34-rc7' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8f2a33fd-ba18-4bc9-88fe-378126101018
linux /boot/vmlinuz-2.6.34-rc7 root=UUID=8f2a33fd-ba18-4bc9-88fe-378126101018 ro ipv6.disable=1 quiet splash
initrd /boot/initrd.img-2.6.34-rc7
}
menuentry 'Ubuntu, with Linux 2.6.34-rc7 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8f2a33fd-ba18-4bc9-88fe-378126101018
echo 'Loading Linux 2.6.34-rc7 ...'
linux /boot/vmlinuz-2.6.34-rc7 root=UUID=8f2a33fd-ba18-4bc9-88fe-378126101018 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.34-rc7
}
menuentry 'Ubuntu, with Linux 2.6.31-20-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8f2a33fd-ba18-4bc9-88fe-378126101018
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=8f2a33fd-ba18-4bc9-88fe-378126101018 ro ipv6.disable=1 quiet splash
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-20-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8f2a33fd-ba18-4bc9-88fe-378126101018
echo 'Loading Linux 2.6.31-20-generic ...'
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=8f2a33fd-ba18-4bc9-88fe-378126101018 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-14-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8f2a33fd-ba18-4bc9-88fe-378126101018
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=8f2a33fd-ba18-4bc9-88fe-378126101018 ro ipv6.disable=1 quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry 'Ubuntu, with Linux 2.6.31-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8f2a33fd-ba18-4bc9-88fe-378126101018
echo 'Loading Linux 2.6.31-14-generic ...'
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=8f2a33fd-ba18-4bc9-88fe-378126101018 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.31-14-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_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 8f2a33fd-ba18-4bc9-88fe-378126101018
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 8f2a33fd-ba18-4bc9-88fe-378126101018
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 sleep --verbose --interruptible 3 ; then
set timeout=0
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 ###

=============================== 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=8f2a33fd-ba18-4bc9-88fe-378126101018 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=36ee4ba9-89f3-4499-84d5-b1d7ca4f1dcb none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
tmpfs /media/ramdisk tmpfs size=256M,nr_inodes=10k,mode=777 0 0

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


.2GB: boot/grub/core.img
90.6GB: boot/grub/grub.cfg
2.0GB: boot/initrd.img-2.6.31-14-generic
19.4GB: boot/initrd.img-2.6.31-20-generic
4.3GB: boot/initrd.img-2.6.34-rc7
75.8GB: boot/initrd.img-2.6.35-22-generic
.4GB: boot/vmlinuz-2.6.31-14-generic
3.6GB: boot/vmlinuz-2.6.31-20-generic
22.1GB: boot/vmlinuz-2.6.34-rc7
24.6GB: boot/vmlinuz-2.6.35-22-generic
75.8GB: initrd.img
24.6GB: vmlinuz

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


if loadfont /boot/grub/font.pf2 ; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

menuentry "Try Ubuntu without installing" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --
initrd /casper/initrd.lz
}
menuentry "Install Ubuntu" {
set gfxpayload=keep
linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash --
initrd /casper/initrd.lz
}
menuentry "Check disc for defects" {
set gfxpayload=keep
linux /casper/vmlinuz boot=casper integrity-check quiet splash --
initrd /casper/initrd.lz
}

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


??GB: boot/grub/grub.cfg

hanbin973
December 18th, 2010, 06:08 AM
ok, I've got some more information about my filesystem by contrasting my harddisk with a fine ubuntu.

first, proc sys dev home and etc folders in the root directory ( / ) has changed to a text file of combination of 0 and 1, or to a executable file and etc.

strange ;; the screenshot will explain the situation more clearly. http://ubuntuforums.org/attachment.php?attachmentid=178728&stc=1&d=1292648907

sikander3786
December 18th, 2010, 08:06 AM
That is strange. Did you play with permissions on the root partition? Or just by mistake?

Fire up terminal and navigate to the root directory.


cd /

And then post the output of this command.


ls -l

If it is not a critical system and not many settings/configurations is involved, it would just be easy to do a re-install. I don't think file/folder and permission problems in the / directory are easily curable. They'd require a lot of work to do.