Search results
Содержание:
Boot-Repair tool
If you’re struggling to fix Grub issues by hand, or there’s no sign of Grub on your system at all, then you’ll need to enlist the services of your rescue media and the Boot-Repair tool, which works with all Debian-based distros, including Ubuntu.
The Boot-Repair tool itself will launch automatically when you boot from a Boot-Repair tool disc, but if you’re unable to create it, but have access to a Linux installation disc, use that in a live environment instead, then grab the Boot-Repair tool using the following commands:
$ sudo add-apt-repository ppa:yannubuntu/boot-repair
$ sudo apt-get update
$ sudo apt-get install boot-repair
$ boot-repair
The Boot-Repair tool is focussed on those early boot problems caused by the hard drive’s boot sector, MBR and Grub. It basically provides a convenient and user-friendly graphical front-end to the tools required to fix many problems.
The tool offers a ‘Recommended repair’ option that promises to fix most frequent problems, or you can click ‘Advanced options’ to see what it can do and manually select specific fixes without getting your hands dirty in the Terminal.
The step-by-step guide (see Tweak Boot-Repair tool Settings later in this guide) reveals what repairs and tweaks are possible, but note the tool is context-sensitive, and some options may be greyed out or missing depending on your setup.
The tool automatically generates a log of your system and that it attempts to do, which you can then share on the Ubuntu user forums if necessary. Before attempting any advanced tweaks on your own, it pays to try the recommended option first, then ask for help on the forums using the output logs generated – this will ensure you choose the right option and don’t cause more damage.
Fix dual-boot configuration with Easy Recovery Essentials
Easy Recovery Essentials can correct the errors of your computer’s boot configuration.
Easy Recovery Essentials can fix many errors such as this automatically using its built-in Automated Repair option. EasyRE is currently available for Windows XP, Vista, 7 and 8 and can be downloaded and created on any PC.
- Download Easy Recovery Essentials. Make sure to note your Windows version (XP, Vista, 7 or 8) before you download EasyRE. This guide can help you identify what version of Windows you have installed.
- Burn the image. Follow these instructions on how to burn the bootable ISO image very carefully, as making a bootable CD can be tricky! Alternatively, these instructions explain how to create a bootable EasyRE recovery USB stick/drive.
- Boot up your PC from the Easy Recovery Essentials CD or USB you created.
-
Once EasyRE is running, choose the “Automated Repair” option and click Continue.
-
After EasyRE scans your computer’s drives, identify and select the drive letter for your Windows installation from the list, and then click on the Automated Repair button to begin.
-
Easy Recovery Essentials will start analyzing the selected drive for problems. EasyRE will test for and attempt to automatically correct errors with the disk, partition, bootsector, filesystem, bootloader, and registry. No intervention is required, as EasyRE’s repair is fully automated:
- Once the process is complete, EasyRE will report its findings. Click on the Restart button to reboot your PC and test the changes.
-
The “dual-boot errors” error should now be fixed as your PC begins to load:
You can download Easy Recovery Essentials from here.
Как восстановить загрузчик Windows 10
Вы должны подготовится, так как компьютер на рабочий стол у вас не загружается и дополнительные параметры загрузки могут быть не эффективны. По этому, вам нужно создать загрузочную флешку с Windows 10 с той же разрядностью (x32 или x64), которую собираетесь починить, и желательно той же версии. Вы должны загружаться во всех ниже способах с загрузочной флешки, чтобы запустить командную строку. Помните, что после восстановления загрузчика могут появляться некоторые ошибки и нужно пару раз просто перезагрузить ПК, чтобы загрузчик притерся.
Начните установку Windows 10 с загрузочной флешки и дойдите до пункта установки. Далее нажмите снизу на «Восстановление системы», чтобы попасть в дополнительные параметры загрузки.

Способ 1. Как только попали в дополнительные параметры загрузки, то перейдите «Поиск и устранение неисправностей» > «Дополнительные параметры» > и выберите «Восстановление при загрузке». Дождитесь окончание процесса и загрузчик Windows 10 должен восстановиться.

Способ 2. В тех же дополнительных параметрах загрузки перейдите «Поиск и устранение неисправностей» > «Дополнительные параметры» > и запустите «Командная строка».

Для начало мы удостоверимся на каком локальном диске расположена система в которой мы хотим восстановить загрузчик. Для этого в командной строке проделайте следующие три команды, нажимая Enter после каждой:
- — запускает инструмент для работы с дисками.
- — выводит список разделов.
- — выход из инструмента по работе с дисками.
В моем случае на скрине ниже видно, что локальный диск на котором установлена Windows 10 не «C», а «D». У вас скорее всего будет «C», но будьте внимательны, вы должны определить, где у вас установлена система. Как только вы определили под какой буквой у вас система, то введите следующую команду, чтобы восстановить загрузчик Windows 10:
bcdboot D:\windows

Способ 3. Если вы используете систему Windows с новым UEFI и схемой разделов GPT, то нужно найти скрытый раздел с файловой системой FAT32 (он примерно 90-300 Мб). Если у вас стоит BIOS и разметка MBR, то файловая система будет NTFS (примерно 500 Мб). В моем случае это NTFS. Значит, запускаем командную строку через загрузочную флешку, как описано выше способами, и пишем команды:
- — запускает инструмент для работы с дисками.
- — выводит список разделов.
- — Выбор скрытого тома (в моем случае это NTFS, у вас может быть скрытый FAT32).
- или — форматирование выбранного тома (смотря какая у вас).
- — Назначаем новую букву тому (я присвоил то, что уже было).
- — выход из инструмента дискпарт.
- — копируем файлы загрузчика. (В моем случае диск D: — это том, на котором находится сама Windows, E: — буква, которую мы присвоили скрытому разделу).
- — запускает обратно инструмент для работы с дисками.
- — выводим список разделов.
- — Номер скрытого тома, которому мы присваивали букву.
- — удаляем букву, чтобы раздел не отображалась в системе, когда перезагрузимся.


Способ 4. В этом способе воспользуемся инструментом Bootrec.exe. Введите в командную строку следующие команды одну за другой:

В некоторых случаях, потребуется выполнить дополнительную команду:
bootsect /nt60 SYS или bootsect /nt60 ALL

Смотрите еще:
- Ошибка: A disk read error occurred Press Ctrl+Alt+Del to restart
- Vulkan Run Time Libraries — Что это за программа в Windows 10?
- Отсутствует файл xlive.dll? Скачайте его для запуска игр Windows Live
- Удалить папки $WINDOWS.~BT и $WINDOWS.~WS в Windows 10
- Ошибка CRITICAL_STRUCTURE_CORRUPTION в Windows 10/8.1/7
comments powered by HyperComments
Troubleshooting
If after this steps you’re not booting, the EFI of your PC might have some bugs.
Problem1: Weak EFI implementation only recognizes the fallback bootloader
The uefi firmware refuses to boot the debian/grubx64.efi bootloader, and so we have to hijack the uefi fallback boot loader. See http://mjg59.livejournal.com/138188.html for details.
Using debian installer in rescue mode, /dev/sda1 being the FAT32 ESP partition, /dev/sda2 the root partition
mkdir /target mount /dev/sda2 /target mount /dev/sda1 /target/boot/efi for i in /sys /proc /dev; do mount --bind $i /target$i; done chroot /target
cd /boot/efi/EFI mkdir boot cp debian/grubx64.efi boot/bootx64.efi exit for i in /sys /proc /dev; do umount /target$i; done umount /target/boot/efi umount /target
Once booted into your normal Debian, tell grub to ensure the fallback boot loader up to date. To do that, run the following:
echo "grub-efi-amd64 grub2/force_efi_extra_removable boolean true" | sudo debconf-set-selections
Note: The above command will permanently hijack the fallback boot loader, which might be undesirable in dual-boot setups.
Problem2: EFI boot entries disappear after reboot
The uefi firmware did not create a proper boot entry in NVRAM. This has been seen in a Lenovo Thinkcenter M92Z. The symptom for this will be a missing HD path after the debian entry in the efibootmgr --verbose output.
BootCurrent: 0024 Timeout: 0 seconds BootOrder: 0024,0022,0023,0016,0000,0001 Boot0000* debian Vendor(99e275e7-75a0-4b37-a2e6-c5385e6c00cb,) Boot0016* Generic Usb Device Vendor(99e275e7-75a0-4b37-a2e6-c5385e6c00cb,) Boot0022* UEFI: IPv4 Intel(R) 82579LM Gigabit Network Connection ACPI(a0341d0,0)PCI(19,0)MAC(d43d7e6d8bfc,0)IPv4(0.0.0.0:0<->0.0.0.0:0,0, 0AMBO Boot0023* UEFI: IPv6 Intel(R) 82579LM Gigabit Network Connection ACPI(a0341d0,0)PCI(19,0)MAC(d43d7e6d8bfc,0)030d3c000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000AMBO Boot0024* UEFI: Generic Flash Disk 8.00 ACPI(a0341d0,0)PCI(1d,0)USB(1,0)USB(1,0)HD(1,800,2a5f,02f23208-1aa9-4b6c-b6e1-8155390eb9db)AMBO
You can then try to install Refind as your bootloader in the hard drive, following the steps at this gist: https://gist.github.com/EmmanuelKasper/9590327.
CategoryBootProcess RescueLive
GRUB error
deepin 15.3 failed to start (UEFI)
Error and Analysis
Unlike the error in the old tutorial, in this case the identifier is instead of , so enter and press Enter key will not perform any operation, this is caused by error, grub here discovers deepin’s /boot partition, but loaded an error version of and unable to boot the system. The reason for the error may be due to the compatibility problem between easybcd and grub, or it may be other operating system is installed before the system deleted but the old system is not cleaned up efi partition or even deepin 15.3 is installed directly on the old system.
Solution
Use liveUSB, liveCD, or another linux release on the device to open gparted to see the root directory mount point of the boot error deepin 15.3, such as , for example;
Boot deepin, enter the grub command line (that is, the error interface), type and then press Enter key, example:
where (hd2, gpt1) represents the partition of the system.
type , and then press Tab key to complete the name, press Space key, and then type and Enter key. This step is to load the system kernel.
type , and then press the Tab key to complete the name, then press Enter key.
type press Enter key, and you can boot into the system.
After entering the system, execute in the terminal, then open the Startup menu option in the control center, wait for it to update automatically, deepin 15.3 can be booted normally after the repair work succeed. Cheers!
Thanks to: @mattd
Old Method
It has been found that the following operations can cause this problem:
- One wants to delete Linux, then delete/format the Linux partition directly in windows.
- One adjusted the disk, and use partition tools to merge/split/adjust/delete the partition, so that the number of disk partitions changed.
- One reinstalled the system, and installed linux to a new partition, the original partition has been formatted, but did not reinstall GRUB2.
- One use Linux backup tools or manufacturing tools, restore the main partitions to the old 8.X version, but the old version of GRUB is GRUB1, then the GRUB2 destroyed.
Reinstall GRUB
- Use deepin boot disk to boot the computer, enter the installation interface, press Ctrl+Alt+F1, execute the following command, wait a moment to enter Live CD mode.
- After entering the Live CD system, open the terminal, mount the system partition which is needed to be repaired to /mnt, you can use the gparted or command to view, for example, the system partition which is needed to be repaired is /dev/sda1.
Execute the following command:
if the /boot is separated (assuming /dev/sda2), execute the following command:
in addition, to mount the Live CD system /dev directory at the same time, execute the following command:
and then use the command to set the Live CD / to the previous /, execute the following command:
Install and update GRUB settings (motherboard use BIOS boot), execute the following command:
Install and update GRUB settings (motherboard use UEFI boot), execute the following command:
-
mount the efi partition to /boot/efi and install the grub-efi package.
- Repair completed, restart the computer to take effect.
Deleting GRUB may cause the computer failed to boot deepin, please do with caution. If you need to completely remove GRUB2 (uninstall deepin), please see How_to_uninstall_deepin.
Что делать, если Ubuntu не загружается после установки
Существует несколько основных причин, которые имеют только один способ решения.
Несовместимое оборудование
Нужно войти в этом случае в Grub, выбрать вкладку «изменить параметры», нажать при этом клавишу «е». Затем ввести в конец строки nomodeset, quiet splash.
Далее нажать сочетание клавиш Ctrl и X.
При шифровании жесткого диска
Бывает так, что Линукс не отображается из-за «невидимого окна пароля» в процессе этой операции. Для решения проблемы следует либо переключиться из одного терминала в другой (Alt+ стрелки вправо и влево), либо ввести свой пароль и нажать Enter.
Нерабочий графический драйвер
Следует его удалить, в зависимости от типа, с помощью команд: sudo apt-get purge nvidia* или sudo apt-get purge fglrx*. Затем нужно обновить конфигурацию сервера sudo dpkg-reconfigure xserver-xorg. Потом перезагрузить систему с помощью sudo reboot.
После обновления
В этом случае следует воспользоваться переустановкой дисков. Причем так личные данные и сохраненные настройки, а также приложение загрузчика не изменятся. На диски всего лишь нужно выбрать опцию переустановки убунту.
Оболочка
В этом случае файлы оболочки лучше переименовать, а ненужные документы – удалить.
Нужно войти в необходимую программу с помощью клавиш Ctrl, Alt, F1. Ввести логин и пароль.
Для удаления настроек линукс нужно воспользоваться выражениями:
- dconf reset -f /org/compiz/;
- setsid unity.
Затем удалить настройки Compiz: mv
Потом перезапустить интерфейс: sudo service lightdm restart.
Монтирование разделов
Примонтируем корневой раздел. Выполняем команду (вместо /dev/sda2 вы должны указать свой раздел):
Мы примонтировали раздел /dev/sda2 в директорию /mnt.
Если для загрузчика у вас выделен отдельный раздел, то нужно примонтировать еще и его (вместо /dev/sdX укажите ваш boot-раздел):
Теперь можно посмотреть содержимое директории /mnt, чтобы убедиться, что мы примонтировали верный раздел:
Вывод команды должен быть примерно следующим
Обратите внимание есть ли в этом списке каталог /boot, так как именно в нем установлен GRUB
Также можно проверить, что директория boot не пустая:
У меня вывод команды выглядит следующим образом
Обратите внимание на присутствие каталога с именем grub
Далее нужно создать ссылки на несколько директорий, к которым GRUB должен иметь доступ для обнаружения всех операционных систем. Для этого выполните команды:

Монтирование EFI-раздела
Если у вас используется UEFI, то еще нужно примонтировать EFI-раздел в директорию /mnt/boot/efi (выше я указал пример вывода команды fdisk -l в котором показан EFI-раздел):
Делаем загрузчик GRUB загрузчиком по умолчанию
Сейчас мы рассмотрим все действия, которые необходимо выполнить, чтобы сделать загрузчик GRUB загрузчиком по умолчанию.
Шаг 1 – Запускаем менеджер загрузки
Для того чтобы управлять загрузчиком компьютера, необходимо зайти в загрузочное меню, т.е. запустить менеджер загрузки.
Обычно это можно сделать клавишей F9, но иногда используются и другие клавиши (F12 и т.д.).
Итак, во время включения компьютера нажимаем клавишу F9.
Шаг 2 – Запускаем UEFI Shell
В итоге запустится загрузочное меню. Нам нужно открыть UEFI Shell. Для этого входим в «Boot Manager» (интерфейс у Вас может отличаться).

Затем выбираем пункт «EFI Internal Shell».

После чего запустится командная оболочка для работы с UEFI. В командной строке отобразится приглашение ввода команд «Shell>».
Шаг 3 – Входим в файловую систему загрузочного раздела
Вносить изменения мы будем путем определенных действий с файлами, поэтому нам необходимо открыть файловую систему загрузочного раздела UEFI.
Это делается достаточно просто, вводим команду FS0: (обычно именно такая метка у загрузочного раздела).

Шаг 4 – Переименовываем текущий загрузочный файл
Весь смысл наших действий заключается в том, чтобы заменить текущий загрузочный файл на тот, который нам нужен, т.е. на загрузчик GRUB.
Но для начала нам нужно переименовать текущий загрузочный файл, так как файл загрузчика, который мы будет потом копировать, должен быть с таким же названием (можно, конечно, его и удалить, но лучше этого не делать).
Переименовываем файл следующей командой.

Если у Вас отобразилось сообщение , значит, все прошло успешно.
Таким образом, файл bootx64.efi мы переименовали в bootx64.efi_, этот файл расположен в каталоге EFIBoot.
Шаг 5 – Копирование файла загрузчика GRUB
Теперь нам нужно в каталог EFIBoot скопировать файл загрузчика GRUB, чтобы он запускался по умолчанию.
В этой статье речь идет о Debian, поэтому загрузчик лежит в одноименном каталоге EFIdebian, а файл его называется grubx64.efi.
Для копирования можно использовать следующую команду.

Как видите, файл мы копируем с новым названием, для того чтобы EFI запускала его по умолчанию.
Шаг 6 – Выход из командной строки
На этом все, теперь мы можем выйти из командной строки и попробовать запустить компьютер.
Для выхода из «EFI Internal Shell» вводим команду Exit.
Чтобы продолжить загрузку компьютера, выбираем пункт «Continue».

После вышеупомянутых операций с файлами по умолчанию у Вас должен загружаться GRUB, в котором можно будет выбрать операционную систему для загрузки, Debian или Windows.

- Debian GNU/Linux– это операционная система Debian;
- Windows Boot Manager (на /dev/sda2) – это Windows 10.
Если ничего не выбрать в течение нескольких секунд, по умолчанию будет загружаться Debian, однако можно сделать и так, чтобы по умолчанию загружалась Windows 10, и даже переименовать пункты меню для удобства, об этом я уже рассказывал в материале – Как изменить порядок загрузки операционных систем (Linux, Windows) в GRUB.
На сегодня это все, надеюсь, материал был Вам полезен, пока!
Причины, по которым может не загружаться Ubuntu
Итак, стоит разобраться: из-за чего пользователю не удалось запустить сеанс ubuntu.
К главным источникам возникновения такой проблемы относятся:
- Обновления системы компьютера или ноутбука. В этом процессе ubuntu не запускается потому, что возможно нарушена в процессе обновления работа основных приложений системы.
- Еще одной главной причиной является то, что корневая файловая система не определена в ubuntu.
- Убунту также не загружается, если в настройках установлены неверные параметры для конкретной версии Линукс.
- В ubuntu может быть обнаружена ошибка в системной программе, если есть несовместимость интерфейса и ядра системы.
- Переполненность дисков, из-за чего системе не удается создать новые временные файлы. Именно по этой чаще всего причине Виндовс не грузится после установки Линукс.
- Еще одна часто встречающаяся причина отсутствия запуска системы убунту – это то, что нет корневой файловой системы ubuntu.

Помимо этих причин есть еще и косвенные аспекты:
- Проблема с местом на диске. Для решения достаточно удалить ненужные файлы с папок /var/log, /var/cache/ и т. д. Для «ремонтирования» корневой системы возможно придется использовать команду mount -o remount,rw /.
- Плохая целостность пакетов системы. Для решения этой проблемы нужно использовать выражение: dpkg —configure –a.
- Несовместимость видеодрайверов с различными ядрами системы в зависимости от ее версий. В этом случае нужно воспользоваться разными командами: apt purge nvidia* или apt purge fglrx*. Первое выражение используется для видеокарт вида Nvidia, а второе – для карт AMD.
- Неправильная работа загрузчика Grub. Для восстановления нужно использовать BootRepair.
Зная об этих аспектах, каждый пользователь может предотвратить проблему отсутствия запуска убунту.
The Boot process
When you press your system’s power button, control is initially given to your PC’s EFI or BIOS, which starts its various components, performs basic diagnostics tests and attempts to find a bootable device, which is typically the first hard drive.
Once located, the BIOS or EFI looks for the Master Boot Record (MBR) at the very beginning of the drive, which has a tiny program inside that loads the next stage of the boot loader, reading a file (eg e2fs_stage_1_5), which in turn is able to load the Grub boot loader.
A ‘missing operating system’ error at this point means you need your rescue disc for diagnostics as something is missing – either in Grub, the MBR or the drive itself. Once Grub loads successfully it reads a file called menu.lst, which contains the list of choices you see in the boot menu. Each entry basically identifies the drive, partition and file that contains the Linux kernel, plus RAM disk file used by the kernel as it boots.
The entry will also contain any additional parameters passed to the kernel. Control is now passed to the kernel, which attempts to mount the root file system. This is a key moment, and if it fails you may get a kernel panic, or things might grind to a halt. If successful, it’ll create a single process to run the /sbin/upstart file (other distros use init) – if this goes wrong, you’ll get a panic, it may halt again or drop you into a root shell.
At this point, upstart starts running scripts and upstart events to start other services and eventually bring you to the logon screen.