ubuntu16开机出现grub

18.04、16.04、14.04
回复
ubun_lover
帖子: 63
注册时间: 2017-04-28 19:08
系统: ubuntu16.04LTS
送出感谢: 1 次
接收感谢: 0

ubuntu16开机出现grub

#1

帖子 ubun_lover » 2017-05-09 18:57

ubuntu16.04开机出现grub>,显示error:failure reading sector 0xe0 from 'hd1'和error:failure reading sector 0x0 from 'hd1',set root和set prefix后能进入引导,但重启后还是grub,我的是gpt分区.
poloshiao
论坛版主
帖子: 18280
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1957 次

Re: ubuntu16开机出现grub

#2

帖子 poloshiao » 2017-05-09 19:07

开机出现 grub>
1. https://help.ubuntu.com/community/Grub2 ... ng#grub.3E

2. https://help.ubuntu.com/community/Grub2 ... #grub.3E-1
我的是gpt分区.
3. uefi 開機 還是 legacy bios 開機 ?
ubun_lover
帖子: 63
注册时间: 2017-04-28 19:08
系统: ubuntu16.04LTS
送出感谢: 1 次
接收感谢: 0

Re: ubuntu16开机出现grub

#3

帖子 ubun_lover » 2017-05-09 19:58

uefi
poloshiao
论坛版主
帖子: 18280
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1957 次

Re: ubuntu16开机出现grub

#4

帖子 poloshiao » 2017-05-09 20:44

uefi
使用 Ubuntu Live CD/DVD/USB 開機
1. 登入 試用桌面 把下面指令 複製 貼進終端機 執行
1-1. sudo efibootmgr -v
1-2. sudo parted -l print
1-3. 把結果全部直接 選取/複製/貼上來
不要摘錄 以免遺漏重要訊息
不要擷圖 方便回文直接引用你貼上來的資料 方便你閱讀
1-4. 請說明 安裝時 把 / 掛載在哪個分割區
ubun_lover
帖子: 63
注册时间: 2017-04-28 19:08
系统: ubuntu16.04LTS
送出感谢: 1 次
接收感谢: 0

Re: ubuntu16开机出现grub

#5

帖子 ubun_lover » 2017-05-09 20:51

我直接进入现在的系统操作可以吗,因为我在grub设置了root和prefix后可以进入系统
ubun_lover
帖子: 63
注册时间: 2017-04-28 19:08
系统: ubuntu16.04LTS
送出感谢: 1 次
接收感谢: 0

Re: ubuntu16开机出现grub

#6

帖子 ubun_lover » 2017-05-10 7:49

在/boot/grub找不到normal.mod,/boot/grub/i386-pc里面的不能用
poloshiao
论坛版主
帖子: 18280
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1957 次

Re: ubuntu16开机出现grub

#7

帖子 poloshiao » 2017-05-10 8:03

我直接进入现在的系统操作可以吗
1. 當然可以 (應該說 更好)
2. 如果可以进入现在的系统操作 請增加執行下述指令 (請使用複製/貼上 以免打錯字)
2-1. sudo cat /etc/fstab
2-2. sudo ls -al /dev/disk/by-uuid/*
2-3. sudo ls -al /dev/disk/by-partuuid/*
2-4. sudo cat /boot/efi/EFI/ubuntu/grub.cfg
2-5. sudo cat /boot/grub/grub.cfg | grep menuentry
把結果全部直接 選取/複製/貼上來
不要摘錄 以免遺漏重要訊息
不要擷圖 方便回文直接引用你貼上來的資料 方便你閱讀
ubun_lover
帖子: 63
注册时间: 2017-04-28 19:08
系统: ubuntu16.04LTS
送出感谢: 1 次
接收感谢: 0

Re: ubuntu16开机出现grub

#8

帖子 ubun_lover » 2017-05-10 12:34

2-1
# /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>
# / was on /dev/sda11 during installation
UUID=4704932d-b2bc-4902-bfd4-f77fbcc1ccbb / ext4 errors=remount-ro 0 1
# /home was on /dev/sda13 during installation
UUID=5bc7cf2a-900a-452e-af86-64ee7a5ee636 /home ext4 defaults 0 2
# swap was on /dev/sda12 during installation
UUID=03a6e3d9-c4a4-4739-812f-475b119bfd60 none swap sw 0 0


2-2
lrwxrwxrwx 1 root root 11 5月 10 12:13 /dev/disk/by-uuid/03a6e3d9-c4a4-4739-812f-475b119bfd60 -> ../../sda12
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-uuid/1654623F546221AB -> ../../sda5
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-uuid/2A1A9E861A9E4EA7 -> ../../sda7
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-uuid/44C48947C4893C64 -> ../../sda1
lrwxrwxrwx 1 root root 11 5月 10 12:13 /dev/disk/by-uuid/4704932d-b2bc-4902-bfd4-f77fbcc1ccbb -> ../../sda11
lrwxrwxrwx 1 root root 11 5月 10 12:13 /dev/disk/by-uuid/4E91-52E5 -> ../../sda10
lrwxrwxrwx 1 root root 11 5月 10 12:13 /dev/disk/by-uuid/5bc7cf2a-900a-452e-af86-64ee7a5ee636 -> ../../sda13
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-uuid/ACC65CCBC65C9802 -> ../../sda9
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-uuid/D217-1D00 -> ../../sda2
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-uuid/D2607139607124FF -> ../../sda6
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-uuid/D8FA82DBFA82B4F2 -> ../../sda8

2-3
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-partuuid/011b6ade-9f7a-410c-ad39-e1f7c46349ef -> ../../sda6
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-partuuid/3b41808d-b886-4521-af61-1a9c2b81894a -> ../../sda1
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-partuuid/3b790a1b-b2f5-4452-a878-00931a7882d9 -> ../../sda9
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-partuuid/5cdfcaae-6744-4aa5-8b92-0e93214dcc9a -> ../../sda3
lrwxrwxrwx 1 root root 11 5月 10 12:13 /dev/disk/by-partuuid/6ac45fb1-78b7-4d76-a1f2-935fd83f2c3f -> ../../sda11
lrwxrwxrwx 1 root root 11 5月 10 12:13 /dev/disk/by-partuuid/76a9127f-02e1-4eb4-bbb9-98db310b7a0b -> ../../sda12
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-partuuid/acd6cfa2-8c95-43a6-891c-e89b757769a2 -> ../../sda8
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-partuuid/cd61de86-4171-4a41-9223-48c6044d735d -> ../../sda7
lrwxrwxrwx 1 root root 11 5月 10 12:13 /dev/disk/by-partuuid/d0938831-00bb-4163-88e6-170b7e7dd7a1 -> ../../sda13
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-partuuid/d4c20fbd-e904-4df2-8bc0-34397f33ce91 -> ../../sda4
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-partuuid/e07c351b-d709-43fa-89a7-c740674914d6 -> ../../sda2
lrwxrwxrwx 1 root root 10 5月 10 12:13 /dev/disk/by-partuuid/e9218644-9538-4336-bc28-a728c24e7df0 -> ../../sda5
lrwxrwxrwx 1 root root 11 5月 10 12:13 /dev/disk/by-partuuid/ed03b28f-b0bd-4edd-4173-636c65706975 -> ../../sda10

2-4
cat: /boot/efi/EFI/ubuntu/grub.cfg: 没有那个文件或目录

2-5
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
menuentry_id_option=""
export menuentry_id_option
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-4704932d-b2bc-4902-bfd4-f77fbcc1ccbb' {
submenu 'Ubuntu 高级选项' $menuentry_id_option 'gnulinux-advanced-4704932d-b2bc-4902-bfd4-f77fbcc1ccbb' {
menuentry 'Ubuntu,Linux 4.8.0-49-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-49-generic-advanced-4704932d-b2bc-4902-bfd4-f77fbcc1ccbb' {
menuentry 'Ubuntu, with Linux 4.8.0-49-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-49-generic-init-upstart-4704932d-b2bc-4902-bfd4-f77fbcc1ccbb' {
menuentry 'Ubuntu, with Linux 4.8.0-49-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-49-generic-recovery-4704932d-b2bc-4902-bfd4-f77fbcc1ccbb' {
menuentry 'Ubuntu,Linux 4.8.0-36-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-36-generic-advanced-4704932d-b2bc-4902-bfd4-f77fbcc1ccbb' {
menuentry 'Ubuntu, with Linux 4.8.0-36-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-36-generic-init-upstart-4704932d-b2bc-4902-bfd4-f77fbcc1ccbb' {
menuentry 'Ubuntu, with Linux 4.8.0-36-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.8.0-36-generic-recovery-4704932d-b2bc-4902-bfd4-f77fbcc1ccbb' {
menuentry 'Ubuntu,Linux 4.4.0-77-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-77-generic-advanced-4704932d-b2bc-4902-bfd4-f77fbcc1ccbb' {
menuentry 'Ubuntu, with Linux 4.4.0-77-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-77-generic-init-upstart-4704932d-b2bc-4902-bfd4-f77fbcc1ccbb' {
menuentry 'Ubuntu, with Linux 4.4.0-77-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-77-generic-recovery-4704932d-b2bc-4902-bfd4-f77fbcc1ccbb' {
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-D217-1D00' {
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
poloshiao
论坛版主
帖子: 18280
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1957 次

Re: ubuntu16开机出现grub

#9

帖子 poloshiao » 2017-05-10 13:15

uefi
我的是gpt分区.
cat: /boot/efi/EFI/ubuntu/grub.cfg: 没有那个文件或目录
sudo cat /etc/fstab
1. 安裝時
沒有分割一個 esp 分割 FAT32 格式 掛載 /boot/efi
1-1. 參見
https://help.ubuntu.com/community/UEFI# ... _Partition
Creating an EFI System Partition
1-2. 暫時解決方法
可以參考
https://help.ubuntu.com/community/UEFI# ... _UEFI_mode
Converting Ubuntu into UEFI mode
1-2-1. 不過 需要一點點基礎 也需要一點點耐心

2. 新手 建議 全新安裝
2-1. 安裝方法 參閱
https://askubuntu.com/questions/221835/ ... -with-uefi
ubun_lover
帖子: 63
注册时间: 2017-04-28 19:08
系统: ubuntu16.04LTS
送出感谢: 1 次
接收感谢: 0

Re: ubuntu16开机出现grub

#10

帖子 ubun_lover » 2017-05-27 16:45

boot-repair.png
终端运行boot-repair出现这个,sda2是我的win10,sda11是ubuntu的根目录,sda13shiubuntu的/home目录
poloshiao
论坛版主
帖子: 18280
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1957 次

Re: ubuntu16开机出现grub

#11

帖子 poloshiao » 2017-05-27 20:57

终端运行 boot-repair
它會給你一份建議 告訴你 應該如何進行
https://help.ubuntu.com/community/Boot- ... oot-Repair
Recommended repair
Advanced options
回复

回到 “LTS 长支持版”