LINUX.ORG.RU

История изменений

Исправление saufesma, (текущая версия) :

Well, I do not know what to say of how much you did, I am speechless. Lot of thanks of course, so what I do today

user@debian:~$ cd /run/live/medium/pool/main/e/efibootmgr
user@debian:/run/live/medium/pool/main/e/efibootmgr$ ls
efibootmgr_15-1_amd64.deb
user@debian:/run/live/medium/pool/main/e/efibootmgr$ dpkg -i efibootmgr_15-1_amd64.deb
dpkg: error: requested operation requires superuser privilege
user@debian:/run/live/medium/pool/main/e/efibootmgr$ sudo dpkg -i efibootmgr_15-1_amd64.deb

user@debian:/run/live/medium/pool/main/e/efibootmgr$ cd /
user@debian:/$ sudo mount /dev/sda2 /mnt
user@debian:/$ sudo mkdir -p /mnt/boot/efi
user@debian:/$ sudo mount /dev/sda1 /mnt/boot/efi
user@debian:/$ sudo ls /mnt/boot/efi             
EFI
user@debian:/$ sudo ls /mnt/boot/efi/EFI
boot  Debian
user@debian:/$ sudo ls /mnt/boot/efi/EFI/boot
user@debian:/$ sudo ls /mnt/boot/efi/EFI/Debian
BOOTX64.CSV  fbx64.efi  grub.cfg  grubx64.efi  mmx64.efi  shimx64.efi
user@debian:/$ cd /mnt/boot/efi/EFI/Debian     
user@debian:/mnt/boot/efi/EFI/Debian$ ls
BOOTX64.CSV  fbx64.efi  grub.cfg  grubx64.efi  mmx64.efi  shimx64.efi
user@debian:/mnt/boot/efi/EFI/Debian$ cd /
user@debian:/$ sudo mkdir /mnt/boot/efi/EFI/BOOT
mkdir: cannot create directory ‘/mnt/boot/efi/EFI/BOOT’: File exists
user@debian:/$ sudo ls /mnt/boot/efi/EFI   
boot  Debian
user@debian:/$ cd /mnt/boot/efi/EFI/Debian
user@debian:/mnt/boot/efi/EFI/Debian$ ls
BOOTX64.CSV  fbx64.efi  grub.cfg  grubx64.efi  mmx64.efi  shimx64.efi
user@debian:/mnt/boot/efi/EFI/Debian$ cp grubx64.efi /mnt/boot/efi/EFI/BOOT
cp: cannot create regular file '/mnt/boot/efi/EFI/BOOT/grubx64.efi': Permission denied
user@debian:/mnt/boot/efi/EFI/Debian$ sudo cp grubx64.efi /mnt/boot/efi/EFI/BOOT
user@debian:/mnt/boot/efi/EFI/Debian$ sudo cp grub.cfg /mnt/boot/efi/EFI/BOOT   
user@debian:/mnt/boot/efi/EFI/Debian$ sudo cd /mnt/boot/efi/EFI/BOOT         
sudo: cd: command not found
user@debian:/mnt/boot/efi/EFI/Debian$ cd /mnt/boot/efi/EFI/BOOT     
user@debian:/mnt/boot/efi/EFI/BOOT$ ls
grub.cfg  grubx64.efi
user@debian:/mnt/boot/efi/EFI/BOOT$ rename --no-act --verbose bootx64.efi grubx64.efi
bash: rename: command not found
user@debian:/mnt/boot/efi/EFI/BOOT$ sudo rename --no-act --verbose bootx64.efi grubx64.efi
sudo: rename: command not found
user@debian:/mnt/boot/efi/EFI/BOOT$ sudo mv -v grubx64.efi bootx64.efi                  renamed 'grubx64.efi' -> 'bootx64.efi'
user@debian:/mnt/boot/efi/EFI/BOOT$ ls
bootx64.efi  grub.cfg
user@debian:/mnt/boot/efi/EFI/BOOT$ sudo efibootmgr -c -l "\EFI\boot\bootx64.efi" -L "Linux Debian"
BootCurrent: 000D
Timeout: 2 seconds
BootOrder: 0006,0000,0001,0002,0009,000A,000B,000C,000D,000E
Boot0000  BIOS Setup       
Boot0001  Boot Menu
Boot0002  Diagnostic Screen
Boot0003  Recovery and Utility
Boot0004  Diagnostic Program
Boot0005  Diagnostic Progrogram ROM
Boot000A* Drive5 HDD:
Boot000B* CD/DVD Drive:
Boot000C* NETWORK:
Boot000D* USB HDD:
Boot000E* USB CD/DVD:
Boot000F* IDER BOOT CDROM
Boot0006* Linux Debian
user@debian:/mnt/boot/efi/EFI/BOOT$ 

prepair to restart. Let's see.

before restart

user@debian:/mnt/boot/efi/EFI/BOOT$ sudo efibootmgr -v
BootCurrent: 000D
Timeout: 2 seconds
BootOrder: 0006,0000,0001,0002,0009,000A,000B,000C,000D,000E
Boot0000  BIOS Setup            FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0001  Boot Menu     FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0002  Diagnostic Screen     FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0003  Recovery and Utility  FvFile(0b150fda-3bdd-4406-9859-448177476993)
Boot0004  Diagnostic Program    FvFile(29f85733-2b1a-4821-8f61-2614778c0c73)
Boot0005  Diagnostic Progrogram ROM     VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,c0f527e7c05f4d498df59dc81ac2cfdd00)
Boot0006* Linux Debian  HD(1,GPT,c8f38738-f71b-4ceb-9454-f689079a39b3,0x1000,0x96000)/File(\EFI\boot\bootx64.efi)
Boot000A* Drive5 HDD:   VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f605)
Boot000B* CD/DVD Drive: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,23e6a6e08bae6940adb9a7b5c5f00628)
Boot000C* NETWORK:      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot000D* USB HDD:      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot000E* USB CD/DVD:   VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,d630a9056829ce41861e8c380ff2225a)
Boot000F* IDER BOOT CDROM       PciRoot(0x0)/Pci(0x16,0x2)/Ata(0,1,0)

Исходная версия saufesma, :

Well, I do not know what to say of how much you did, I am speechless. Lot of thanks of course, so what I do today

user@debian:~$ cd /run/live/medium/pool/main/e/efibootmgr
user@debian:/run/live/medium/pool/main/e/efibootmgr$ ls
efibootmgr_15-1_amd64.deb
user@debian:/run/live/medium/pool/main/e/efibootmgr$ dpkg -i efibootmgr_15-1_amd64.deb
dpkg: error: requested operation requires superuser privilege
user@debian:/run/live/medium/pool/main/e/efibootmgr$ sudo dpkg -i efibootmgr_15-1_amd64.deb

user@debian:/run/live/medium/pool/main/e/efibootmgr$ cd /
user@debian:/$ sudo mount /dev/sda2 /mnt
user@debian:/$ sudo mkdir -p /mnt/boot/efi
user@debian:/$ sudo mount /dev/sda1 /mnt/boot/efi
user@debian:/$ sudo ls /mnt/boot/efi             
EFI
user@debian:/$ sudo ls /mnt/boot/efi/EFI
boot  Debian
user@debian:/$ sudo ls /mnt/boot/efi/EFI/boot
user@debian:/$ sudo ls /mnt/boot/efi/EFI/Debian
BOOTX64.CSV  fbx64.efi  grub.cfg  grubx64.efi  mmx64.efi  shimx64.efi
user@debian:/$ cd /mnt/boot/efi/EFI/Debian     
user@debian:/mnt/boot/efi/EFI/Debian$ ls
BOOTX64.CSV  fbx64.efi  grub.cfg  grubx64.efi  mmx64.efi  shimx64.efi
user@debian:/mnt/boot/efi/EFI/Debian$ cd /
user@debian:/$ sudo mkdir /mnt/boot/efi/EFI/BOOT
mkdir: cannot create directory ‘/mnt/boot/efi/EFI/BOOT’: File exists
user@debian:/$ sudo ls /mnt/boot/efi/EFI   
boot  Debian
user@debian:/$ cd /mnt/boot/efi/EFI/Debian
user@debian:/mnt/boot/efi/EFI/Debian$ ls
BOOTX64.CSV  fbx64.efi  grub.cfg  grubx64.efi  mmx64.efi  shimx64.efi
user@debian:/mnt/boot/efi/EFI/Debian$ cp grubx64.efi /mnt/boot/efi/EFI/BOOT
cp: cannot create regular file '/mnt/boot/efi/EFI/BOOT/grubx64.efi': Permission denied
user@debian:/mnt/boot/efi/EFI/Debian$ sudo cp grubx64.efi /mnt/boot/efi/EFI/BOOT
user@debian:/mnt/boot/efi/EFI/Debian$ sudo cp grub.cfg /mnt/boot/efi/EFI/BOOT   
user@debian:/mnt/boot/efi/EFI/Debian$ sudo cd /mnt/boot/efi/EFI/BOOT         
sudo: cd: command not found
user@debian:/mnt/boot/efi/EFI/Debian$ cd /mnt/boot/efi/EFI/BOOT     
user@debian:/mnt/boot/efi/EFI/BOOT$ ls
grub.cfg  grubx64.efi
user@debian:/mnt/boot/efi/EFI/BOOT$ rename --no-act --verbose bootx64.efi grubx64.efi
bash: rename: command not found
user@debian:/mnt/boot/efi/EFI/BOOT$ sudo rename --no-act --verbose bootx64.efi grubx64.efi
sudo: rename: command not found
user@debian:/mnt/boot/efi/EFI/BOOT$ sudo mv -v grubx64.efi bootx64.efi                  renamed 'grubx64.efi' -> 'bootx64.efi'
user@debian:/mnt/boot/efi/EFI/BOOT$ ls
bootx64.efi  grub.cfg
user@debian:/mnt/boot/efi/EFI/BOOT$ sudo efibootmgr -c -l "\EFI\boot\bootx64.efi" -L "Linux Debian"
BootCurrent: 000D
Timeout: 2 seconds
BootOrder: 0006,0000,0001,0002,0009,000A,000B,000C,000D,000E
Boot0000  BIOS Setup       
Boot0001  Boot Menu
Boot0002  Diagnostic Screen
Boot0003  Recovery and Utility
Boot0004  Diagnostic Program
Boot0005  Diagnostic Progrogram ROM
Boot000A* Drive5 HDD:
Boot000B* CD/DVD Drive:
Boot000C* NETWORK:
Boot000D* USB HDD:
Boot000E* USB CD/DVD:
Boot000F* IDER BOOT CDROM
Boot0006* Linux Debian
user@debian:/mnt/boot/efi/EFI/BOOT$ 

prepair to restart. Let's see.