Доброго времени суток.
Вопрос такой:
Отвалился Grub на kubuntu 16.04 после редактирования разделов.
Пробовал из под установочного Kubuntu
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/loop0: 1.4 GiB, 1544761344 bytes, 3017112 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 /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 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: gpt
Disk identifier: AE46383C-607D-486E-8274-9C033A1BFA5B
Device Start End Sectors Size Type
/dev/sda1 2048 206847 204800 100M EFI System
/dev/sda2 206848 468991 262144 128M Microsoft reserved
/dev/sda3 468992 105379839 104910848 50G Microsoft basic data
/dev/sda4 105379840 216315903 110936064 52.9G Microsoft basic data
/dev/sda5 216317952 241827839 25509888 12.2G Linux filesystem
Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 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: 0x002ac236
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 63 209728574 209728512 100G 7 HPFS/NTFS/exFAT
/dev/sdb2 209728575 1953520064 1743791490 831.5G 5 Extended
/dev/sdb5 209728638 1953520064 1743791427 831.5G 7 HPFS/NTFS/exFAT
ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt /dev/sda
Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.
ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
mount: /dev/sda5 is already mounted or /mnt busy
/dev/sda5 is already mounted on /mnt
ubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/dev
ubuntu@ubuntu:~$ sudo mount --bind /proc /mnt/proc
ubuntu@ubuntu:~$ sudo mount --bind /sys /mnt/sys
ubuntu@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/# grub-install /dev/sda
Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.
root@ubuntu:/# grub-install --recheck /dev/sda
Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.
root@ubuntu:/# grub-install --recheck --no-floppy /dev/sda
Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.
root@ubuntu:/# ^C
Не получилось
Зашел в систему из Grub-rescue
Дальше пытался восстановить Grub но ничего не получилось, видимо из-за специфики BIOS на моей системе с SSD.
По всей видимости у меня нет MBR т.к. используется uEFI. (Объяснил как смог, сильно не пинать)
michael@michael-Yoga-3-11:~$ sudo grub-install/dev/sda
[sudo] пароль для michael:
sudo: grub-install/dev/sda: команда не найдена
michael@michael-Yoga-3-11:~$ sudo grub-install /dev/sda
Установка для платформы i386-pc.
grub-install: предупреждение: метка раздела GPT не имеет BIOS Boot Partition; встраивание невозможно.
grub-install: предупреждение: Встраивание невозможно. При имеющихся параметрах GRUB можно установить только с помощью списка блоков (blocklists). Однако, список блоков является НЕНАДЁЖНЫМ механизмом и его лучше не использовать..
grub-install: ошибка: не будет продолжена с использованием blocklists.
michael@michael-Yoga-3-11:~$ ^C
Собственно вопрос: Как перезаписать Grub?
Пожалуйста пишите ПОЛНУЮ команду суперпользователя для терминала под KDE.
Команда
Sudo update-grub
выполнилась, но результата не дала, т.е. после перезагрузки снова в Grub-rescue.
Железо: Lenovo Yoga3 на SSD;
Система: две операционки- Win10*64bit (uEFI), Kubuntu 16.04*64bit (Legasy HDD).
Help me please!