对不起,重复的问题,但我已经阅读了以下链接:
但是上面所有的链接都解决不了我的问题。
其实,问题是一样的,但意义是不同的。我想更改我的计算机上的磁盘引导顺序(哪个磁盘将首先启动、第二启动、第三启动)。像CD-ROM,->,硬盘,->,USB-驱动器).我可以使用BIOS设置来完成它,但是我想使用Ubuntu更改磁盘引导顺序。
当我在终端上输入sudo fdisk -l
时,我会得到以下结果。
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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
Disklabel type: gpt
Disk identifier: E7225B99-3850-4E61-8D35-D3D269A42F1A
Device Start End Sectors Size Type
/dev/sda1 2048 421529599 421527552 201G Microsoft basic data
/dev/sda2 421529600 840959999 419430400 200G Microsoft basic data
/dev/sda3 840960000 841881599 921600 450M Windows recovery environment
/dev/sda4 841881600 842086399 204800 100M EFI System
/dev/sda5 842086400 842119167 32768 16M Microsoft reserved
/dev/sda6 843057152 864028671 20971520 10G Microsoft basic data
/dev/sda7 864028672 1015023615 150994944 72G Linux filesystem
/dev/sda8 1015023616 1224738815 209715200 100G Microsoft basic data
/dev/sda9 1226835968 1436551167 209715200 100G Microsoft basic data
/dev/sda10 1438648320 1635380309 196731990 93.8G Microsoft basic data
/dev/sda11 1635381248 1710135295 74754048 35.7G Linux filesystem
/dev/sda12 1710135296 1953523711 243388416 116.1G Linux filesystem
Disk /dev/sdb: 14.9 GiB, 16005464064 bytes, 31260672 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
Disklabel type: dos
Disk identifier: 0x05fec185
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 31260671 31258624 14.9G c W95 FAT32 (LBA)
目前,我有两个磁盘--一个是内部HDD (1TB),另一个是外部USB驱动器(14.9GB)。
Linux中有命令吗?
发布于 2018-01-13 17:36:39
是的,有电喷:efibootmgr。
$ efibootmgr
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0044,004E,004F
Boot0000* ubuntu
Boot0044* UEFI OS
Boot004E* ubuntu
Boot004F* CD/DVD Drive
..。显示当前启动顺序。efibootmgr -v
(更多细节,包括GUID)列出它们:
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000
Boot0000* ubuntu HD(1,GPT,066aad32-119e-407c-af62-64ce08918c66,0x800,0x17800)/File(\EFI\ubuntu\shimx64.efi)
Boot0044* UEFI OS HD(1,GPT,066aad32-119e-407c-af62-64ce08918c66,0x800,0x17800)/File(\EFI\BOOT\BOOTX64.EFI)
Boot004E* ubuntu HD(1,GPT,066aad32-119e-407c-af62-64ce08918c66,0x800,0x17800)/File(\EFI\Ubuntu\grubx64.efi)
Boot004F* CD/DVD Drive BBS(CDROM,,0x0)..GO..NO........o.M.A.T.S.H.I.T.A.D.V.D.-.R.A.M. .U.J.8.G.6....................A...........................>..Gd-.;.A..MQ..L.0.H.2.9. . .7.7.7.6.7.4. . . . . . . . ........BO
-o
选项允许您更改引导顺序:
-o | --bootorder XXXX,YYYY,ZZZZ
Explicitly set BootOrder (hex). Any value from 0 to FFFF
is accepted so long as it corresponds to an existing
Boot#### variable, and zero padding is not required.
示例:
sudo efibootmgr -o 0
[sudo] password for rinzwind:
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000
Boot0000* ubuntu
Boot0044* UEFI OS
Boot004E* ubuntu
Boot004F* CD/DVD Drive
和
sudo efibootmgr -o 4F
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 004F
Boot0000* ubuntu
Boot0044* UEFI OS
Boot004E* ubuntu
Boot004F* CD/DVD Drive
一个小问题:并不是所有的bios都在正确地存储它,所以如果您的bios也有错误,它可能会重置为以前的;在这种情况下,您将需要每次重做命令。
https://askubuntu.com/questions/995559
复制相似问题