boscofreitas
(usa Ubuntu)
Enviado em 04/01/2013 - 13:00h
Olá amigos, tenho aqui um relatório de uma ferramenta, que possa auxiliar a entender melhor como restaurar o GRUB do Ubuntu:
Boot Info Script 0.61.full + Boot-Repair extra info [Boot-Info November 20th 2012]
============================= Boot Info Summary: ===============================
=> Syslinux MBR (3.61-4.03) is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD
sda2: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe
/wubildr /ubuntu/winboot/wubildr /wubildr.mbr
/ubuntu/winboot/wubildr.mbr /ubuntu/disks/root.disk
/ubuntu/disks/swap.disk
sda2/Wubi: _____________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.10
Boot files: /boot/grub/grub.cfg /etc/fstab
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /boot/BCD
============================ 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 Sector End Sector # of Sectors Id System
/dev/sda1 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sda2 * 206,848 607,254,527 607,047,680 7 NTFS / exFAT / HPFS
/dev/sda3 607,254,528 625,139,711 17,885,184 7 NTFS / exFAT / HPFS
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/loop1 bea026f5-2196-4ff8-811e-ed42607d2b5c ext4
/dev/sda1 784004294003ED26 ntfs SYSTEM
/dev/sda2 CE864F1E864F0705 ntfs HP
/dev/sda3 A4024E92024E697E ntfs FACTORY_IMAGE
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sr0 /live/image iso9660 (ro,noatime)
======================== sda2/Wubi/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 ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root CE864F1E864F0705
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root CE864F1E864F0705
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
set locale_dir=($root)/boot/grub/locale
set lang=pt_BR
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 ###
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_lupin ###
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, com Linux 3.0.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os {
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root CE864F1E864F0705
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-3.0.0-26-generic root=UUID=CE864F1E864F0705 loop=/ubuntu/disks/root.disk ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-26-generic
}
menuentry 'Ubuntu, com Linux 3.0.0-26-generic (modo de recuperação)' --class ubuntu --class gnu-linux --class gnu --class os {
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root CE864F1E864F0705
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
echo 'Carregando Linux 3.0.0-26-generic ...'
linux /boot/vmlinuz-3.0.0-26-generic root=UUID=CE864F1E864F0705 loop=/ubuntu/disks/root.disk ro single
echo 'Carregando ramdisk inicial ...'
initrd /boot/initrd.img-3.0.0-26-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, com Linux 3.0.0-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root CE864F1E864F0705
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-3.0.0-25-generic root=UUID=CE864F1E864F0705 loop=/ubuntu/disks/root.disk ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-25-generic
}
menuentry 'Ubuntu, com Linux 3.0.0-25-generic (modo de recuperação)' --class ubuntu --class gnu-linux --class gnu --class os {
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root CE864F1E864F0705
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
echo 'Carregando Linux 3.0.0-25-generic ...'
linux /boot/vmlinuz-3.0.0-25-generic root=UUID=CE864F1E864F0705 loop=/ubuntu/disks/root.disk ro single
echo 'Carregando ramdisk inicial ...'
initrd /boot/initrd.img-3.0.0-25-generic
}
menuentry 'Ubuntu, com Linux 3.0.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root CE864F1E864F0705
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-3.0.0-24-generic root=UUID=CE864F1E864F0705 loop=/ubuntu/disks/root.disk ro quiet splash vt.handoff=7
initrd /boot/initrd.img-3.0.0-24-generic
}
menuentry 'Ubuntu, com Linux 3.0.0-24-generic (modo de recuperação)' --class ubuntu --class gnu-linux --class gnu --class os {
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root CE864F1E864F0705
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
echo 'Carregando Linux 3.0.0-24-generic ...'
linux /boot/vmlinuz-3.0.0-24-generic root=UUID=CE864F1E864F0705 loop=/ubuntu/disks/root.disk ro single
echo 'Carregando ramdisk inicial ...'
initrd /boot/initrd.img-3.0.0-24-generic
}
}
### END /etc/grub.d/10_lupin ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
============================= sda2/Wubi/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
/host/ubuntu/disks/root.disk / ext4 loop,errors=remount-ro 0 1
/host/ubuntu/disks/swap.disk none swap loop,sw 0 0
/dev/sda2 /media/sda2 ntfs nls=iso8859-1,ro,noauto,umask=000 0 0
/dev/sda3 /media/sda3 ntfs nls=iso8859-1,ro,umask=000 0 0
--------------------------------------------------------------------------------
================= sda2/Wubi: Location of files loaded by Grub: =================
GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
?? = ?? boot/initrd.img-3.0.0-24-generic 2
?? = ?? boot/initrd.img-3.0.0-25-generic 2
?? = ?? boot/initrd.img-3.0.0-26-generic 2
?? = ?? boot/vmlinuz-3.0.0-24-generic 2
?? = ?? boot/vmlinuz-3.0.0-25-generic 1
?? = ?? boot/vmlinuz-3.0.0-26-generic 1
?? = ?? vmlinuz 1
?? = ?? vmlinuz.old 1
========= Devices which don't seem to have a corresponding hard drive: =========
sdb
=============================== StdErr Messages: ===============================
File descriptor 7 (pipe:[6126]) leaked on lvscan invocation. Parent PID 8164: bash
File descriptor 8 (pipe:[6126]) leaked on lvscan invocation. Parent PID 8164: bash
No volume groups found
mdadm: No arrays found in config file or automatically
ADDITIONAL INFORMATION :
=================== log of boot-repair 2013-01-01__13h14 ===================
boot-repair version : 3.195~ppa11~lucid
boot-sav version : 3.195~ppa11~lucid
glade2script-gtk2 version : 3.2.2~ppa45~lucid
boot-sav-extra version : 3.195~ppa11~lucid
File descriptor 7 (pipe:[6126]) leaked on lvs invocation. Parent PID 3384: /bin/sh
File descriptor 8 (pipe:[6126]) leaked on lvs invocation. Parent PID 3384: /bin/sh
No volume groups found
boot-repair is executed in live-session (Boot-Repair-Disk 29nov2012, squeeze, Debian, i686)
CPU op-mode(s): 32-bit, 64-bit
initrd=/live/initrd.img boot=live config quiet BOOT_IMAGE=/live/vmlinuz
=================== os-prober:
/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sda2:Windows 7 (loader):Windows1:chain
/dev/sda3:Windows Recovery Environment (loader):Windows2:chain
=================== blkid:
/dev/sda1: LABEL="SYSTEM" UUID="784004294003ED26" TYPE="ntfs"
/dev/sda2: LABEL="HP" UUID="CE864F1E864F0705" TYPE="ntfs"
/dev/sda3: LABEL="FACTORY_IMAGE" UUID="A4024E92024E697E" TYPE="ntfs"
/dev/loop0: TYPE="squashfs"
1 disks with OS, 3 OS : 0 Linux, 0 MacOS, 3 Windows, 0 unknown type OS.
There is Wubi inside sda2
=================== UEFI/Legacy mode:
This live-session is not EFI-compatible.
SecureBoot maybe enabled.
=================== PARTITIONS & DISKS:
sda1 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, bootmgr, is-winboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, /mnt/boot-sav/sda1.
sda2 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, is-winboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda2.
sda3 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, bootmgr, is-winboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda3.
sda : not-GPT, BIOSboot-not-needed, has-no-EFIpart, not-usb, has-os, 2048 sectors * 512 bytes
=================== parted -l:
Model: ATA ST3320418AS (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 106MB 105MB primary ntfs boot
2 106MB 311GB 311GB primary ntfs
3 311GB 320GB 9157MB primary ntfs
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
=================== parted -lm:
BYT;
/dev/sda:320GB:scsi:512:512:msdos:ATA ST3320418AS;
1:1049kB:106MB:105MB:ntfs::boot;
2:106MB:311GB:311GB:ntfs::;
3:311GB:320GB:9157MB:ntfs::;
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 fuseblk (rw,allow_other,blksize=4096)
/dev/sda2 on /mnt/boot-sav/sda2 type fuseblk (rw,allow_other,blksize=4096)
/dev/sda3 on /mnt/boot-sav/sda3 type fuseblk (rw,allow_other,blksize=4096)
=================== ls:
/sys/block/sda (filtered): alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro sda1 sda2 sda3 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered): alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered): alignment_offset bdi capability dev device ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered): agpgart block bsg btrfs-control bus cdrom cdrw char console core cpu_dma_latency disk dri dvd dvdrw fb0 fd full fuse hidraw0 hidraw1 hidraw2 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 sda3 sdb sg0 sg1 sg2 shm snapshot snd sndstat sr0 stderr stdin stdout urandom vga_arbiter xconsole zero
ls /dev/md:
=================== df -Th:
Filesystem Type Size Used Avail Use% Mounted on
aufs aufs 997M 8.2M 989M 1% /
tmpfs tmpfs 997M 0 997M 0% /lib/init/rw
udev tmpfs 992M 164K 992M 1% /dev
tmpfs tmpfs 997M 0 997M 0% /dev/shm
/dev/sr0 iso9660 340M 340M 0 100% /live/image
tmpfs tmpfs 997M 8.2M 989M 1% /live/cow
tmpfs tmpfs 997M 0 997M 0% /live
tmpfs tmpfs 997M 8.0K 997M 1% /tmp
/dev/sda1 fuseblk 100M 26M 75M 26% /mnt/boot-sav/sda1
/dev/sda2 fuseblk 290G 138G 152G 48% /mnt/boot-sav/sda2
/dev/sda3 fuseblk 8.6G 8.1G 533M 94% /mnt/boot-sav/sda3
=================== fdisk -l:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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: 0x1549f232
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 37800 303523840 7 HPFS/NTFS
/dev/sda3 37800 38914 8942592 7 HPFS/NTFS
=================== Recommended repair
Recommended-Repair
This setting will restore the [(generic mbr)] MBR in sda, and make it boot on sda2.
Additional repair will be performed: unhide-bootmenu-10s repair-wubi
mount -o loop /mnt/boot-sav/sda2/ubuntu/disks/root.disk /mnt/boot-sav/wubi1
The file browser that just opened will let you access your Wubi (Linux installed into Windows) files. (/mnt/boot-sav/wubi1/home) Please backup your data now! Then close this window.
Warning: unknown mime-type for "/mnt/boot-sav/wubi1/home" -- using "application/octet-stream"
Error: no "view" mailcap rules found for type "application/octet-stream"
umount /mnt/boot-sav/wubi1
fsck -f -y /mnt/boot-sav/sda2/ubuntu/disks/root.disk
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/mnt/boot-sav/sda2/ubuntu/disks/root.disk: 193914/1905008 files (0.3% non-contiguous), 1328416/7614464 blocks
Will restore the MBR_TO_RESTORE : sda (generic mbr) into sda
dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
0+1 records in
0+1 records out
parted /dev/sda set 2 boot on
Information: You may need to update /etc/fstab.
Boot successfully repaired.
You can now reboot your computer.
pastebin.com ko (), using paste.ubuntu Please report this message to yannubuntu@gmail.com