外接硬盘装了Ubuntu,开机没引导选项

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
五级灵风
帖子: 12
注册时间: 2018-09-29 16:44
系统: Ubuntu18.04

外接硬盘装了Ubuntu,开机没引导选项

#1

帖子 五级灵风 » 2018-09-29 16:48

我在外接硬盘上装了Ubuntu18.04,重启开机直接进入win10。
以前我装双系统,出现这种问题,是进入试用Ubuntu系统,然后用boot-repaire工具修复的,。外接硬盘不懂
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 外接硬盘装了Ubuntu,开机没引导选项

#3

帖子 poloshiao » 2018-09-29 18:09

是进入试用Ubuntu系统
1. 登入 試用桌面 把下面指令 複製 貼進終端機 執行
1-1. sudo efibootmgr -v
1-2. sudo parted -l print
1-3. sudo ls -al /dev/disk/by-uuid/*
1-4. sudo ls -al /dev/disk/by-partuuid/*
把指令及結果全部直接 選取/複製/貼上來
不要摘錄 以免遺漏重要訊息
不要擷圖 方便回文直接引用你貼上來的資料 方便你閱讀

2. 依 1-2. 請說明你的 / 掛載在哪個分割區
五级灵风
帖子: 12
注册时间: 2018-09-29 16:44
系统: Ubuntu18.04

Re: 外接硬盘装了Ubuntu,开机没引导选项

#4

帖子 五级灵风 » 2018-09-29 21:11

(在装外接硬盘前,我的系统是双系统,一个win10,一个Ubuntu,我用MbrFix修复mbr,然后删除Ubuntu分区。弄好之后,在外接硬盘装Ubuntu,开机没出现引导)。所以问题在于,我之前双系统用MbrFix的操作。
五级灵风
帖子: 12
注册时间: 2018-09-29 16:44
系统: Ubuntu18.04

Re: 外接硬盘装了Ubuntu,开机没引导选项

#5

帖子 五级灵风 » 2018-09-29 22:10

sudo efibootmgr -v
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0001,0002
Boot0001* Hard Drive BBS(HD,,0x0)..GO..NO........o.S.T.1.0.0.0.L.M.0.3.5.-.1.R.K.1.7.2....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .C.W.0.B.A.J.B.8........BO..NO........a.T.O.S.H.I.B.A....................A.......................4..Gd-.;.A..MQ..L.2.0.1.8.0.5.3.1.0.2.0.3.8.6.F........BO..NO........c.T.e.c.l.a.s.t. .C.o.o.l.F.l.a.s.h. .1...0.0....................A.......................6..Gd-.;.A..MQ..L.F.5.A.1.8.2.6.C.8.4.0.7.0.A.E.D........BO
Boot0002* CD/DVD Drive BBS(CDROM,,0x0)..GO..NO........o.S.l.i.m.t.y.p.e.D.V.D. .A. . .D.A.8.A.E.S.H....................A...........................>..Gd-.;.A..MQ..L.5.3.8.0.1.A. .7.C.4.6.6.1.4.0.5.1.2.4.7........BO
Boot0003* UEFI: Teclast CoolFlash 1.00, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(1,MBR,0xfb7708d5,0x800,0x3c07800)..BO
sudo parted -l print
Model: ATA ST1000LM035-1RK1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 2097kB 151GB 151GB primary ntfs boot
2 151GB 1000GB 849GB extended lba
5 151GB 456GB 305GB logical ntfs
6 456GB 685GB 229GB logical ntfs
7 685GB 761GB 75.7GB logical ntfs
8 761GB 1000GB 239GB logical ntfs


Model: Teclast CoolFlash (scsi)
Disk /dev/sdb: 32.2GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 32.2GB 32.2GB primary fat32 boot, lba


Model: TOSHIBA External USB 3.0 (scsi)
Disk /dev/sdc: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
2 1049kB 10.1GB 10.1GB primary ext4
3 10.1GB 371GB 361GB extended
5 10.1GB 28.1GB 18.0GB logical linux-swap(v1)
6 28.1GB 29.1GB 999MB logical ext4
7 29.1GB 371GB 342GB logical ext4
1 371GB 1000GB 629GB primary ntfs boot
sudo ls -al /dev/disk/by-uuid/*
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-uuid/01B2D695A37DD993 -> ../../sda6
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-uuid/061ccb00-28b4-4f3e-a21e-0bfd50557bc6 -> ../../sdc5
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-uuid/50F05F98F05F82E0 -> ../../sda7
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-uuid/624E90434E901241 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-uuid/781C-2988 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-uuid/8CB8B430452544F8 -> ../../sda8
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-uuid/9df7a433-9281-4110-95b4-746347428ce0 -> ../../sdc7
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-uuid/BECC33F0CC33A197 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-uuid/CE830A025FD09DFB -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-uuid/c3bed9f4-7b02-42cc-929e-de8fc7afa0b2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-uuid/f11a9c6a-ea9c-4a06-b7f0-9cc7fcbc5b1f -> ../../sdc6
ubuntu@ubuntu:~$ sudo ls -al /dev/disk/by-partuuid/*
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-partuuid/8bfa36e9-01 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-partuuid/8bfa36e9-02 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-partuuid/8bfa36e9-05 -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-partuuid/8bfa36e9-06 -> ../../sda6
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-partuuid/8bfa36e9-07 -> ../../sda7
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-partuuid/8bfa36e9-08 -> ../../sda8
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-partuuid/bacb055e-01 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-partuuid/bacb055e-02 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-partuuid/bacb055e-03 -> ../../sdc3
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-partuuid/bacb055e-05 -> ../../sdc5
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-partuuid/bacb055e-06 -> ../../sdc6
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-partuuid/bacb055e-07 -> ../../sdc7
lrwxrwxrwx 1 root root 10 Sep 29 21:33 /dev/disk/by-partuuid/fb7708d5-01 -> ../../sdb1
/ / 掛載在 TOSHIBA External USB 3.0 (scsi),number 2 10.1G
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 外接硬盘装了Ubuntu,开机没引导选项

#6

帖子 poloshiao » 2018-09-29 23:19

sudo efibootmgr -v
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0001,0002
Boot0001* Hard Drive BBS(HD,,0x0)..GO..NO........o.S.T.1.0.0.0.L.M.0.3.5.-.1.R.K.1.7.2....................A...........................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .C.W.0.B.A.J.B.8........BO..NO........a.T.O.S.H.I.B.A....................A.......................4..Gd-.;.A..MQ..L.2.0.1.8.0.5.3.1.0.2.0.3.8.6.F........BO..NO........c.T.e.c.l.a.s.t. .C.o.o.l.F.l.a.s.h. .1...0.0....................A.......................6..Gd-.;.A..MQ..L.F.5.A.1.8.2.6.C.8.4.0.7.0.A.E.D........BO
Boot0002* CD/DVD Drive BBS(CDROM,,0x0)..GO..NO........o.S.l.i.m.t.y.p.e.D.V.D. .A. . .D.A.8.A.E.S.H....................A...........................>..Gd-.;.A..MQ..L.5.3.8.0.1.A. .7.C.4.6.6.1.4.0.5.1.2.4.7........BO
Boot0003* UEFI: Teclast CoolFlash 1.00, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(1,MBR,0xfb7708d5,0x800,0x3c07800)..BO
1. 你的 U 盤是在 UEFI 開機模式 下開機 ?
sudo parted -l print

Model: ATA ST1000LM035-1RK1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Model: Teclast CoolFlash (scsi)
Disk /dev/sdb: 32.2GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Model: TOSHIBA External USB 3.0 (scsi)
Disk /dev/sdc: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
2. UEFI 開機模式 開機硬盤 應該是 gpt 需要有 esp 分割區
但是 你的硬盤都是 msdos 又沒有 esp 分割區 ?

3. 請先確認一下 你的 Windows 10 / Ubuntu 18.04 到底是 UEFI 開機模式 下 安裝
還是 Legacy Bios 開機模式 下 安裝 ?
/ / 掛載在 TOSHIBA External USB 3.0 (scsi),number 2 10.1G
4. 某些品牌與型號的電腦 要從 USB 3.0 的外接硬盤 開機 可能還有一些問題
(請提供 電腦品牌及詳細型號)
五级灵风
帖子: 12
注册时间: 2018-09-29 16:44
系统: Ubuntu18.04

Re: 外接硬盘装了Ubuntu,开机没引导选项

#7

帖子 五级灵风 » 2018-09-30 8:15

安装不是efi安装的。try Ubuntu是efi启动usb的。要不我用usb模式再进入Ubuntu,运行一下指令?
华硕FL5900U
我前面也描述了问题应该在的地方,只是原理不懂,外接硬盘也不懂
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 外接硬盘装了Ubuntu,开机没引导选项

#8

帖子 poloshiao » 2018-09-30 8:37

要不我用usb模式再进入Ubuntu,运行一下指令?
1. 關鍵不是 usb 模式
關鍵在於開機模式 是 UEFI 還是 Legacy Bios (即 把 UEFI 關閉)

2. 給新手建議
Ubuntu 與 Windows 採取相同的開機模式 安裝
比較單純
五级灵风
帖子: 12
注册时间: 2018-09-29 16:44
系统: Ubuntu18.04

Re: 外接硬盘装了Ubuntu,开机没引导选项

#9

帖子 五级灵风 » 2018-10-05 8:59

谢谢你。
我首先将硬盘格式化为GPT。
UEFI启动usb的安装程序。
在UEFI模式下安装ubuntu。
把网上所谓的/boot分区改成EFI分区。
将此分区设为启动设备(下拉列表里i)。
之后就可以了。
回复