当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : Ubuntu grub-install fail
帖子发表于 : 2015-06-10 10:04 

注册: 2015-06-10 9:56
帖子: 2
系统: Ubuntu14.04
送出感谢: 0 次
接收感谢: 0 次
root@ubuntu:/tmp# grub-install /dev/sda
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.

===============================================
cd /tmp/ && wget 'http://home.comcast.net/~ubuntu_grub/boot_info_script.txt' && sudo bash boot_info_script.txt
---------------------------------------------------------------------------------------------------------------------------------------------------
Boot Info Script e7fc706 + Boot-Repair extra info [Boot-Info 9Feb2015]


============================= Boot Info Summary: ===============================

=> No boot loader is installed in the MBR of /dev/sda.
=> Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:

sda3: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

File system: vfat
Boot sector type: SYSLINUX 4.05 20120131
Boot sector info: Syslinux looks at sector 4044824 of /dev/sdb1 for its
second stage. SYSLINUX is installed in the directory.
No errors found in the Boot Parameter Block.
Operating System:
Boot files: /menu.lst /boot/grub/grub.cfg /syslinux/syslinux.cfg
/grldr /casper/vmlinuz.efi /EFI/BOOT/grubx64.efi
/bootmgr /grldr /ldlinux.sys

ubuntu-vg-root: ________________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

ubuntu-vg-swap_1: ______________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: unknown filesystem type ''

============================ 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,550,335 1,548,288 Data partition (Linux)
/dev/sda3 1,550,336 976,771,071 975,220,736 Logical Volume Manager (LVM) partition (Linux)

Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 7747 MB, 7747397632 bytes
230 heads, 44 sectors/track, 1495 cylinders, total 15131636 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 * 16,128 15,131,635 15,115,508 c W95 FAT32 (LBA)


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/mapper/ubuntu--vg-root 5b74c13e-7a27-43ee-ab79-3c8e649b05b1 ext4
/dev/mapper/ubuntu--vg-swap_1 4fde3ba2-d4b7-4b40-98d3-6c3ac863dbb5 swap
/dev/sda1 6618b02e-c335-4d11-ae6a-330f41c8142d ext4 shenglingg
/dev/sda3 1k2z0q-8fky-rX0V-Fkdg-LsuB-66OM-MlPClw LVM2_member
/dev/sdb1 vfat WINSETUP

========================= "ls -l /dev/disk/by-id" output: ======================

total 0
lrwxrwxrwx 1 root root 9 Jun 10 01:28 ata-HL-DT-ST_DVDRAM_GU90N_KMIE6HE5910 -> ../../sr0
lrwxrwxrwx 1 root root 9 Jun 10 01:36 ata-WDC_WD5000LPVX-08V0TT5_WD-WX91A3478408 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 10 01:28 ata-WDC_WD5000LPVX-08V0TT5_WD-WX91A3478408-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 10 01:28 ata-WDC_WD5000LPVX-08V0TT5_WD-WX91A3478408-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jun 10 01:36 dm-name-ubuntu--vg-root -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 10 01:36 dm-name-ubuntu--vg-swap_1 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 10 01:36 dm-uuid-LVM-xfB7uf72DyahCXK0th3h14k8F5DYl58q7PggO3sX5kitf2gPhRpMoKAByUKEhjUV -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 10 01:36 dm-uuid-LVM-xfB7uf72DyahCXK0th3h14k8F5DYl58qdCIxwPVN52DZBQoDpgSZoSRVEnmNy0tu -> ../../dm-1
lrwxrwxrwx 1 root root 9 Jun 10 01:36 usb-Kingston_DataTraveler_2.0_60A44C4138CCFF51296927D8-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jun 10 01:34 usb-Kingston_DataTraveler_2.0_60A44C4138CCFF51296927D8-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 Jun 10 01:28 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root 9 Jun 10 01:36 wwn-0x50014ee6af3bd1c9 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 10 01:28 wwn-0x50014ee6af3bd1c9-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 10 01:28 wwn-0x50014ee6af3bd1c9-part3 -> ../../sda3

========================= "ls -R /dev/mapper/" output: =========================

/dev/mapper:
control
ubuntu--vg-root
ubuntu--vg-swap_1

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

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/mapper/ubuntu--vg-root /media/ubuntu/5b74c13e-7a27-43ee-ab79-3c8e649b05b1 ext4 (rw,nosuid,nodev,uhelper=udisks2)
/dev/sda1 /boot ext4 (rw)
/dev/sda1 /media/ubuntu/shenglingg ext4 (rw,nosuid,nodev,uhelper=udisks2)
/dev/sdb1 /cdrom vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)


================================ sdb1/menu.lst: ================================

--------------------------------------------------------------------------------
color black/cyan yellow/cyan
timeout 10

#graphicsmode 0x6A
graphicsmode -1 640 480:800 24:32 || graphicsmode -1
## Menu AutoNumber
write 0x8274 0x2001

#graphicsmode -1 800:640 -1 24:32 || graphicsmode -1
#font /unifont.hex.gz


#clear mappings and set root in case we return from bootmgr
map --unmap=0:0xff
map --unhook
map --rehook
ls /usbdrive.tag > nul || find --set-root --devices=hf /usbdrive.tag > nul
ls /default > nul && default /default



title Windows NT6 (Vista/7 and above) Setup
map --unhook
map --unmap=0:0xff && map --rehook
savedefault +1
ls /shifthd.bat > nul || find --set-root --devices=hf /shifthd.bat
/shifthd.bat
if "%RDSK%"=="" pause Fatal error while swapping hard disk order, cannot continue! && configfile /menu.lst
root (hd%RDSK%,0)
chainloader /BOOTMGR

title Second part/continue NT6 Setup (Boot first internal disk)
map --unhook
map --unmap=0:0xff && map --rehook
savedefault
ls /shifthd.bat > nul || find --set-root --devices=hf /shifthd.bat
/shifthd.bat
if "%RDSK%"=="" pause Fatal error while swapping hard disk order, cannot continue! && configfile /menu.lst
pause --wait=1 Booting MBR on hd0 ...
chainloader (hd0)+1

title ubuntu-12.04.5-alternate-amd64 from partition 0
map --unmap=0:0xff
map --unhook && map --rehook
cat --hex --locate=PoLPu@ (md)0x3D0+0x130 > nul && echo Cannot continue if PLoP is active, please start this entry without loading PLoP first && echo && pause Press any key to return to the main menu && configfile /menu.lst
set /a dev=*0x8280&0xff
root (%dev%,0)
set ISO=/ISO/ubuntu-12_04_5-alternate-amd64.iso
ls %ISO% > nul || find --set-root --devices=hf /usbdrive.tag|| echo Error! Could not find usbdrive.tag && echo && pause Press any key to return to the main menu && configfile /menu.lst
ls %ISO% > nul || find --set-root --devices=hf %ISO% || echo Error! Could not find %ISO% && echo && pause Press any key to return to the main menu && configfile /menu.lst
map %ISO% (0xff) || map --heads=0 --sectors-per-track=0 %ISO% (0xff) || echo FATAL ERROR mapping %ISO%, please check if file is present and defragmented && pause Press any key to return to main menu && configfile /menu.lst
#http://reboot.pro/topic/9916-grub4dos-isohybrided/page-2#entry88531
#http://www.rmprepusb.com/tutorials/tails
set /a dev=*0x82a0&0xff
debug 1
parttype (%dev%,3) | set check=
debug off
set check=%check:~-5,4%
if "%check%"=="0x00" partnew (%dev%,3) 0 0 0 && partnew (%dev%,3) 0x00 %ISO%
if not "%check%"=="0x00" echo WARNING: PARTITION TABLE 4 IN BIOS DEVICE %dev% IS ALREADY IN USE! && echo && echo To prevent possible data loss will not continue further && pause && configfile /menu.lst
map --rehook
root (0xff)
chainloader (0xff)
--------------------------------------------------------------------------------

=========================== 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.efi file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --
initrd /casper/initrd.lz
}
menuentry "Install Ubuntu" {
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash --
initrd /casper/initrd.lz
}
menuentry "OEM install (for manufacturers)" {
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity quiet splash oem-config/enable=true --
initrd /casper/initrd.lz
}
menuentry "Check disc for defects" {
set gfxpayload=keep
linux /casper/vmlinuz.efi boot=casper integrity-check quiet splash --
initrd /casper/initrd.lz
}
--------------------------------------------------------------------------------

========================= sdb1/syslinux/syslinux.cfg: ==========================

--------------------------------------------------------------------------------
# D-I config version 2.0
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
ui gfxboot bootlogo
--------------------------------------------------------------------------------

========================== sdb1/grldr embedded menu: ===========================

--------------------------------------------------------------------------------
pxe detect
configfile
default 0
timeout 1

title find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst
errorcheck off
configfile /boot/grub/menu.lst
configfile /grub/menu.lst
if "%@root%"=="(ud)" && calc *0x82A0=*0x82b9&0xff
if "%@root:~1,1%"=="f" && find --set-root --devices=f /menu.lst && configfile /menu.lst
find --set-root --ignore-floppies --ignore-cd /menu.lst && configfile /menu.lst
find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst
find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst
errorcheck on
commandline

title commandline
commandline

title reboot
reboot

title halt
halt


--------------------------------------------------------------------------------

============== sdb1: Version of COM32(R) files used by Syslinux: ===============

syslinux/chain.c32 : COM32R module (v4.xx)
syslinux/gfxboot.c32 : COM32R module (v4.xx)
syslinux/vesamenu.c32 : COM32R module (v4.xx)

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on ubuntu-vg-root


Unknown BootLoader on ubuntu-vg-swap_1



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

File descriptor 9 (/proc/5075/mounts) leaked on lvs invocation. Parent PID 13651: bash
File descriptor 63 (pipe:[51473]) leaked on lvs invocation. Parent PID 13651: bash
File descriptor 9 (/proc/5075/mounts) leaked on lvchange invocation. Parent PID 14344: bash
File descriptor 63 (pipe:[51473]) leaked on lvchange invocation. Parent PID 14344: bash
skip_dev_dir: Couldn't split up device name ubuntu-vg-root
Volume group "ubuntu-vg-root" not found
Skipping volume group ubuntu-vg-root
hexdump: /dev/mapper/ubuntu-vg-root: No such file or directory
hexdump: /dev/mapper/ubuntu-vg-root: No such file or directory
File descriptor 9 (/proc/5075/mounts) leaked on lvchange invocation. Parent PID 14344: bash
File descriptor 63 (pipe:[51473]) leaked on lvchange invocation. Parent PID 14344: bash
skip_dev_dir: Couldn't split up device name ubuntu-vg-swap_1
Volume group "ubuntu-vg-swap_1" not found
Skipping volume group ubuntu-vg-swap_1
hexdump: /dev/mapper/ubuntu-vg-swap_1: No such file or directory
hexdump: /dev/mapper/ubuntu-vg-swap_1: No such file or directory
mdadm: No arrays found in config file or automatically

ADDITIONAL INFORMATION :
=================== log of boot-repair 2015-06-10__01h35 ===================
boot-repair version : 4ppa33
boot-sav version : 4ppa33
glade2script version : 3.2.2~ppa47~saucy
boot-sav-extra version : 4ppa33
BLKID BEFORE LVM ACTIVATION:
/dev/loop0: TYPE="squashfs"
/dev/sda1: LABEL="shenglingg" UUID="6618b02e-c335-4d11-ae6a-330f41c8142d" TYPE="ext4"
/dev/sda3: UUID="1k2z0q-8fky-rX0V-Fkdg-LsuB-66OM-MlPClw" TYPE="LVM2_member"
/dev/mapper/ubuntu--vg-root: UUID="5b74c13e-7a27-43ee-ab79-3c8e649b05b1" TYPE="ext4"
/dev/mapper/ubuntu--vg-swap_1: UUID="4fde3ba2-d4b7-4b40-98d3-6c3ac863dbb5" TYPE="swap"
/dev/sdb1: LABEL="WINSETUP" TYPE="vfat"
MODPROBE
VGSCAN
File descriptor 9 (/proc/5075/mounts) leaked on vgscan invocation. Parent PID 5087: /bin/bash
Reading all physical volumes. This may take a while...
Found volume group "ubuntu-vg" using metadata type lvm2
VGCHANGE
File descriptor 9 (/proc/5075/mounts) leaked on vgchange invocation. Parent PID 5087: /bin/bash
2 logical volume(s) in volume group "ubuntu-vg" now active
File descriptor 9 (/proc/5075/mounts) leaked on lvscan invocation. Parent PID 5087: /bin/bash
LVSCAN:
ACTIVE '/dev/ubuntu-vg/root' [457.19 GiB] inherit
ACTIVE '/dev/ubuntu-vg/swap_1' [7.82 GiB] inherit
Is there RAID on this computer? yes

BLKID BEFORE RAID ACTIVATION:
/dev/loop0: TYPE="squashfs"
/dev/sda1: LABEL="shenglingg" UUID="6618b02e-c335-4d11-ae6a-330f41c8142d" TYPE="ext4"
/dev/sda3: UUID="1k2z0q-8fky-rX0V-Fkdg-LsuB-66OM-MlPClw" TYPE="LVM2_member"
/dev/mapper/ubuntu--vg-root: UUID="5b74c13e-7a27-43ee-ab79-3c8e649b05b1" TYPE="ext4"
/dev/mapper/ubuntu--vg-swap_1: UUID="4fde3ba2-d4b7-4b40-98d3-6c3ac863dbb5" TYPE="swap"
/dev/sdb1: LABEL="WINSETUP" TYPE="vfat"
dmraid -si -c: no raid disks
No DMRAID disk.
RAID detected. You may want to retry after installing the [mdadm] packages. (sudo apt-get install -y --force-yes mdadm --no-install-recommends)
[dmraid] packages may interfere with MDraid. Do you want to remove them? yes
apt-get remove -y --force-yes dmraid
The following packages will be REMOVED:
dmraid
0 upgraded, 0 newly installed, 1 to remove and 610 not upgraded.
(Reading database ... 169420 files and directories currently installed.)
Removing dmraid (1.0.0.rc16-4.2ubuntu3) ...
update-initramfs is disabled since running on read-only media
Processing triggers for man-db (2.6.7.1-1) ...
Scanning MDraid Partitions
mdadm: No arrays found in config file or automatically
mdadm --detail --scan:
Warning: no DMRAID nor MD_ARRAY.
boot-repair is executed in live-session (Ubuntu 14.04 LTS, trusty, Ubuntu, x86_64)
CPU op-mode(s): 32-bit, 64-bit
BOOT_IMAGE=/casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash --
ls: cannot access /home/usr/.config: No such file or directory
Set sda as corresponding disk of mapper/ubuntu--vg-root

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

Disk /dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition table

=================== os-prober:
/dev/mapper/ubuntu--vg-root:Ubuntu 14.04 LTS (14.04):Ubuntu:linux

=================== blkid:
/dev/loop0: TYPE="squashfs"
/dev/sda1: LABEL="shenglingg" UUID="6618b02e-c335-4d11-ae6a-330f41c8142d" TYPE="ext4"
/dev/sda3: UUID="1k2z0q-8fky-rX0V-Fkdg-LsuB-66OM-MlPClw" TYPE="LVM2_member"
/dev/mapper/ubuntu--vg-root: UUID="5b74c13e-7a27-43ee-ab79-3c8e649b05b1" TYPE="ext4"
/dev/mapper/ubuntu--vg-swap_1: UUID="4fde3ba2-d4b7-4b40-98d3-6c3ac863dbb5" TYPE="swap"
/dev/sdb1: LABEL="WINSETUP" TYPE="vfat"

Set sda as corresponding disk of mapper/ubuntu--vg-root

1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.


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


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


=================== /media/ubuntu/5b74c13e-7a27-43ee-ab79-3c8e649b05b1/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Apr 17 2014 grub.d
total 76
-rwxr-xr-x 1 root root 9424 Apr 11 2014 00_header
-rwxr-xr-x 1 root root 6058 Apr 10 2014 05_debian_theme
-rwxr-xr-x 1 root root 11608 Apr 11 2014 10_linux
-rwxr-xr-x 1 root root 10412 Apr 11 2014 20_linux_xen
-rwxr-xr-x 1 root root 1992 Mar 12 2014 20_memtest86+
-rwxr-xr-x 1 root root 11692 Apr 11 2014 30_os-prober
-rwxr-xr-x 1 root root 1416 Apr 11 2014 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Apr 11 2014 40_custom
-rwxr-xr-x 1 root root 216 Apr 11 2014 41_custom
-rw-r--r-- 1 root root 483 Apr 11 2014 README




=================== /media/ubuntu/5b74c13e-7a27-43ee-ab79-3c8e649b05b1/etc/default/grub :

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"



/boot/efi detected in the fstab of mapper/ubuntu--vg-root: UUID=8ABE-A8E3 ()
/boot detected in the fstab of mapper/ubuntu--vg-root: UUID=57c80709-688c-4757-82fc-915c9bc6f436 ()

=================== efibootmgr -v
BootCurrent: 000D
Timeout: 0 seconds
BootOrder: 0000,0001,0002,0003,0011,000D,000A,0009,0007,0008,000B,000C,000E
Boot0000 Setup
Boot0001 Boot Menu
Boot0002 Diagnostic Splash Screen
Boot0003 Lenovo Diagnostics
Boot0004 Startup Interrupt Menu
Boot0005 ME Configuration Menu
Boot0006 Rescue and Recovery
Boot0007* USB CD 030a2400d23878bc820f604d8316c068ee79d25b86701296aa5a7848b66cd49dd3ba6a55
Boot0008* USB FDD 030a2400d23878bc820f604d8316c068ee79d25b6ff015a28830b543a8b8641009461e49
Boot0009* ATAPI CD0 030a2500d23878bc820f604d8316c068ee79d25baea2090adfde214e8b3a5e471856a35402
Boot000A* ATA HDD0 030a2500d23878bc820f604d8316c068ee79d25b91af625956449f41a7b91f4f892ab0f600
Boot000B* ATA HDD1 030a2500d23878bc820f604d8316c068ee79d25b91af625956449f41a7b91f4f892ab0f601
Boot000C* ATA HDD2 030a2500d23878bc820f604d8316c068ee79d25b91af625956449f41a7b91f4f892ab0f602
Boot000D* USB HDD 030a2400d23878bc820f604d8316c068ee79d25b33e821aaaf33bc4789bd419f88c50803
Boot000E* PCI LAN 030a2400d23878bc820f604d8316c068ee79d25b78a84aaf2b2afc4ea79cf5cc8f3d3803
Boot000F* IDER BOOT CDROM ACPI(a0341d0,0)PCI(16,2)ATAPI(0,1,0)
Boot0010* IDER BOOT Floppy ACPI(a0341d0,0)PCI(16,2)ATAPI(0,0,0)
Boot0011* ubuntu HD(1,800,100000,bc16d669-2f95-4758-be1a-200144687aa6)File(EFIubuntushimx64.efi)

=================== UEFI/Legacy mode:
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot enabled.


=================== PARTITIONS & DISKS:
sda1 : sda, maybesepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, /media/ubuntu/shenglingg.
mapper/ubuntu--vg-root : sda, not-sepboot, grubenv-ok grub2, signed grub-efi , update-grub, 64, with-boot, is-os, not--efi--part, fstab-has-bad-boot, fstab-has-bad-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, apt-get, grub-install, with--usr, fstab-without-usr, not-sep-usr, standard, not-far, /media/ubuntu/5b74c13e-7a27-43ee-ab79-3c8e649b05b1.

sda : GPT, no-BIOS_boot, has-no-EFIpart, not-usb, has-os, 2048 sectors * 512 bytes


=================== parted -l:

Model: ATA WDC WD5000LPVX-0 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number Start End Size File system Name Flags
1 1049kB 794MB 793MB ext4
3 794MB 500GB 499GB lvm


Model: Kingston DataTraveler 2.0 (scsi)
Disk /dev/sdb: 7747MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 8258kB 7747MB 7739MB primary fat32 boot, lba


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/ubuntu--vg-root: 491GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 491GB 491GB primary


Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/ubuntu--vg-swap_1: 8397MB
Sector size (logical/physical): 512B/4096B
Partition Table: loop

Number Start End Size File system Flags
1 0.00B 8397MB 8397MB linux-swap(v1)

=================== parted -lm:

BYT;
/dev/sda:500GB:scsi:512:4096:gpt:ATA WDC WD5000LPVX-0;
1:1049kB:794MB:793MB:ext4::;
3:794MB:500GB:499GB:::lvm;

BYT;
/dev/sdb:7747MB:scsi:512:512:msdos:Kingston DataTraveler 2.0;
1:8258kB:7747MB:7739MB:fat32::boot, lba;

BYT;
/dev/mapper/ubuntu--vg-root:491GB:dm:512:4096:msdos:Linux device-mapper (linear);
1:1049kB:491GB:491GB:::;

BYT;
/dev/mapper/ubuntu--vg-swap_1:8397MB:dm:512:4096:loop:Linux device-mapper (linear);
1:0.00B:8397MB:8397MB:linux-swap(v1)::;

=================== lsblk:
KNAME TYPE FSTYPE SIZE LABEL MODEL UUID
sda disk 465.8G WDC WD50
sda1 part ext4 756M shenglingg
6618b02e-c335-4d11-ae6a-330f41c8142d
sda3 part LVM2_mem 465G 1k2z0q-8fky-rX0V-Fkdg-LsuB-66OM-MlPClw
dm-0 lvm ext4 457.2G 5b74c13e-7a27-43ee-ab79-3c8e649b05b1
dm-1 lvm swap 7.8G 4fde3ba2-d4b7-4b40-98d3-6c3ac863dbb5
sdb disk 7.2G DataTrav
sdb1 part vfat 7.2G WINSETUP
sr0 rom 1024M DVDRAM G
loop0 loop squashfs 922M

KNAME ROTA RO RM STATE MOUNTPOINT
sda 1 0 0 running
sda1 1 0 0 /media/ubuntu/shenglingg
sda3 1 0 0
dm-0 1 0 0 running /media/ubuntu/5b74c13e-7a27-43ee-ab79-3c8e649b05b1
dm-1 1 0 0 running [SWAP]
sdb 1 0 1 running
sdb1 1 0 1 /cdrom
sr0 1 0 1 running
loop0 1 1 0 /rofs


=================== mount:
/cow on / type overlayfs (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
/dev/sdb1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 on /rofs type squashfs (ro,noatime)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=ubuntu)
/dev/sda1 on /media/ubuntu/shenglingg type ext4 (rw,nosuid,nodev,uhelper=udisks2)
/dev/mapper/ubuntu--vg-root on /media/ubuntu/5b74c13e-7a27-43ee-ab79-3c8e649b05b1 type ext4 (rw,nosuid,nodev,uhelper=udisks2)


=================== ls:
/sys/block/dm-0 (filtered): alignment_offset bdi capability dev discard_alignment dm ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/dm-1 (filtered): alignment_offset bdi capability dev discard_alignment dm ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/sda (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda3 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered): autofs block bsg btrfs-control bus cdrom char console core cpu cpu_dma_latency cuse disk dm-0 dm-1 dri ecryptfs fb0 fd full fuse hidraw0 hpet input kmsg kvm log mapper mcelog mei mem net network_latency network_throughput null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda3 sdb sdb1 sg0 sg1 sg2 shm snapshot snd sr0 stderr stdin stdout ubuntu-vg uhid uinput urandom v4l vga_arbiter vhost-net video0 watchdog watchdog0 zero
ls /dev/mapper: control ubuntu--vg-root ubuntu--vg-swap_1

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

Disk /dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition table

=================== df -Th:

Filesystem Type Size Used Avail Use% Mounted on
/cow overlayfs 3.9G 123M 3.7G 4% /
udev devtmpfs 3.8G 12K 3.8G 1% /dev
tmpfs tmpfs 781M 1.2M 780M 1% /run
/dev/sdb1 vfat 7.2G 6.1G 1.2G 85% /cdrom
/dev/loop0 squashfs 923M 923M 0 100% /rofs
none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup
tmpfs tmpfs 3.9G 1.2M 3.9G 1% /tmp
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 3.9G 80K 3.9G 1% /run/shm
none tmpfs 100M 76K 100M 1% /run/user
/dev/sda1 ext4 729M 776K 675M 1% /media/ubuntu/shenglingg
/dev/mapper/ubuntu--vg-root ext4 450G 208G 220G 49% /media/ubuntu/5b74c13e-7a27-43ee-ab79-3c8e649b05b1

=================== fdisk -l:

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
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xb30f2ade

Device Boot Start End Blocks Id System
/dev/sda1 1 976773167 488386583+ ee GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/mapper/ubuntu--vg-root: 490.9 GB, 490901340160 bytes
6 heads, 35 sectors/track, 4565674 cylinders, total 958791680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xaeb44c75

Device Boot Start End Blocks Id System
/dev/mapper/ubuntu--vg-root1 2048 958791679 479394816 83 Linux

Disk /dev/mapper/ubuntu--vg-swap_1: 8396 MB, 8396996608 bytes
255 heads, 63 sectors/track, 1020 cylinders, total 16400384 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk /dev/sdb: 7747 MB, 7747397632 bytes
230 heads, 44 sectors/track, 1495 cylinders, total 15131636 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004cba7

Device Boot Start End Blocks Id System
/dev/sdb1 * 16128 15131635 7557754 c W95 FAT32 (LBA)


(debug) reinstall grub2 place-in-MBR no-BIOS_boot (mapper/ubuntu--vg-root)


=================== Suggested repair
The default repair of the Boot-Repair utility would purge (in order to fix packages enable-raid enable-lvm) and reinstall the grub2 of mapper/ubuntu--vg-root into the MBR of sda.
Additional repair would be performed: unhide-bootmenu-10s


=================== Blockers in case of suggested repair
GPT detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again.


=================== Advice in case of suggested repair
Warning: continuing without internet would leave your system unbootable. Please connect internet.
The boot of your PC is in EFI mode, but no EFI partition was detected. You may want to retry after creating a EFI partition (FAT32, 100MB~250MB, start of the disk, boot flag).
Do you want to continue?


=================== User settings
The settings chosen by the user will not act on the boot.



----------------------------------------------------------------------------------------------------------------------------------------------------------------------
===============================================
boot repair: also cannot success


页首
 用户资料  
 
2 楼 
 文章标题 : Re: Ubuntu grub-install fail
帖子发表于 : 2015-06-10 12:01 

注册: 2009-08-04 16:33
帖子: 16883
送出感谢: 21
接收感谢: 1826
引用:
grub-install /dev/sda

1. 這個指令 用於 Legacy Bios 開機韌體
2. 參閱
http://apexu.com/apexu/tw/modules/publi ... p?itemid=1
3. 如果不是 root 身份 需要加 sudo
引用:
apt-get install --reinstall grub-efi-amd64

4. 這個指令 用於 UEFI 開機韌體
5. http://apexu.com/apexu/tw/modules/publi ... ?itemid=47
6. 如果不是 root 身份 需要加 sudo
引用:
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.

7. 猜測 你的開機韌體是 UEFI enabled
應該使用
apt-get install --reinstall grub-efi-amd64


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译