PDA

View Full Version : [ubuntu] 11.04 cannot boot, resume : libgcrypt version 1.4.6 appeared



Dtest110624
June 24th, 2011, 11:11 AM
Hi All,

Help me please. I met this problem when I came into the office, found my computer screen black, On the evening before this, I left it there without switching off as usual.

When I boot, It said:

"Errors were found while checking the disk drive for /
Press F to attempt to fix the errors, I to ignore, S to skip mounting or M for manual recovery"

If I press I, nothing happend, If I press F, it also stopped booting, ending up with black screen.

Here I pasted the result from runningboot_info_script.sh

%----------------------------------------------------------------
Boot Info Script 0.60 from 17 May 2011


============================= 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 (,msdos4)/boot/grub on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
in partition 4 for /boot/grub.

sda1: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /BOOT.INI /ntldr /NTDETECT.COM

sda2: __________________________________________________ ________________________

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

sda5: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

sda3: __________________________________________________ ________________________

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

sda4: __________________________________________________ ________________________

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

sdb1: __________________________________________________ ________________________

File system: vfat
Boot sector type: MSWIN4.1: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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 63 81,915,434 81,915,372 7 NTFS / exFAT / HPFS
/dev/sda2 81,934,334 324,184,063 242,249,730 5 Extended
/dev/sda5 81,934,336 324,184,063 242,249,728 7 NTFS / exFAT / HPFS
/dev/sda3 324,184,064 335,022,079 10,838,016 82 Linux swap / Solaris
/dev/sda4 335,022,080 488,396,799 153,374,720 83 Linux


Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 8017 MB, 8017412096 bytes
108 heads, 44 sectors/track, 3295 cylinders, total 15659008 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/sdb1 * 8,064 15,659,007 15,650,944 c W95 FAT32 (LBA)


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 F650022A5001F263 ntfs WINDOWSXP
/dev/sda3 bcd6272d-df74-4f2a-8fd7-a7fe3660c0e1 swap
/dev/sda4 e937cc93-60e1-4dc3-baf8-9206359e54c8 reiserfs linuxOS
/dev/sda5 77E9FA1C651EA31E ntfs WindowsData
/dev/sdb1 5F9C-F6DF vfat DALIU FLASH

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

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sda1 /media/WINDOWSXP fuseblk (rw,nosuid,nodev,allow_other,blksize=512,default_p ermissions)
/dev/sda4 /media/linuxOS reiserfs (rw,nosuid,nodev,uhelper=udisks)
/dev/sda5 /media/WindowsData fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
/dev/sdb1 /media/DALIU FLASH vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000, shortname=mixed,dmask=0077,utf8=1,showexec,flush)
/dev/sr0 /cdrom iso9660 (ro,noatime)


================================ sda1/BOOT.INI: ================================

--------------------------------------------------------------------------------
[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows XP Pro - RuG-XP v1.16h [RuG-UWP]" /noexecute=optin /fastdetect
--------------------------------------------------------------------------------

=========================== sda4/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 reiserfs
set root='(/dev/sda,msdos4)'
search --no-floppy --fs-uuid --set=root e937cc93-60e1-4dc3-baf8-9206359e54c8
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod reiserfs
set root='(/dev/sda,msdos4)'
search --no-floppy --fs-uuid --set=root e937cc93-60e1-4dc3-baf8-9206359e54c8
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=1
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 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod reiserfs
set root='(/dev/sda,msdos4)'
search --no-floppy --fs-uuid --set=root e937cc93-60e1-4dc3-baf8-9206359e54c8
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=e937cc93-60e1-4dc3-baf8-9206359e54c8 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod reiserfs
set root='(/dev/sda,msdos4)'
search --no-floppy --fs-uuid --set=root e937cc93-60e1-4dc3-baf8-9206359e54c8
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=e937cc93-60e1-4dc3-baf8-9206359e54c8 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 2.6.35-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod reiserfs
set root='(/dev/sda,msdos4)'
search --no-floppy --fs-uuid --set=root e937cc93-60e1-4dc3-baf8-9206359e54c8
linux /boot/vmlinuz-2.6.35-28-generic root=UUID=e937cc93-60e1-4dc3-baf8-9206359e54c8 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.35-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod reiserfs
set root='(/dev/sda,msdos4)'
search --no-floppy --fs-uuid --set=root e937cc93-60e1-4dc3-baf8-9206359e54c8
echo 'Loading Linux 2.6.35-28-generic ...'
linux /boot/vmlinuz-2.6.35-28-generic root=UUID=e937cc93-60e1-4dc3-baf8-9206359e54c8 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-28-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 reiserfs
set root='(/dev/sda,msdos4)'
search --no-floppy --fs-uuid --set=root e937cc93-60e1-4dc3-baf8-9206359e54c8
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod reiserfs
set root='(/dev/sda,msdos4)'
search --no-floppy --fs-uuid --set=root e937cc93-60e1-4dc3-baf8-9206359e54c8
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows NT/2000/XP (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root F650022A5001F263
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Arch Linux (on /dev/sdc1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(/dev/sdc,msdos1)'
search --no-floppy --fs-uuid --set=root 35190bf1-8dc9-4d38-9277-53dc95e1a94b
linux /boot/vmlinuz26 root=/dev/disk/by-uuid/35190bf1-8dc9-4d38-9277-53dc95e1a94b ro
initrd /boot/kernel26.img
}
menuentry "Arch Linux Fallback (on /dev/sdc1)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(/dev/sdc,msdos1)'
search --no-floppy --fs-uuid --set=root 35190bf1-8dc9-4d38-9277-53dc95e1a94b
linux /boot/vmlinuz26 root=/dev/disk/by-uuid/35190bf1-8dc9-4d38-9277-53dc95e1a94b ro
initrd /boot/kernel26-fallback.img
}
menuentry "Ubuntu, with Linux 2.6.35-23-generic (on /dev/sdc6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(/dev/sdc,msdos6)'
search --no-floppy --fs-uuid --set=root c010663e-8db6-4600-a7ac-3a9b702559ff
linux /boot/vmlinuz-2.6.35-23-generic root=UUID=c010663e-8db6-4600-a7ac-3a9b702559ff ro quiet splash
initrd /boot/initrd.img-2.6.35-23-generic
}
menuentry "Ubuntu, with Linux 2.6.35-23-generic (recovery mode) (on /dev/sdc6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(/dev/sdc,msdos6)'
search --no-floppy --fs-uuid --set=root c010663e-8db6-4600-a7ac-3a9b702559ff
linux /boot/vmlinuz-2.6.35-23-generic root=UUID=c010663e-8db6-4600-a7ac-3a9b702559ff ro single
initrd /boot/initrd.img-2.6.35-23-generic
}
menuentry "Ubuntu, with Linux 2.6.35-22-generic (on /dev/sdc6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(/dev/sdc,msdos6)'
search --no-floppy --fs-uuid --set=root c010663e-8db6-4600-a7ac-3a9b702559ff
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=c010663e-8db6-4600-a7ac-3a9b702559ff ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry "Ubuntu, with Linux 2.6.35-22-generic (recovery mode) (on /dev/sdc6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(/dev/sdc,msdos6)'
search --no-floppy --fs-uuid --set=root c010663e-8db6-4600-a7ac-3a9b702559ff
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=c010663e-8db6-4600-a7ac-3a9b702559ff ro single
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry "Ubuntu, with Linux 2.6.32-25-generic (on /dev/sdc6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(/dev/sdc,msdos6)'
search --no-floppy --fs-uuid --set=root c010663e-8db6-4600-a7ac-3a9b702559ff
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=c010663e-8db6-4600-a7ac-3a9b702559ff ro quiet splash
initrd /boot/initrd.img-2.6.32-25-generic
}
menuentry "Ubuntu, with Linux 2.6.32-25-generic (recovery mode) (on /dev/sdc6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(/dev/sdc,msdos6)'
search --no-floppy --fs-uuid --set=root c010663e-8db6-4600-a7ac-3a9b702559ff
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=c010663e-8db6-4600-a7ac-3a9b702559ff ro single
initrd /boot/initrd.img-2.6.32-25-generic
}
menuentry "Ubuntu, with Linux 2.6.32-24-generic (on /dev/sdc6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(/dev/sdc,msdos6)'
search --no-floppy --fs-uuid --set=root c010663e-8db6-4600-a7ac-3a9b702559ff
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=c010663e-8db6-4600-a7ac-3a9b702559ff ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Ubuntu, with Linux 2.6.32-24-generic (recovery mode) (on /dev/sdc6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(/dev/sdc,msdos6)'
search --no-floppy --fs-uuid --set=root c010663e-8db6-4600-a7ac-3a9b702559ff
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=c010663e-8db6-4600-a7ac-3a9b702559ff ro single
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Ubuntu, with Linux 2.6.32-21-generic (on /dev/sdc6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(/dev/sdc,msdos6)'
search --no-floppy --fs-uuid --set=root c010663e-8db6-4600-a7ac-3a9b702559ff
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c010663e-8db6-4600-a7ac-3a9b702559ff ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry "Ubuntu, with Linux 2.6.32-21-generic (recovery mode) (on /dev/sdc6)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod reiserfs
set root='(/dev/sdc,msdos6)'
search --no-floppy --fs-uuid --set=root c010663e-8db6-4600-a7ac-3a9b702559ff
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=c010663e-8db6-4600-a7ac-3a9b702559ff ro single
initrd /boot/initrd.img-2.6.32-21-generic
}
### 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 ###
--------------------------------------------------------------------------------

=============================== sda4/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 nodev,noexec,nosuid 0 0
# / was on /dev/sda4 during installation
UUID=e937cc93-60e1-4dc3-baf8-9206359e54c8 / reiserfs notail 0 1
# swap was on /dev/sda3 during installation
UUID=6cb447f3-c38c-42dd-a022-414bdc96c11c none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

?? = ?? boot/grub/core.img 1
?? = ?? boot/grub/grub.cfg 3
?? = ?? boot/initrd.img-2.6.35-28-generic 2
?? = ?? boot/initrd.img-2.6.38-8-generic 6
?? = ?? boot/vmlinuz-2.6.35-28-generic 1
?? = ?? boot/vmlinuz-2.6.38-8-generic 24
?? = ?? initrd.img 6
?? = ?? initrd.img.old 2
?? = ?? vmlinuz 24
?? = ?? vmlinuz.old 1

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

unlzma: Decoder error
unlzma: Decoder error

jtarin
June 24th, 2011, 11:47 AM
=> 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 (,msdos4)/boot/grub on this drive.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of the same hard drive for core.img. core.img is at this location and looks
in partition 4 for /boot/grub.You have two Grub2 installations and neither is looking at the correct location. Use the CHROOT (https://help.ubuntu.com/community/Grub2#ChRoot) method with a Live CD to reinstall Grub to /dev/sda, which is the drive your Ubuntu install is at /dev/sda4. Your /dev/sdb appears to be an external drive used for data only I would guess. If true then just unplug it when installing Grub.

Dtest110624
June 24th, 2011, 11:55 AM
You have two Grub2 installations and neither is looking at the correct location. Use the CHROOT (https://help.ubuntu.com/community/Grub2#ChRoot) method with a Live CD to reinstall Grub to /dev/sda, which is the drive your Ubuntu install is at /dev/sda4. Your /dev/sdb appears to be an external drive used for data only I would guess. If true then just unplug it when installing Grub.

I do have two grubs, but as usual this computer works fine just before this incident. The actually using grub is installed in a USB that always plugged in, here as you see /sdb.

However, do you really think that is a problem as I have two grubs?

The reason why I install the grub into a USB is because our university using LAB to boot loading a net boottable always write and erase the grub info on /sda into theirs.

Thank you.

jtarin
June 24th, 2011, 12:12 PM
Well if you can boot that way I guess it's OK, however it's seem the file system reiserfs has some problems with Grub2 (you can do a web search and see plenty of issues). Can you boot into a Windows install OK?

Dtest110624
June 24th, 2011, 12:43 PM
Well if you can boot that way I guess it's OK, however it's seem the file system reiserfs has some problems with Grub2 (you can do a web search and see plenty of issues). Can you boot into a Windows install OK?

Yes, you are probably right, because I constantly suffered the force shutting down,(I always have to plug out the power cable when the computer dead, I guess I let it overload, because I often open a lot of web tabs concurrently.)

The Windows can successfully start.

So what's your suggestion now.

Thank you very much.

jtarin
June 24th, 2011, 12:51 PM
The Windows can successfully start.

So what's your suggestion now.

Thank you very much.You can replace Grub2 in the MBR of /dev/sda with the Windows Boot Loader which they will not erase and use it to boot Ubuntu. You can use EasyBCD to do this. It edits the Windows bootloader. It will allow you to boot all these systems (http://neosmart.net/wiki/display/EBCD/Supported+Operating+Systems).You will still need to run the CHROOT command but place Grub in the Ubuntu Partition.If you want to do it let me know after you have read the documentation on EasyBCD and I'll walk you through if you need help.

Dtest110624
June 24th, 2011, 02:23 PM
You can replace Grub2 in the MBR of /dev/sda with the Windows Boot Loader which they will not erase and use it to boot Ubuntu. You can use EasyBCD to do this. It edits the Windows bootloader. It will allow you to boot all these systems (http://neosmart.net/wiki/display/EBCD/Supported+Operating+Systems).You will still need to run the CHROOT command but place Grub in the Ubuntu Partition.If you want to do it let me know after you have read the documentation on EasyBCD and I'll walk you through if you need help.

I don't fully understand your answer, I guess you suggest me install the Boot Loader into /sda, instead of using grub in /sdb (USB), that is a good advice, and will be convenient for me. But it is not the main problem, like you said, the issue may lie in the the file system or the harddisk, it cannot mount due to the disk error? I am not sure. What if I say I can stick to the silly booting from my USB. Can I just leave the grub in /sdb and to fix the problem? Well, I myself, has no idea how to fix it. Thanks.