[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help with grub 1.99-2
From: |
Andrey Borzenkov |
Subject: |
Re: help with grub 1.99-2 |
Date: |
Sun, 10 Aug 2014 08:47:43 +0400 |
В Sat, 9 Aug 2014 15:25:50 -0400
Hernán Fernández <address@hidden> пишет:
> thanks Jordan, I tried to analyze the outputs, without success
>
> echo $prefix return
> (hd0,gpt2)/EFI/Ubuntu
>
Are you using legacy BIOS boot or EFI boot? You have both bootloaders
and we do not know which one is actually used. Also I'm afraid your
grub version is a bit old to show this information at runtime.
> bootinfo script returned
> (here (,gpt6)/boot/grub called my attention, I don't know what is gpt6)
>
It is partition 6 on your drive. According to output it does contain
"elementary OS" so it appears to be correct.
>
> ################################
> 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
> 389763072 of the same hard drive for core.img. core.img is at this
> location and looks for (,gpt6)/boot/grub on this drive.
>
> 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:
>
> sda2:
> __________________________________________________________________________
>
> File system: vfat
> Boot sector type: Unknown
> Boot sector info: No errors found in the Boot Parameter Block.
> Operating System:
> Boot files: /grub.cfg /efi/Boot/bootx64.efi
> /efi/elementary/grubx64.efi
> /efi/elementary/shimx64.efi /bootmgr /boot/bcd
>
> sda3:
> __________________________________________________________________________
>
> File system:
> Boot sector type: -
> Boot sector info:
> Mounting failed: mount: unknown filesystem type ''
>
> sda4:
> __________________________________________________________________________
>
> 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 /Windows/System32/winload.exe
>
> sda5:
> __________________________________________________________________________
>
> File system: BIOS Boot partition
> Boot sector type: Grub2's core.img
> Boot sector info:
>
> sda6:
> __________________________________________________________________________
>
> File system: ext4
> Boot sector type: -
> Boot sector info:
> Operating System: elementary OS Luna
> Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
>
> sda7:
> __________________________________________________________________________
>
> File system: swap
> Boot sector type: -
> Boot sector info:
>
> ============================ Drive/Partition Info:
> =============================
>
> Drive: sda
> _____________________________________________________________________
>
> Disk /dev/sda: 500.1 GB, 500107862016 bytes
> 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 4096 bytes
>
> Partition Boot Start Sector End Sector # of Sectors Id System
>
> /dev/sda1 1 976,773,167 976,773,167 ee GPT
>
>
> GUID Partition Table detected.
>
> Partition Start Sector End Sector # of Sectors System
> /dev/sda1 2,048 1,023,999 1,021,952 Windows Recovery
> Environment (Windows)
> /dev/sda2 1,024,000 1,638,399 614,400 EFI System partition
> /dev/sda3 1,638,400 1,900,543 262,144 Microsoft Reserved
> Partition (Windows)
> /dev/sda4 1,900,544 389,761,422 387,860,879 Data partition
> (Windows/Linux)
> /dev/sda5 389,763,072 389,765,119 2,048 BIOS Boot partition
> /dev/sda6 389,765,120 960,231,423 570,466,304 Data partition
> (Windows/Linux)
> /dev/sda7 960,231,424 976,771,071 16,539,648 Swap partition (Linux)
>
> "blkid" output:
> ________________________________________________________________
>
> Device UUID TYPE LABEL
>
> /dev/sda1 B60E5B6E0E5B26A1 ntfs Windows
> RE tools
> /dev/sda2 145D-ECAB vfat SYSTEM
> /dev/sda4 1A125FE5125FC503 ntfs
> /dev/sda6 58b9c768-d9fc-484f-a6f6-54cc25216c4a ext4
> /dev/sda7 3acd7db7-2c97-459c-9257-880979edcedf swap
>
> ================================ Mount points:
> =================================
>
> Device Mount_Point Type Options
>
> /dev/sda6 / ext4 (rw,errors=remount-ro)
>
>
> ================================ sda2/grub.cfg:
> ================================
>
> --------------------------------------------------------------------------------
> search.fs_uuid 58b9c768-d9fc-484f-a6f6-54cc25216c4a root
> set prefix=($root)/boot/grub
> configfile $prefix/grub.cfg
> --------------------------------------------------------------------------------
>
> =================== sda2: Location of files loaded by Grub:
> ====================
>
> GiB - GB File
> Fragment(s)
>
> ?? = ?? grub.cfg
> 1
>
> =========================== sda6/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_gpt
> insmod ext2
> set root='(hd0,gpt6)'
> search --no-floppy --fs-uuid --set=root 58b9c768-d9fc-484f-a6f6-54cc25216c4a
> if loadfont /usr/share/grub/unicode.pf2 ; then
> set gfxmode=auto
> load_video
> insmod gfxterm
> insmod part_gpt
> insmod ext2
> set root='(hd0,gpt6)'
> search --no-floppy --fs-uuid --set=root
> 58b9c768-d9fc-484f-a6f6-54cc25216c4a
> set locale_dir=($root)/boot/grub/locale
> set lang=en_US
> 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 0,0,0; 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 'elementary OS, with Linux 3.2.0-67-generic' --class elementary
> --class gnu-linux --class gnu --class os {
> recordfail
> gfxmode $linux_gfx_mode
> insmod gzio
> insmod part_gpt
> insmod ext2
> set root='(hd0,gpt6)'
> search --no-floppy --fs-uuid --set=root
> 58b9c768-d9fc-484f-a6f6-54cc25216c4a
> linux /boot/vmlinuz-3.2.0-67-generic
> root=UUID=58b9c768-d9fc-484f-a6f6-54cc25216c4a ro quiet splash $vt_handoff
> initrd /boot/initrd.img-3.2.0-67-generic
> }
> menuentry 'elementary OS, with Linux 3.2.0-67-generic (recovery mode)'
> --class elementary --class gnu-linux --class gnu --class os {
> recordfail
> insmod gzio
> insmod part_gpt
> insmod ext2
> set root='(hd0,gpt6)'
> search --no-floppy --fs-uuid --set=root 58b9c768-d9fc-484f-a6f6-54cc25216c4a
> echo 'Loading Linux 3.2.0-67-generic ...'
> linux /boot/vmlinuz-3.2.0-67-generic
> root=UUID=58b9c768-d9fc-484f-a6f6-54cc25216c4a ro recovery nomodeset
> echo 'Loading initial ramdisk ...'
> initrd /boot/initrd.img-3.2.0-67-generic
> }
> submenu "Previous Linux versions" {
> menuentry 'elementary OS, with Linux 3.2.0-65-generic' --class elementary
> --class gnu-linux --class gnu --class os {
> recordfail
> gfxmode $linux_gfx_mode
> insmod gzio
> insmod part_gpt
> insmod ext2
> set root='(hd0,gpt6)'
> search --no-floppy --fs-uuid --set=root 58b9c768-d9fc-484f-a6f6-54cc25216c4a
> linux /boot/vmlinuz-3.2.0-65-generic
> root=UUID=58b9c768-d9fc-484f-a6f6-54cc25216c4a ro quiet splash $vt_handoff
> initrd /boot/initrd.img-3.2.0-65-generic
> }
> menuentry 'elementary OS, with Linux 3.2.0-65-generic (recovery mode)'
> --class elementary --class gnu-linux --class gnu --class os {
> recordfail
> insmod gzio
> insmod part_gpt
> insmod ext2
> set root='(hd0,gpt6)'
> search --no-floppy --fs-uuid --set=root 58b9c768-d9fc-484f-a6f6-54cc25216c4a
> echo 'Loading Linux 3.2.0-65-generic ...'
> linux /boot/vmlinuz-3.2.0-65-generic
> root=UUID=58b9c768-d9fc-484f-a6f6-54cc25216c4a ro recovery nomodeset
> echo 'Loading initial ramdisk ...'
> initrd /boot/initrd.img-3.2.0-65-generic
> }
> menuentry 'elementary OS, with Linux 3.2.0-64-generic' --class elementary
> --class gnu-linux --class gnu --class os {
> recordfail
> gfxmode $linux_gfx_mode
> insmod gzio
> insmod part_gpt
> insmod ext2
> set root='(hd0,gpt6)'
> search --no-floppy --fs-uuid --set=root
> 58b9c768-d9fc-484f-a6f6-54cc25216c4a
> linux /boot/vmlinuz-3.2.0-64-generic
> root=UUID=58b9c768-d9fc-484f-a6f6-54cc25216c4a ro quiet splash $vt_handoff
> initrd /boot/initrd.img-3.2.0-64-generic
> }
> menuentry 'elementary OS, with Linux 3.2.0-64-generic (recovery mode)'
> --class elementary --class gnu-linux --class gnu --class os {
> recordfail
> insmod gzio
> insmod part_gpt
> insmod ext2
> set root='(hd0,gpt6)'
> search --no-floppy --fs-uuid --set=root 58b9c768-d9fc-484f-a6f6-54cc25216c4a
> echo 'Loading Linux 3.2.0-64-generic ...'
> linux /boot/vmlinuz-3.2.0-64-generic
> root=UUID=58b9c768-d9fc-484f-a6f6-54cc25216c4a ro recovery nomodeset
> echo 'Loading initial ramdisk ...'
> initrd /boot/initrd.img-3.2.0-64-generic
> }
> menuentry 'elementary OS, with Linux 3.2.0-63-generic' --class elementary
> --class gnu-linux --class gnu --class os {
> recordfail
> gfxmode $linux_gfx_mode
> insmod gzio
> insmod part_gpt
> insmod ext2
> set root='(hd0,gpt6)'
> search --no-floppy --fs-uuid --set=root
> 58b9c768-d9fc-484f-a6f6-54cc25216c4a
> linux /boot/vmlinuz-3.2.0-63-generic
> root=UUID=58b9c768-d9fc-484f-a6f6-54cc25216c4a ro quiet splash $vt_handoff
> initrd /boot/initrd.img-3.2.0-63-generic
> }
> menuentry 'elementary OS, with Linux 3.2.0-63-generic (recovery mode)'
> --class elementary --class gnu-linux --class gnu --class os {
> recordfail
> insmod gzio
> insmod part_gpt
> insmod ext2
> set root='(hd0,gpt6)'
> search --no-floppy --fs-uuid --set=root 58b9c768-d9fc-484f-a6f6-54cc25216c4a
> echo 'Loading Linux 3.2.0-63-generic ...'
> linux /boot/vmlinuz-3.2.0-63-generic
> root=UUID=58b9c768-d9fc-484f-a6f6-54cc25216c4a ro recovery nomodeset
> echo 'Loading initial ramdisk ...'
> initrd /boot/initrd.img-3.2.0-63-generic
> }
> menuentry 'elementary OS, with Linux 3.2.0-51-generic' --class elementary
> --class gnu-linux --class gnu --class os {
> recordfail
> gfxmode $linux_gfx_mode
> insmod gzio
> insmod part_gpt
> insmod ext2
> set root='(hd0,gpt6)'
> search --no-floppy --fs-uuid --set=root
> 58b9c768-d9fc-484f-a6f6-54cc25216c4a
> linux /boot/vmlinuz-3.2.0-51-generic
> root=UUID=58b9c768-d9fc-484f-a6f6-54cc25216c4a ro quiet splash $vt_handoff
> initrd /boot/initrd.img-3.2.0-51-generic
> }
> menuentry 'elementary OS, with Linux 3.2.0-51-generic (recovery mode)'
> --class elementary --class gnu-linux --class gnu --class os {
> recordfail
> insmod gzio
> insmod part_gpt
> insmod ext2
> set root='(hd0,gpt6)'
> search --no-floppy --fs-uuid --set=root 58b9c768-d9fc-484f-a6f6-54cc25216c4a
> echo 'Loading Linux 3.2.0-51-generic ...'
> linux /boot/vmlinuz-3.2.0-51-generic
> root=UUID=58b9c768-d9fc-484f-a6f6-54cc25216c4a ro recovery nomodeset
> echo 'Loading initial ramdisk ...'
> initrd /boot/initrd.img-3.2.0-51-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/30_os-prober ###
> menuentry "Windows 8 (loader) (on /dev/sda2)" --class windows --class os {
> insmod part_gpt
> insmod fat
> set root='(hd0,gpt2)'
> search --no-floppy --fs-uuid --set=root 145D-ECAB
> drivemap -s (hd0) ${root}
> chainloader +1
> }
> set timeout_style=menu
> if [ "${timeout}" = 0 ]; then
> set timeout=10
> fi
> ### END /etc/grub.d/30_os-prober ###
>
> ### BEGIN /etc/grub.d/30_uefi-firmware ###
> menuentry 'System setup' {
> fwsetup
> }
> ### END /etc/grub.d/30_uefi-firmware ###
>
> ### BEGIN /etc/grub.d/40_custom ###
> # This file provides an easy way to add custom menu entries. Simply type
> the
> # menu entries you want to add after this comment. Be careful not to change
> # the 'exec tail' line above.
> ### END /etc/grub.d/40_custom ###
>
> ### BEGIN /etc/grub.d/41_custom ###
> if [ -f $prefix/custom.cfg ]; then
> source $prefix/custom.cfg;
> fi
> ### END /etc/grub.d/41_custom ###
> --------------------------------------------------------------------------------
>
> =============================== sda6/etc/fstab:
> ================================
>
> --------------------------------------------------------------------------------
> # /etc/fstab: static file system information.
> #
> # Use 'blkid' to print the universally unique identifier for a
> # device; this may be used with UUID= as a more robust way to name devices
> # that works even if disks are added and removed. See fstab(5).
> #
> # <file system> <mount point> <type> <options> <dump> <pass>
> proc /proc proc nodev,noexec,nosuid 0 0
> # / was on /dev/sda6 during installation
> UUID=58b9c768-d9fc-484f-a6f6-54cc25216c4a / ext4
> errors=remount-ro 0 1
> # swap was on /dev/sda7 during installation
> UUID=3acd7db7-2c97-459c-9257-880979edcedf none swap sw
> 0 0
> #UUID=145D-ECAB /boot/efi vfat defaults 0 1
> --------------------------------------------------------------------------------
>
> =================== sda6: Location of files loaded by Grub:
> ====================
>
> GiB - GB File
> Fragment(s)
>
> 316.214454651 = 339.532685312 boot/grub/core.img
> 1
> 332.125400543 = 356.616933376 boot/grub/grub.cfg
> 1
> 186.919986725 = 200.703807488 boot/initrd.img-3.2.0-51-generic
> 3
> 186.420242310 = 200.167211008 boot/initrd.img-3.2.0-63-generic
> 3
> 227.892910004 = 244.698148864 boot/initrd.img-3.2.0-64-generic
> 3
> 230.107730865 = 247.076294656 boot/initrd.img-3.2.0-65-generic
> 2
> 229.674804688 = 246.611443712 boot/initrd.img-3.2.0-67-generic
> 3
> 189.987705231 = 203.997745152 boot/vmlinuz-3.2.0-51-generic
> 1
> 252.316169739 = 270.922424320 boot/vmlinuz-3.2.0-63-generic
> 1
> 254.722419739 = 273.506115584 boot/vmlinuz-3.2.0-64-generic
> 1
> 226.437263489 = 243.135160320 boot/vmlinuz-3.2.0-65-generic
> 2
> 425.363044739 = 456.730091520 boot/vmlinuz-3.2.0-67-generic
> 1
> 229.674804688 = 246.611443712 initrd.img
> 3
> 230.107730865 = 247.076294656 initrd.img.old
> 2
> 425.363044739 = 456.730091520 vmlinuz
> 1
> 226.437263489 = 243.135160320 vmlinuz.old
> 2
>
> ======================== Unknown MBRs/Boot Sectors/etc:
> ========================
>
> Unknown BootLoader on sda2
>
> 00000000 eb 58 90 4d 53 44 4f 53 35 2e 30 00 02 08 5e 1b
> |.X.MSDOS5.0...^.|
> 00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 00 a0 0f 00
> |........?.......|
> 00000020 00 60 09 00 51 02 00 00 00 00 00 00 02 00 00 00
> |.`..Q...........|
> 00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00
> |................|
> 00000040 80 01 29 ab ec 5d 14 4e 4f 20 4e 41 4d 45 20 20 |..)..].NO NAME
> |
> 00000050 20 20 46 41 54 33 32 20 20 20 33 c9 8e d1 bc f4 | FAT32
> 3.....|
> 00000060 7b 8e c1 8e d9 bd 00 7c 88 56 40 88 4e 02 8a 56 |{......|.V@
> .N..V|
> 00000070 40 b4 41 bb aa 55 cd 13 72 10 81 fb 55 aa 75 0a
> |@.A..U..r...U.u.|
> 00000080 f6 c1 01 74 05 fe 46 02 eb 2d 8a 56 40 b4 08 cd |...t..F..-.V@
> ...|
> 00000090 13 73 05 b9 ff ff 8a f1 66 0f b6 c6 40 66 0f b6 |address@hidden
> .|
> 000000a0 d1 80 e2 3f f7 e2 86 cd c0 ed 06 41 66 0f b7 c9
> |...?.......Af...|
> 000000b0 66 f7 e1 66 89 46 f8 83 7e 16 00 75 39 83 7e 2a
> |f..f.F..~..u9.~*|
> 000000c0 00 77 33 66 8b 46 1c 66 83 c0 0c bb 00 80 b9 01
> |.w3f.F.f........|
> 000000d0 00 e8 2c 00 e9 a8 03 a1 f8 7d 80 c4 7c 8b f0 ac
> |..,......}..|...|
> 000000e0 84 c0 74 17 3c ff 74 09 b4 0e bb 07 00 cd 10 eb
> |..t.<.t.........|
> 000000f0 ee a1 fa 7d eb e4 a1 7d 80 eb df 98 cd 16 cd 19
> |...}...}........|
> 00000100 66 60 80 7e 02 00 0f 84 20 00 66 6a 00 66 50 06 |f`.~....
> .fj.fP.|
> 00000110 53 66 68 10 00 01 00 b4 42 8a 56 40 8b f4 cd 13 |Sfh.....B.V@
> ....|
> 00000120 66 58 66 58 66 58 66 58 eb 33 66 3b 46 f8 72 03
> |fXfXfXfX.3f;F.r.|
> 00000130 f9 eb 2a 66 33 d2 66 0f b7 4e 18 66 f7 f1 fe c2
> |..*f3.f..N.f....|
> 00000140 8a ca 66 8b d0 66 c1 ea 10 f7 76 1a 86 d6 8a 56
> |..f..f....v....V|
> 00000150 40 8a e8 c0 e4 06 0a cc b8 01 02 cd 13 66 61 0f
> |@............fa.|
> 00000160 82 74 ff 81 c3 00 02 66 40 49 75 94 c3 42 4f 4f |address@hidden
> .BOO|
> 00000170 54 4d 47 52 20 20 20 20 00 00 00 00 00 00 00 00 |TMGR
> ........|
> 00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> |................|
> *
> 000001a0 00 00 00 00 00 00 00 00 00 00 00 00 0d 0a 44 69
> |..............Di|
> 000001b0 73 6b 20 65 72 72 6f 72 ff 0d 0a 50 72 65 73 73 |sk
> error...Press|
> 000001c0 20 61 6e 79 20 6b 65 79 20 74 6f 20 72 65 73 74 | any key to
> rest|
> 000001d0 61 72 74 0d 0a 00 00 00 00 00 00 00 00 00 00 00
> |art.............|
> 000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> |................|
> 000001f0 00 00 00 00 00 00 00 00 ac 01 b9 01 00 00 55 aa
> |..............U.|
> 00000200
>
>
> =============================== StdErr Messages:
> ===============================
>
> xz: (stdin): Compressed data is corrupt
>
> ###########################
>
>
>
> --
> Hernán Fernández
> +56994752172
>
>
> On 8 August 2014 16:31, Jordan Uggla <address@hidden> wrote:
>
> > On Wed, Aug 6, 2014 at 5:17 PM, Hernán Fernández <address@hidden>
> > wrote:
> > > Hi guys,
> > >
> > > I have a notebook with windows 8. I have installed elementary os in a
> > > separated partition. (I wanted like that).
> > >
> > > After try to fix my problem with boot repair and other thinks, my best
> > > result is the followin.
> > >
> > > 1.- turn on the notebook
> > > 2.- see the screen in the attached image
> > > 3.- to boot I have to manually write, "configfile /grub.cfg"
> > >
> > > http://tinypic.com/r/2i93094/8
> > >
> > > I have tried to put grub.cfg in different locations without any change.
> > May
> > > you help me please?
> >
> > Please run "echo $prefix" at the grub shell, and post the output.
> > Please also run boot info script,
> > http://bootinfoscript.sourceforge.net/, and post the RESULTS.txt that
> > it produces.
> >
> > --
> > Jordan Uggla (Jordan_U on irc.freenode.net)
> >