Grub install ошибка не удалось получить канонический путь overlay

Для восстановления GRUB потребуется загрузочный диск или флешка с дистрибутивом Linux. Итак, вы загрузились в Live-режиме. Теперь нужно открыть терминал.

1.Нужно определить раздел диска, на котором был установлен GRUB fdisk -l.

2.Например установлен в /dev/sda, примонтируем корневой раздел, выполняем команду (вместо /dev/sda вы должны указать свой раздел):sudo mount /dev/sda /mnt. Если для загрузчика у вас выделен отдельный раздел, то нужно примонтировать еще и его (вместо /dev/sdX укажите ваш boot-раздел):sudo mount /dev/sdX /mnt/boot

3.Посмотреть содержимое директории /mnt, чтобы убедиться, что мы примонтировали верный раздел:ls /mnt.

4.Нужно создать ссылки на несколько директорий, к которым GRUB должен иметь доступ для обнаружения всех операционных систем. Для этого выполните команды:sudo mount --bind /dev /mnt/dev sudo mount --bind /dev/pts /mnt/dev/pts sudo mount --bind /proc /mnt/proc sudo mount --bind /sys /mnt/sys.Если у вас используется UEFI, то еще нужно примонтировать EFI-раздел в директорию /mnt/boot/efi :sudo mount /dev/nvme0n1p1 /mnt/boot/efi например…

5.Для генерации файла конфигурации GRUB используется команда update-grub. Данная команда автоматически определяет файловые системы на вашем компьютере и генерирует новый файл конфигурации. Выполняем команду:sudo update-grub.
Если вдруг утилита update-grub не определила ваш Windows ,то можно будет запустить update-grub повторно уже из вашей Linux-системы, когда вы в нее загрузитесь (мне это помогло и Windows определился).

6.Осталось выполнить установку GRUB на диск. Мы определили раздел на котором у нас установлен GRUB на первом шаге данного руководства. Это раздел /dev/sda.

Для установки GRUB используется команда grub-install, которой нужно передать в качестве параметра диск, на который будет выполняться установка (в моем случае это диск /dev/sda):grub-install /dev/sda.

7.Выходим из окружения chroot: exit.

8.Отмонтируем все разделы, которые мы примонтировали:sudo umount /mnt/sys sudo umount /mnt/proc sudo umount /mnt/dev/pts sudo umount /mnt/dev. Если вы монтировали boot-раздел, то его тоже нужно отмонтировать:sudo umount /mnt/boot.Если вы монтировали EFI-раздел, отмонтируем:sudo umount /mnt/boot/efi.Отмонтируем корневой раздел:sudo umount /mnt.

9.Перезагружаем компьютер:reboot.

Если во время перезагрузки компьютера меню GRUB не появилось, то это еще не значит, что он не восстановился. Возможно, просто установлена нулевая задержка и меню не показывается. Чтобы показать меню GRUB нужно во время загрузки, после того, как появился логотип материнской платы:
удерживать клавишу Shift, если у вас классический BIOS; нажать Esc, если у вас UEFI.

Если у вас, при выполнении grub-update, не определился Windows и не был добавлен в меню GRUB, то уже загрузившись в вашу систему Linux (не LiveCD), откройте терминал и выполните:sudo grub-update.

По сути нам нужно лишь указать дополнительным параметром, куда мы примонтировали корневой раздел.

Проверим все сначала. Мы загрузились в Live-версии Linux. Открыли терминал под root’ом. В моем примере диск – sda.

Примонтируем корневой раздел sda1

# mount /dev/sda1 /mnt

И если раздел boot отдельно, то и его тоже (для примера sda2)

# mount /dev/sda2 /mnt/boot

Теперь установим GRUB, используя параметр –root-directory

# grub-install --root-directory=/mnt /dev/sda

Заметьте, что указываем не раздел, а сам диск sda в последней команде. Ваш диск может отличаться, будьте внимательны.


Переустанавливал Win10.
Скачал live SL9 пишу в нем команду fdisk — пишет нет такой команды.
возможно скачать надо, но почему то нет wifi.

ничего не понимаю!


Записан


Скачал live SL9 пишу в нем команду fdisk — пишет нет такой команды.

Сначала нужно стать root:
su —


Записан


Сделал.
1. su —
2. fdisk -l
3. mount /dev/sda3 /mnt — там стоит SL, и звездочка на этом разделе, но тип системы почему то HPFS
4. grub-install —root-directory=/mnt /dev/sda

пошуршало и говорит — ок.

перезагружаюсь и вижу:
grub>

что с этим делать не знаю.

пробовал написать
update-grub —output=/mnt/boot/grub/grub.cfg
выдает сообщение:
не удалось получить канонический путь overlay


Записан


Скачал rescatux, загрузился с него, оно тоже ошибку выдало и не смогло ничего сделать.


Записан


4. grub-install —root-directory=/mnt /dev/sda

Не, неправильно. Надо сделать chroot:
https://altlinux.org/Chroot

И только потом (если legacy)
grub-install /dev/sda


Записан



Записан


chroot /mnt ??

Вряд ли он примонтирован в /mnt, если этого не сделали Вы.


Записан


4. grub-install —root-directory=/mnt /dev/sda

Не, неправильно. Надо сделать chroot:
https://altlinux.org/Chroot

И только потом (если legacy)
grub-install /dev/sda

мне так выдает ошибку «не удалось найти устройство для /boot/grub (/dev смонтирован?)»


Записан


Не, неправильно. Надо сделать chroot:
https://altlinux.org/Chroot

И только потом (если legacy)
grub-install /dev/sda

Разве в chroot можно обратиться к файлам /dev/sd*? Они же udev’ом создаются при загрузке ОС?


Записан


Не, неправильно. Надо сделать chroot:
https://altlinux.org/Chroot

И только потом (если legacy)
grub-install /dev/sda

Разве в chroot можно обратиться к файлам /dev/sd*? Они же udev’ом создаются при загрузке ОС?

Вы читали https://altlinux.org/Chroot ?
Там есть раздел «Подготовка к переходу в целевую систему». В нем показано как «биндятся» (mount —bind …) особые папки (/dev, и точно так же по необходимости /proc, /sys)


Записан



Записан


Find your drive that’s supposed to boot with

mount

Or

parted -l

Or

fdisk /dev/sda

And type p to list the partitions, look for type 83.

(If you’ve got Fedora you might have to use the commands vgs and lvs and if you’ve got mdraid you might have to cat /proc/mdstat or mdadm -A --scan or insmod raid1 or insmod raid5 and then mdadm -A --scan) and you will use /dev/md0 or /dev/mapper/my-vg instead of /dev/sda

then try mount it

mkdir /mnt
mount /dev/sda1 /mnt
cd /mnt
ls -l

Is this your drive? Cool!

grub-install --recheck --root-directory=/mnt /dev/sda 

(Or whichever /dev drive your root is, with it’s mounted path)

grub-install --recheck --root-directory=/mnt /dev/sda --force

(Force it if it doesn’t like your partitions.)

Now it should boot into grub, and you can use the grub commands to boot up, after rebooting and selecting the right boot drive from the BIOS Setup, or by pressing ESC, F8 or F12 depending on your BIOS and whether you are quick enough, then at the Grub prompt — you can use tab completion to find it if it’s not (hd0,1) but (hd1,3) or something else instead, but beware, tab completion sometimes hangs for a few seconds if grub can’t read the filesystem. Once booted into Grub you can try to boot with:

insmod linux
ls
root=(hd0,1)
linux /boot/vmlinuz root=/dev/sda1
initrd /boot/initrd
boot

Or, hopefully you’ve still got an intact grub.cfg file…

ls
ls (hd0,1)/
ls (hd0,1)/boot
configfile (hd0,1)/boot/grub.cfg

Grub 1 allows you to do the installation from Grub:

install (hd0,1)

Once booted from the correct drive, you can retry update-grub and grub-install. If it still fails, you can try:

grub-mkconfig -o /mnt/boot/grub/grub.cfg

Your paths may differ of course, so just play with these commands until you can see what’s where and what’s going on.

It might be a sign of imminent hard drive failure at worst, or at best maybe just a partition flag or boot file that got overwritten accidentally, or a deliberately- or accidentally broken installer from another OS.

Find your drive that’s supposed to boot with

mount

Or

parted -l

Or

fdisk /dev/sda

And type p to list the partitions, look for type 83.

(If you’ve got Fedora you might have to use the commands vgs and lvs and if you’ve got mdraid you might have to cat /proc/mdstat or mdadm -A --scan or insmod raid1 or insmod raid5 and then mdadm -A --scan) and you will use /dev/md0 or /dev/mapper/my-vg instead of /dev/sda

then try mount it

mkdir /mnt
mount /dev/sda1 /mnt
cd /mnt
ls -l

Is this your drive? Cool!

grub-install --recheck --root-directory=/mnt /dev/sda 

(Or whichever /dev drive your root is, with it’s mounted path)

grub-install --recheck --root-directory=/mnt /dev/sda --force

(Force it if it doesn’t like your partitions.)

Now it should boot into grub, and you can use the grub commands to boot up, after rebooting and selecting the right boot drive from the BIOS Setup, or by pressing ESC, F8 or F12 depending on your BIOS and whether you are quick enough, then at the Grub prompt — you can use tab completion to find it if it’s not (hd0,1) but (hd1,3) or something else instead, but beware, tab completion sometimes hangs for a few seconds if grub can’t read the filesystem. Once booted into Grub you can try to boot with:

insmod linux
ls
root=(hd0,1)
linux /boot/vmlinuz root=/dev/sda1
initrd /boot/initrd
boot

Or, hopefully you’ve still got an intact grub.cfg file…

ls
ls (hd0,1)/
ls (hd0,1)/boot
configfile (hd0,1)/boot/grub.cfg

Grub 1 allows you to do the installation from Grub:

install (hd0,1)

Once booted from the correct drive, you can retry update-grub and grub-install. If it still fails, you can try:

grub-mkconfig -o /mnt/boot/grub/grub.cfg

Your paths may differ of course, so just play with these commands until you can see what’s where and what’s going on.

It might be a sign of imminent hard drive failure at worst, or at best maybe just a partition flag or boot file that got overwritten accidentally, or a deliberately- or accidentally broken installer from another OS.

I get this error too, and I don’t think it happens in a chroot.

Background

I think this is when systemd cannot find the path because it is mounted in a directory. So, the difference is when you setup a chroot you already configure access to hardware, including drives.

Though you can configure this access inside Systemd that does not mean you can configure permissions for those drives the same way.

For instance, I created this file:

/etc/systemd/system/systemd-nspawn@.service.d/override.conf

And it contains these settings:

[Service]
DeviceAllow=char-usb_device rwm
DeviceAllow=char-usb
[Files]
Bind=/var/cache/apt/pkgcache.bin
Bind=/var/cache/apt/srcpkgcache.bin

This still does not work when using grub-install /dev/sda or update-grub for a USB on Pi debootstrapped with Debian Stretch. Even using grub-uboot and grub-efi-arm there is still that error the grub-probe cannot find the canonical path.

Not only that but though update-grub will see and know what the operating systems are, but interestingly grub-install does not recognize the Debian operating system is on USB.

Example

root@raspixmc:/home/pi# grub-install /dev/sda
Installing for arm-uboot platform.
grub-install: warning: no hints available for your platform. Expect 
reduced performance.
grub-install: warning: WARNING: no platform-specific install was 
performed.
Installation finished. No error reported.
root@raspixmc:/home/pi#

Interesting, when I create a chroot and can run update-grub, even though I am on the operating system that I debootstrapped to the USB itself it does not see its own operating system!

root@raspixmc:/home/pi# mount /dev/sda1 /mnt
root@raspixmc:/home/pi# cd /mnt
root@raspixmc:/mnt# mount --bind /dev dev/
root@raspixmc:/mnt# mount --bind /sys sys/
root@raspixmc:/mnt# mount --bind /proc proc/
root@raspixmc:/mnt# mount --bind /dev/pts dev/pts
root@raspixmc:/mnt# chroot . bin/bash
root@raspixmc:/# update-grub
Generating grub configuration file ...
Found Raspbian GNU/Linux 9 (stretch) on /dev/mmcblk0p2
done
root@raspixmc:/#

It only sees Raspbian. This happens only when trying to install and update GRUB inside the container, but when I exit the chroot.

Watch how it now works because I did not unmount the chroot directories:

/dev dev/
/sys sys/
/proc proc/
/dev/pts dev/pts

From outside the container mind you, I am running this command with grub-uboot installed on Raspbian and no Grub on the USB containing debootstrapped Debian.

root@raspixmc:/mnt# update-grub
Generating grub configuration file ...
Found Raspbian GNU/Linux 9 (stretch) on /dev/mmcblk0p2
Found Debian GNU/Linux 9 (stretch) on /dev/sda1
done
root@raspixmc:/mnt#

This does not happen using one of the unofficially available images for Debian ARM, but obviously this is still a customization not yet available for debootstrapping.

Troubleshooting

Really there are times when it is better just to create a path. The only next possibility (and a probable one) is to simply write GRUB. And for that I am just going to read on this page.

https://www.dedoimedo.com/computers/grub-2.html

Another thing I want to share about this issue is a solution that might work, but realize microSD cards are very sensitive. I have been building my own Linux images and learned this fast. The best thing to do is use Qemu whenever you can, but to attempt to clear an old partition table you might try running sgdisk --zap-all on the drive.

sgdisk --zap-all /dev/sdd

In fact, sometimes if it gives an error the first time and it is not a read-only error, you can run it again and it will finally all the partition tables new or old.

And you can use Qemu to emulate Raspberry Pi on a standard AMD/Intel-based PC. I would recommend it. I know this is more information than pertains to the original post, but I think that is likely how this error is derived. It is the container age.

Всем привет. не могу поставить grub выходит ошибка
Installing for i386-pc platform
grub-install: error: failed to get canonical path of » /cow».

Как только запускаю команду
grub-install /dev/sda то сразу выходит эта ошибка…

Installing for i386-pc platform
grub-install: error: failed to get canonical path of » /cow».

что можно сделать?
На автомате ставится без проблем, а если делаю ручную разметку то не ставится. В чем может быть дело?
использую вот этот мануал https://losst.ru/ustanovka-zagruzchika-grub#commen…


  • Вопрос задан

    более трёх лет назад

  • 26581 просмотр

Пригласить эксперта

Решил проблему с установкой на gpt , оказалось все очень просто для раздела загрузчика не хватало флага legacy_boot . Должно на разделе загрузчика стоять 2 флага bios_grub и legacy_boot

делал вот по этой инструкции https://losst.ru/ustanovka-zagruzchika-grub#commen… раздел «УСТАНОВКА ЗАГРУЗЧИКА GRUB В GPT ДЛЯ BIOS»

С консоли вот такую команду не запускал sudo grub-install /dev/sda
а просто как только разметил диски через gparted и поставил флаги, создал LVM тома для root home и swap . Запустил установщик стандартный указал для чего какой раздел, для своего grub раздела указал что-то типа «резервный загрузочный раздел Bios» и нажал установка и все встало без проблем.


  • Показать ещё
    Загружается…

12 февр. 2023, в 21:32

80000 руб./за проект

12 февр. 2023, в 21:30

2900 руб./за проект

12 февр. 2023, в 21:30

7000 руб./за проект

Минуточку внимания

To restore GRUB, you will need a boot disk or a USB flash drive with a Linux distribution. So, you have booted up in Live mode. Now you need to open the terminal.

1.You need to determine the disk partition on which GRUB was installedfdisk -l.

2.For example, installed in /dev/sda, mount the root partition, run the command (instead of /dev/sda, you must specify your own partition):sudo mount /dev/sda /mnt. If you have a separate partition allocated for the loader, then you need to mount it as well (instead of /dev / sdX specify your boot partition):sudo mount /dev/sdX /mnt/boot

3.View the contents of the /mnt directory to make sure that we have mounted the correct partition:ls /mnt.

4.You need to create links to several directories that GRUB must have access to in order to detect all operating systems. To do this, run the following commands:sudo mount --bind /dev /mnt/dev sudo mount --bind /dev/pts /mnt/dev/pts sudo mount --bind /proc /mnt/proc sudo mount --bind /sys /mnt/sys.If you use UEFI, then you also need to mount the EFI partition in the /mnt/boot/efi directory: sudo mount /dev/nvme0n1p1 /mnt/boot/efi for example…

5.To generate a GRUB configuration file the update-grub command is used. This command automatically detects the file systems on your computer and generates a new configuration file. Run the command:sudo update-grub.
If suddenly the update-grub utility has not detected your Windows, then you can run update-grub again from your Linux system when you boot into it (this helped me and Windows was determined).

6.It remains to install GRUB on the disk. We identified the partition on which we have GRUB installed in the first step this manual. This is the /dev/sda section.

To install GRUB, use the command grub-install, which needs to pass as a parameter the disk to which the installation will be performed (in my case, this is the disk /dev/sda):grub-install /dev/sda.

7.Exiting the chroot environment: exit.

8.We will unmount all the partitions that we have mounted:sudo umount /mnt/sys sudo umount /mnt/proc sudo umount /mnt/dev/pts sudo umount /mnt/dev. If you mounted a boot partition, then you also need to mount it:sudo umount /mnt/boot.If you mounted an EFI partition, we will mount:sudo umount /mnt/boot/efi.Unmount the root chapter:sudo umount /mnt.

9.Restarting the computer:reboot.

If the GRUB menu did not appear during the computer restart, it does not mean that it has not recovered. It is possible that the delay is simply set to zero and the menu is not displayed. To show the GRUB menu, you need to during boot, after the motherboard logo has appeared:
удерживать клавишу Shift, если у вас классический BIOS; нажать Esc, если у вас UEFI.

If, when running grub-update, Windows was not detected and was not added to the GRUB menu, then having already booted into open your Linux system (not a LiveCD), open a terminal and run:sudo grub-update.

  • Печать

Страницы: [1]   Вниз

Тема: Слетел Grub!!!  (Прочитано 7712 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
Crocuta

Всем привет!
У меня стоит Windows и Ubuntu 14.04 на одном винчестере. Разбиение такое:

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   104856254    52428096    7  HPFS/NTFS/exFAT
Partition 1 does not start on physical sector boundary.
/dev/sda2       104859648   106956799     1048576   83  Linux
/dev/sda3       106956800   117442559     5242880   82  Linux swap / Solaris
/dev/sda4       117442560   488397167   185477304    5  Extended
/dev/sda5       117444608   180359167    31457280   83  Linux
/dev/sda6       180361216   488397167   154017976   83  Linux

Загрузчик Grub был вынесен в отдельный раздел dev/sda2, точка монтирования /boot
Соответственно sda5 — это рут «/»
sda6 — /home
sda1 — Windows 7

Сейчас я загрузился с установочного диска Ubuntu 14.04, все разделы и папки видны. Попытался сделать следующее:

sudo mount /dev/sda2 /mnt
sudo grub-install —boot-directory=/mnt /dev/sda
sudo update-grub —output=/mnt/boot/grub/grub.cfg

Вышло сообщение:
/usr/sbin/grub-probe: error: failed to get canonical path of `/cow’.

После перезагрузки какой-то мат-перемат на черном экране, и что-то про Grub/
Помогите разобраться, буду потом все изучать, но машину бы завести сначала.
Заранее спасибо за любую помощь!


symon2014


Оффлайн
Crocuta

Сделал так:

sudo mount /dev/sda2 /mnt
sudo grub-install —root-directory=/mnt /dev/sda

Затем

sudo update-grub —output=/mnt/grub/grub.cfg

(файл grub.cfg находится в папке grub, а не boot)

Не помогло. В ответ сообщение:

/usr/sbin/grub-probe: error: failed to get canonical path of `/cow’.

« Последнее редактирование: 08 Июля 2015, 13:27:16 от Crocuta »


symon2014

sudo mount /dev/sda2 /mnt

кажется всё-таки надо написать sda5   :idiot2:


Оффлайн
Crocuta

Так-так…сейчас попробуем..


Пользователь решил продолжить мысль 08 Июля 2015, 14:57:37:


Нет(( Ничего не вышло.
Ну ладно…
Убиваю диск и ставлю все заново?
А че еще делать-то?
Вроде все по инструкции сделал.
Гори оно все.

« Последнее редактирование: 08 Июля 2015, 14:57:37 от Crocuta »


Оффлайн
DeadMetaler


Оффлайн
Crocuta

Нет, через chroot тоже не получается. Выходит сообщение:

chroot: failed to run command ‘/bin/bash’: No such file or directory


Пользователь решил продолжить мысль 08 Июля 2015, 15:33:55:


Не знаю в чем проблема.
Смотрел видео на ютубе, где один знаток утверждал, что для загрузчика grub лучше создать отдельнывй раздел, особенно если стоят две операционки. Что дескать это правило хорошего тона, и что легче восстановить загрузчик, если его отдельно вынести.
А вот и ссылка на это видео:
https://www.youtube.com/watch?v=nGfkdBR2VVo

« Последнее редактирование: 08 Июля 2015, 15:33:55 от Crocuta »


alang

Примонтировать надо не только раздел /boot, но и корневой:

sudo mount /dev/sda5 /mnt
sudo mount /dev/sda2 /mnt/boot
Примерно так.
А уж затем делать

sudo grub-install --root-directory=/mnt /dev/sda


symon2014

Crocuta, пробовал всё, кроме отдельного /boot . Осталось убить расширенный. Правда почти год экспериментов и неоднократная переустановка систем( очень неоднократная).
Забыл показать
/dev/sda1   *          63    21528575    10764256+   7  HPFS/NTFS/exFAT
/dev/sda2        21530622    78241791    28355585    5  Расширенный
/dev/sda5        21530624    78241791    28355584   83  Linux

« Последнее редактирование: 08 Июля 2015, 16:50:57 от symon2014 »


Оффлайн
Crocuta

Примонтировать надо не только раздел /boot, но и корневой:
sudo mount /dev/sda5 /mnt
sudo mount /dev/sda2 /mnt/boot
Примерно так.
А уж затем делатьsudo grub-install --root-directory=/mnt /dev/sda

Жаль что этого не было в документации. Я уже все пепеустановил.
Вообще пользуюсь чуть меньше месяца. Первые впечатления — очень затягивает, ну прямо очень. Работает и загружается быстрей, чем семерка. То что система не перегружена библиотеками на авось, как это делают в Майкрософт — видно невооруженным глазом. Единственная прога, которую приходится запускать через Wine — это Metatrader 4. Пока мне рано делать выводы, т.к. надо освоить матчасть. Но за это время система слетела дважды. Изрядно потрепав нервы. (Убить день на попытку решения проблемы и переустановку выходит за пределы разумного). Пока что Ubuntu для меня находится между понятиями «операционная система», и «любимое экзотическое домашнее животное». Может даже собака, которую можно съесть. Но затягивает очень, вопреки всякой логике. Это все учитывая то, что компьютер — это для меня средство заработка, ну еще кинца посмотреть. Даю себе месяц на освоение азов этой чудо системы. Ну хотя бы чтобы не переустанавливать каждую неделю. Извиняюсь за поток сознания.


Оффлайн
Sly_tom_cat


alang

Жаль что этого не было в документации.

Это есть в документации, но, вероятно, не по Ubuntu. Видимо, не предполагается, что кто-то будет выделять /boot в отдельный раздел. Вообще, реальная необходимость выделения /boot в отдельный раздел на десктопе осталась где-то году в 2009-м, когда не все загрузчики понимали новую на тот момент ext4. Нынче такой необходимости нет за редким исключением, но те, кто использует такое решение, обычно понимают, зачем они это делают. Еще советуют выделять в отдельный раздел /home — для сохранения пользовательских настроек на случай переустановки. Определенный резон в этом есть, но лично я тоже не выделяю.


Оффлайн
Sly_tom_cat

alang, я /home в отдельный раздел выделяю из двух соображений:
1. Так удобнее переустанавливать.
2. Я не считаю EXT4 подходящей для больших разделов (предпочитаю XFS). А сейчас винты уже редко меньше 1 ТБ. На 1 ТБ на свои только служебные нужды EXT4 отъест 1,8%, а вот XFS — всего 0,06%. Да еще и размер резерва для рута (5% — по умолчанию) на 1 ТБ это слишком много (хотя конечно резерв то можно и уменьшить). А вот на разделе 10-20Гб под корень EXT4 — самое то, что доктор прописал (и 5% резерва — очень полезным бывает, но не так много места отъедает).


  • Печать

Страницы: [1]   Вверх

Для восстановления GRUB потребуется загрузочный диск или флешка с дистрибутивом Linux. Итак, вы загрузились в Live-режиме. Теперь нужно открыть терминал.

1.Нужно определить раздел диска, на котором был установлен GRUB fdisk -l.

2.Например установлен в /dev/sda, примонтируем корневой раздел, выполняем команду (вместо /dev/sda вы должны указать свой раздел):sudo mount /dev/sda /mnt. Если для загрузчика у вас выделен отдельный раздел, то нужно примонтировать еще и его (вместо /dev/sdX укажите ваш boot-раздел):sudo mount /dev/sdX /mnt/boot

3.Посмотреть содержимое директории /mnt, чтобы убедиться, что мы примонтировали верный раздел:ls /mnt.

4.Нужно создать ссылки на несколько директорий, к которым GRUB должен иметь доступ для обнаружения всех операционных систем. Для этого выполните команды:sudo mount --bind /dev /mnt/dev sudo mount --bind /dev/pts /mnt/dev/pts sudo mount --bind /proc /mnt/proc sudo mount --bind /sys /mnt/sys.Если у вас используется UEFI, то еще нужно примонтировать EFI-раздел в директорию /mnt/boot/efi :sudo mount /dev/nvme0n1p1 /mnt/boot/efi например…

5.Для генерации файла конфигурации GRUB используется команда update-grub. Данная команда автоматически определяет файловые системы на вашем компьютере и генерирует новый файл конфигурации. Выполняем команду:sudo update-grub.
Если вдруг утилита update-grub не определила ваш Windows ,то можно будет запустить update-grub повторно уже из вашей Linux-системы, когда вы в нее загрузитесь (мне это помогло и Windows определился).

6.Осталось выполнить установку GRUB на диск. Мы определили раздел на котором у нас установлен GRUB на первом шаге данного руководства. Это раздел /dev/sda.

Для установки GRUB используется команда grub-install, которой нужно передать в качестве параметра диск, на который будет выполняться установка (в моем случае это диск /dev/sda):grub-install /dev/sda.

7.Выходим из окружения chroot: exit.

8.Отмонтируем все разделы, которые мы примонтировали:sudo umount /mnt/sys sudo umount /mnt/proc sudo umount /mnt/dev/pts sudo umount /mnt/dev. Если вы монтировали boot-раздел, то его тоже нужно отмонтировать:sudo umount /mnt/boot.Если вы монтировали EFI-раздел, отмонтируем:sudo umount /mnt/boot/efi.Отмонтируем корневой раздел:sudo umount /mnt.

9.Перезагружаем компьютер:reboot.

Если во время перезагрузки компьютера меню GRUB не появилось, то это еще не значит, что он не восстановился. Возможно, просто установлена нулевая задержка и меню не показывается. Чтобы показать меню GRUB нужно во время загрузки, после того, как появился логотип материнской платы:
удерживать клавишу Shift, если у вас классический BIOS; нажать Esc, если у вас UEFI.

Если у вас, при выполнении grub-update, не определился Windows и не был добавлен в меню GRUB, то уже загрузившись в вашу систему Linux (не LiveCD), откройте терминал и выполните:sudo grub-update.

I get this error too, and I don’t think it happens in a chroot.

Background

I think this is when systemd cannot find the path because it is mounted in a directory. So, the difference is when you setup a chroot you already configure access to hardware, including drives.

Though you can configure this access inside Systemd that does not mean you can configure permissions for those drives the same way.

For instance, I created this file:

/etc/systemd/system/systemd-nspawn@.service.d/override.conf

And it contains these settings:

[Service]
DeviceAllow=char-usb_device rwm
DeviceAllow=char-usb
[Files]
Bind=/var/cache/apt/pkgcache.bin
Bind=/var/cache/apt/srcpkgcache.bin

This still does not work when using grub-install /dev/sda or update-grub for a USB on Pi debootstrapped with Debian Stretch. Even using grub-uboot and grub-efi-arm there is still that error the grub-probe cannot find the canonical path.

Not only that but though update-grub will see and know what the operating systems are, but interestingly grub-install does not recognize the Debian operating system is on USB.

Example

root@raspixmc:/home/pi# grub-install /dev/sda
Installing for arm-uboot platform.
grub-install: warning: no hints available for your platform. Expect 
reduced performance.
grub-install: warning: WARNING: no platform-specific install was 
performed.
Installation finished. No error reported.
root@raspixmc:/home/pi#

Interesting, when I create a chroot and can run update-grub, even though I am on the operating system that I debootstrapped to the USB itself it does not see its own operating system!

root@raspixmc:/home/pi# mount /dev/sda1 /mnt
root@raspixmc:/home/pi# cd /mnt
root@raspixmc:/mnt# mount --bind /dev dev/
root@raspixmc:/mnt# mount --bind /sys sys/
root@raspixmc:/mnt# mount --bind /proc proc/
root@raspixmc:/mnt# mount --bind /dev/pts dev/pts
root@raspixmc:/mnt# chroot . bin/bash
root@raspixmc:/# update-grub
Generating grub configuration file ...
Found Raspbian GNU/Linux 9 (stretch) on /dev/mmcblk0p2
done
root@raspixmc:/#

It only sees Raspbian. This happens only when trying to install and update GRUB inside the container, but when I exit the chroot.

Watch how it now works because I did not unmount the chroot directories:

/dev dev/
/sys sys/
/proc proc/
/dev/pts dev/pts

From outside the container mind you, I am running this command with grub-uboot installed on Raspbian and no Grub on the USB containing debootstrapped Debian.

root@raspixmc:/mnt# update-grub
Generating grub configuration file ...
Found Raspbian GNU/Linux 9 (stretch) on /dev/mmcblk0p2
Found Debian GNU/Linux 9 (stretch) on /dev/sda1
done
root@raspixmc:/mnt#

This does not happen using one of the unofficially available images for Debian ARM, but obviously this is still a customization not yet available for debootstrapping.

Troubleshooting

Really there are times when it is better just to create a path. The only next possibility (and a probable one) is to simply write GRUB. And for that I am just going to read on this page.

https://www.dedoimedo.com/computers/grub-2.html

Another thing I want to share about this issue is a solution that might work, but realize microSD cards are very sensitive. I have been building my own Linux images and learned this fast. The best thing to do is use Qemu whenever you can, but to attempt to clear an old partition table you might try running sgdisk --zap-all on the drive.

sgdisk --zap-all /dev/sdd

In fact, sometimes if it gives an error the first time and it is not a read-only error, you can run it again and it will finally all the partition tables new or old.

And you can use Qemu to emulate Raspberry Pi on a standard AMD/Intel-based PC. I would recommend it. I know this is more information than pertains to the original post, but I think that is likely how this error is derived. It is the container age.

I get this error too, and I don’t think it happens in a chroot.

Background

I think this is when systemd cannot find the path because it is mounted in a directory. So, the difference is when you setup a chroot you already configure access to hardware, including drives.

Though you can configure this access inside Systemd that does not mean you can configure permissions for those drives the same way.

For instance, I created this file:

/etc/systemd/system/systemd-nspawn@.service.d/override.conf

And it contains these settings:

[Service]
DeviceAllow=char-usb_device rwm
DeviceAllow=char-usb
[Files]
Bind=/var/cache/apt/pkgcache.bin
Bind=/var/cache/apt/srcpkgcache.bin

This still does not work when using grub-install /dev/sda or update-grub for a USB on Pi debootstrapped with Debian Stretch. Even using grub-uboot and grub-efi-arm there is still that error the grub-probe cannot find the canonical path.

Not only that but though update-grub will see and know what the operating systems are, but interestingly grub-install does not recognize the Debian operating system is on USB.

Example

root@raspixmc:/home/pi# grub-install /dev/sda
Installing for arm-uboot platform.
grub-install: warning: no hints available for your platform. Expect 
reduced performance.
grub-install: warning: WARNING: no platform-specific install was 
performed.
Installation finished. No error reported.
root@raspixmc:/home/pi#

Interesting, when I create a chroot and can run update-grub, even though I am on the operating system that I debootstrapped to the USB itself it does not see its own operating system!

root@raspixmc:/home/pi# mount /dev/sda1 /mnt
root@raspixmc:/home/pi# cd /mnt
root@raspixmc:/mnt# mount --bind /dev dev/
root@raspixmc:/mnt# mount --bind /sys sys/
root@raspixmc:/mnt# mount --bind /proc proc/
root@raspixmc:/mnt# mount --bind /dev/pts dev/pts
root@raspixmc:/mnt# chroot . bin/bash
root@raspixmc:/# update-grub
Generating grub configuration file ...
Found Raspbian GNU/Linux 9 (stretch) on /dev/mmcblk0p2
done
root@raspixmc:/#

It only sees Raspbian. This happens only when trying to install and update GRUB inside the container, but when I exit the chroot.

Watch how it now works because I did not unmount the chroot directories:

/dev dev/
/sys sys/
/proc proc/
/dev/pts dev/pts

From outside the container mind you, I am running this command with grub-uboot installed on Raspbian and no Grub on the USB containing debootstrapped Debian.

root@raspixmc:/mnt# update-grub
Generating grub configuration file ...
Found Raspbian GNU/Linux 9 (stretch) on /dev/mmcblk0p2
Found Debian GNU/Linux 9 (stretch) on /dev/sda1
done
root@raspixmc:/mnt#

This does not happen using one of the unofficially available images for Debian ARM, but obviously this is still a customization not yet available for debootstrapping.

Troubleshooting

Really there are times when it is better just to create a path. The only next possibility (and a probable one) is to simply write GRUB. And for that I am just going to read on this page.

https://www.dedoimedo.com/computers/grub-2.html

Another thing I want to share about this issue is a solution that might work, but realize microSD cards are very sensitive. I have been building my own Linux images and learned this fast. The best thing to do is use Qemu whenever you can, but to attempt to clear an old partition table you might try running sgdisk --zap-all on the drive.

sgdisk --zap-all /dev/sdd

In fact, sometimes if it gives an error the first time and it is not a read-only error, you can run it again and it will finally all the partition tables new or old.

And you can use Qemu to emulate Raspberry Pi on a standard AMD/Intel-based PC. I would recommend it. I know this is more information than pertains to the original post, but I think that is likely how this error is derived. It is the container age.

Find your drive that’s supposed to boot with

mount

Or

parted -l

Or

fdisk /dev/sda

And type p to list the partitions, look for type 83.

(If you’ve got Fedora you might have to use the commands vgs and lvs and if you’ve got mdraid you might have to cat /proc/mdstat or mdadm -A --scan or insmod raid1 or insmod raid5 and then mdadm -A --scan) and you will use /dev/md0 or /dev/mapper/my-vg instead of /dev/sda

then try mount it

mkdir /mnt
mount /dev/sda1 /mnt
cd /mnt
ls -l

Is this your drive? Cool!

grub-install --recheck --root-directory=/mnt /dev/sda 

(Or whichever /dev drive your root is, with it’s mounted path)

grub-install --recheck --root-directory=/mnt /dev/sda --force

(Force it if it doesn’t like your partitions.)

Now it should boot into grub, and you can use the grub commands to boot up, after rebooting and selecting the right boot drive from the BIOS Setup, or by pressing ESC, F8 or F12 depending on your BIOS and whether you are quick enough, then at the Grub prompt — you can use tab completion to find it if it’s not (hd0,1) but (hd1,3) or something else instead, but beware, tab completion sometimes hangs for a few seconds if grub can’t read the filesystem. Once booted into Grub you can try to boot with:

insmod linux
ls
root=(hd0,1)
linux /boot/vmlinuz root=/dev/sda1
initrd /boot/initrd
boot

Or, hopefully you’ve still got an intact grub.cfg file…

ls
ls (hd0,1)/
ls (hd0,1)/boot
configfile (hd0,1)/boot/grub.cfg

Grub 1 allows you to do the installation from Grub:

install (hd0,1)

Once booted from the correct drive, you can retry update-grub and grub-install. If it still fails, you can try:

grub-mkconfig -o /mnt/boot/grub/grub.cfg

Your paths may differ of course, so just play with these commands until you can see what’s where and what’s going on.

It might be a sign of imminent hard drive failure at worst, or at best maybe just a partition flag or boot file that got overwritten accidentally, or a deliberately- or accidentally broken installer from another OS.

  • Печать

Страницы: [1]   Вниз

Тема: Не удалось получить канонический путь «/cow».  (Прочитано 5306 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
Slasher40

Чёткое и внятное описание проблемы:
Здравствуйте, в Linux-е я новичок так что извиняюсь, предыстория:
Все началось с того что решил глубже окунуться в систему, на жесткий диск решил не ставить так как знаю откуда у меня растут руки. Поставил все на флешку с помощью Kali Linux (Так же на флешке с разделом: Persistence) ставил с помощью mkusb.

Нужно было установить драйвера Nvidia но он не применялся, в итоге оказалось что было мало места. Выделил место установилось но драйвер все так же не определяется. Устанавливал 396 драйвер, но все без успешно. Дальше раскрывая проблему понял что возможно нужно установить новое ядро Установил: 4.18.8 но как я понял дальше нужно было выбрать запуск с этого ядра. Решил воспользоваться: Grub Cosomizer но он выдает окно с: «grub-mkconfig не может быть успешно выполнен. Сообщение об ошибке: /usr/sbin/grub-probe: ошибка: не удалось получить канонический путь «/cow.» » Кнопка с выходом и изменением переменных сред, есть ошибка на: /boot/grub/device.map и /boot/grub/grub.cfg

Пробовал восстановить загрузчик,но безрезультатно вот лог: paste.ubuntu.com/p/tkMy3fYkwY/

Ошибка в загрузчике? И как исправить?

Заранее спасибо.

Правила форума
1.4. Листинги и содержимое текстовых файлов следует добавлять в сообщение с помощью тегов

Показать скрытое содержание

или [code]…[/code], либо прикреплять к сообщению в виде отдельного файла. Длинные гиперссылки следует оформлять при помощи тега [url=]…[/url]

  —Aleksandru

« Последнее редактирование: 21 Сентября 2018, 20:26:05 от Aleksandru »


Оффлайн
ecc83

решил глубже окунуться в систему, на жесткий диск решил не ставить

Это просто анекдот какой то…
Если нужно «окунуться», тогда выделяйте 20Гб дискового пространства и ставьте систему на диск.
Новые ядра не трогайте, разберитесь сначала со старыми…


Оффлайн
Slasher40

А по другому это ни как решить нельзя? Лишнего жесткого нет, да и приходится стартовать с разных компьютеров, а флешка с постоянным хранилищем это для меня единственное стоящее решение.


Оффлайн
ecc83

флешка с постоянным хранилищем это для меня единственное стоящее решение.

Тогда нужно использовать для этого специально собранные дистрибутивы. Например мне нравится Slax.

https://www.slax.org/el/

http://mirror.ppa.trinitydesktop.org/trinity-sb/cdimages/slax/

По ссылкам выше один и тот же дистрибутив с разным графическим окружением.

Устанавливать очень просто, из под Windows форматируется флешка FAT32, затем при помощи архиватора 7z распаковывается содержимое на флешку в каталог /slax. Потом заходишь на созданную флешку в папку /slax/boot и там нужно запустить файл bootinst.bat

После этого с этой флешки можно грузиться.

« Последнее редактирование: 21 Сентября 2018, 22:58:37 от ecc83 »


Оффлайн
Vitsliputsli

А с каких пор linux перестал работать с флешек? Работа с устройствами ввода/ввывода — это задача ядра, а оно одно (с определенными оговорками, конечно, но точно не в этом вопросе), так что по-большому счету без разницы что за дистрибутив.

Сообщение об ошибке: /usr/sbin/grub-probe: ошибка: не удалось получить канонический путь «/cow.»

Я так понимаю загружаетесь в систему восстановления, тогда попробуйте переключиться через chroot в созданную систему и там уже сгенерировать конфигурацию grub.


Оффлайн
Slasher40

попробуйте переключиться через chroot в созданную систему и там уже сгенерировать конфигурацию grub.

Можно по подробнее с этого момента, куда нажать и что сделать?


Оффлайн
Vitsliputsli


Оффлайн
AnrDaemon

А по другому это ни как решить нельзя? Лишнего жесткого нет, да и приходится стартовать с разных компьютеров, а флешка с постоянным хранилищем это для меня единственное стоящее решение.

Поставьте в виртуалку.

Хотите получить помощь? Потрудитесь представить запрошенную информацию в полном объёме.

Прежде чем [Отправить], нажми [Просмотр] и прочти собственное сообщение. Сам-то понял, что написал?…


Оффлайн
ecc83

куда нажать и что сделать?

Нажать никогда не поздно, главное, что бы это помогло

Пожалейте себя. Сделайте себе флешку за 15 минут по моей ссылке и останетесь здоровым и счастливым человеком.
Если же начнёте с перестановки ядра, то это у вас надолго.


  • Печать

Страницы: [1]   Вверх

Переустанавливал Win10.
Скачал live SL9 пишу в нем команду fdisk — пишет нет такой команды.
возможно скачать надо, но почему то нет wifi.

ничего не понимаю!


Записан


Скачал live SL9 пишу в нем команду fdisk — пишет нет такой команды.

Сначала нужно стать root:
su —


Записан


Сделал.
1. su —
2. fdisk -l
3. mount /dev/sda3 /mnt — там стоит SL, и звездочка на этом разделе, но тип системы почему то HPFS
4. grub-install —root-directory=/mnt /dev/sda

пошуршало и говорит — ок.

перезагружаюсь и вижу:
grub>

что с этим делать не знаю.

пробовал написать
update-grub —output=/mnt/boot/grub/grub.cfg
выдает сообщение:
не удалось получить канонический путь overlay


Записан


Скачал rescatux, загрузился с него, оно тоже ошибку выдало и не смогло ничего сделать.


Записан


4. grub-install —root-directory=/mnt /dev/sda

Не, неправильно. Надо сделать chroot:
https://altlinux.org/Chroot

И только потом (если legacy)
grub-install /dev/sda


Записан



Записан


chroot /mnt ??

Вряд ли он примонтирован в /mnt, если этого не сделали Вы.


Записан


4. grub-install —root-directory=/mnt /dev/sda

Не, неправильно. Надо сделать chroot:
https://altlinux.org/Chroot

И только потом (если legacy)
grub-install /dev/sda

мне так выдает ошибку «не удалось найти устройство для /boot/grub (/dev смонтирован?)»


Записан


Не, неправильно. Надо сделать chroot:
https://altlinux.org/Chroot

И только потом (если legacy)
grub-install /dev/sda

Разве в chroot можно обратиться к файлам /dev/sd*? Они же udev’ом создаются при загрузке ОС?


Записан


Не, неправильно. Надо сделать chroot:
https://altlinux.org/Chroot

И только потом (если legacy)
grub-install /dev/sda

Разве в chroot можно обратиться к файлам /dev/sd*? Они же udev’ом создаются при загрузке ОС?

Вы читали https://altlinux.org/Chroot ?
Там есть раздел «Подготовка к переходу в целевую систему». В нем показано как «биндятся» (mount —bind …) особые папки (/dev, и точно так же по необходимости /proc, /sys)


Записан



Записан


ошибка при обновлении системы

Автор ffrr, 10 марта 2014, 12:18:48

« назад — далее »

0 Пользователи и 1 гость просматривают эту тему.

При попытке обновить системы появляется ошибка:

Настраивается пакет grub-pc (2.00-22) ...
Установка завершена. Ошибок нет.
Генерируется grub.cfg ...
cat: /video.lst: Нет такого файла или каталога
/usr/sbin/grub-probe: ошибка: не удалось получить канонический путь .
/usr/sbin/grub-probe: ошибка: не удалось найти привод GRUB для . Проверьте device.map.
dpkg: error processing package grub-pc (--configure):
подпроцесс установлен сценарий post-installation возвратил код ошибки 1

куда копать?


ffrr, подробнее о своей системе, телепаты все в отпуске.


Сообщение объединено: 10 марта 2014, 12:26:00


fdisk -l
cat /boot/grub/device.map


Цитата: qupl от 10 марта 2014, 12:23:06ffrr, подробнее о своей системе, телепаты все в отпуске.

$  fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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
Disk identifier: 0x000be18f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    94326783    47162368    7  HPFS/NTFS/exFAT
/dev/sda2        94326784   189939711    47806464    7  HPFS/NTFS/exFAT
/dev/sda3   *   189941758   569714512   189886377+   5  Extended
Partition 3 does not start on physical sector boundary.
/dev/sda4       569714544   594880334    12582895+  a5  FreeBSD
/dev/sda5       242966528   303902719    30468096   83  Linux
/dev/sda6       303904768   311807999     3951616   82  Linux swap / Solaris
/dev/sda7       374310912   432683007    29186048   83  Linux
/dev/sda8       507121664   526651391     9764864   83  Linux
/dev/sda9       526653440   546183167     9764864   83  Linux
/dev/sda10      546185216   569714512    11764648+  83  Linux
/dev/sda11      311810048   336490495    12340224   83  Linux
/dev/sda12      336492544   343906303     3706880   83  Linux
/dev/sda13      362561536   374309582     5874023+  83  Linux
/dev/sda14      343908352   362555391     9323520   83  Linux
/dev/sda15      228995072   242966527     6985728   83  Linux
/dev/sda16      495587328   507107327     5760000   83  Linux
/dev/sda17      474609664   495572991    10481664   83  Linux
/dev/sda18      432685056   436961279     2138112   83  Linux
/dev/sda19      436963328   441329663     2183168   83  Linux
/dev/sda20      189941760   203806719     6932480   83  Linux
/dev/sda21      203808768   228990975    12591104   83  Linux
/dev/sda22      441331712   474607615    16637952   83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 7743 MB, 7743995904 bytes
239 heads, 62 sectors/track, 1020 cylinders, total 15124992 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 identifier: 0x0001b135

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63    15121031     7560484+   b  W95 FAT32
/dev/sdb2        15122432    15124479        1024    7  HPFS/NTFS/exFAT

$  cat /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-WDC_WD3200BPVT-24ZEST0_WD-WX81A71S9098

винт на ноуте не менял, ноут несколько месяцев не юзался….


Так ОС то какая?
Куда установлен grub?
sdb — это флешка?



Загрузитесь с HDD (без флешки) и попробуйте

update-grub


# update-grub
Генерируется grub.cfg ...
cat: /video.lst: Нет такого файла или каталога
/usr/sbin/grub-probe: ошибка: не удалось получить канонический путь .
/usr/sbin/grub-probe: ошибка: не удалось найти привод GRUB для . Проверьте device.map.

$  cat /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-WDC_WD3200BPVT-24ZEST0_WD-WX81A71S9098


echo vbe | sudo tee /boot/grub/video.lst
update-grub


всё равно тоже самое:

# update-grub
Генерируется grub.cfg ...
cat: /video.lst: Нет такого файла или каталога
/usr/sbin/grub-probe: ошибка: не удалось получить канонический путь .
/usr/sbin/grub-probe: ошибка: не удалось найти привод GRUB для . Проверьте device.map.


Покажите

cat /etc/default/grub

Самый простой способ переустановить grub с liveCD.


Русские дебианщики против цифрового слабоумия !


Цитата: qupl от 10 марта 2014, 14:23:17cat /etc/default/grub

$  cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT="Debian"
GRUB_TIMEOUT="-1"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
GRUB_GFXMODE="1024x768x24"
GRUB_DISABLE_RECOVERY="true"
export GRUB_MENU_PICTURE="/home/slawa/Изображения/Lake_Bondhus_Norway_2862.jpg"
export GRUB_COLOR_NORMAL="black/black"
export GRUB_COLOR_HIGHLIGHT="green/black"
GRUB_SAVEDEFAULT="true"
GRUB_FONT="/boot/grub/unicode.pf2"


Сообщение объединено: 11 марта 2014, 22:07:22


Цитата: qupl от 10 марта 2014, 14:23:17Самый простой способ переустановить grub с liveCD.

переустановил grub с live-cd, но таже ошибка выскакивает((



ноут несколько месяцев вообще не юзался… ну вспомнил, что осенью ставил suse workstation и снёс её, но это ж вряд ли могло повлиять?


# env
XDG_VTNR=7
XDG_SESSION_ID=2
SSH_AGENT_PID=8863
DM_CONTROL=/var/run/xdmctl
GLADE_PIXMAP_PATH=:
GPG_AGENT_INFO=/run/user/1000/keyring-2MfIep/gpg:0:1
XDG_MENU_PREFIX=xfce-
SHELL=/bin/bash
TERM=xterm
XDM_MANAGED=method=classic,auto
XDG_SESSION_COOKIE=f2f6e1ef72b60fbb293ae27200000eb5-1394614779.787927-332933554
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-2MfIep
http_proxy=
USER=root
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
GLADE_MODULE_PATH=:
SSH_AUTH_SOCK=/run/user/1000/keyring-2MfIep/ssh
ftp_proxy=
SESSION_MANAGER=local/soho:@/tmp/.ICE-unix/8879,unix/soho:/tmp/.ICE-unix/8879
XDG_CONFIG_DIRS=/etc/xdg
MAIL=/var/mail/root
DESKTOP_SESSION=xfce
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/home/slawa
LANG=ru_UA.UTF-8
GNOME_KEYRING_PID=9023
SHLVL=2
HOME=/root
XDG_SEAT=seat0
LANGUAGE=ru_UA:ru
LOGNAME=root
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-4NJeMbzjNx,guid=956d878e0e728643e68f6f72532020e3
XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/:/usr/share
LESSOPEN=| /usr/bin/lesspipe %s
WINDOWPATH=7
DISPLAY=:0.0
XDG_RUNTIME_DIR=/run/user/1000
GLADE_CATALOG_PATH=:
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env


Цитата: ffrr от 12 марта 2014, 13:02:31ну вспомнил, что осенью ставил suse workstation и снёс её, но это ж вряд ли могло повлиять?

Если в другой раздел ставили и без замены загрузчика, то не могло.

Он пути у вас не те какие-то ищет.
Покажите что предложит на

aptitude reinstall grub-pc


Вверх
Страницы1 2 3 4 5 6

Понравилась статья? Поделить с друзьями:
  • Grub install dummy неисправимая ошибка
  • Grub install dev sda ошибка
  • Grounded ошибка при создании лобби
  • Grounded ошибка подключения к совместной игре
  • Grounded ошибка microsoft visual c runtime