Failed to get canonical path of cow что это
Перейти к содержимому

Failed to get canonical path of cow что это

  • автор:

How To Fix “Failed to Get Canonical Path of `/cow`” Error in Grub2 on Ubuntu Persistent USB Drive

Ubuntu 2

When working with Ubuntu on a persistent USB drive, you may encounter the error message “Failed to get canonical path of /cow ” while trying to update the GRUB bootloader. This error typically arises because the GRUB on a LiveUSB is read-only, even with persistence enabled. This article will guide you through the process of resolving this issue.

Quick Answer

To fix the «Failed to Get Canonical Path of /cow » error in Grub2 on an Ubuntu persistent USB drive, the recommended solution is to use an installed release of Ubuntu on a separate USB stick. This allows you to have a writable GRUB and modify the necessary configuration file to resolve the error.

Table of Contents

  1. Understanding the Error
  2. Solutions
    • 1. Remake the entire LiveUSB image
    • 2. Use an installed release of Ubuntu on a USB stick
  3. Step-by-Step Guide to Using an Installed Release of Ubuntu on a USB Stick
  4. Conclusion

Understanding the Error

Before we dive into the solution, let’s understand the error. The Canonical Path of /cow error occurs when you execute the command sudo update-grub in a persistent USB mode of Ubuntu. This is because the Grub2 bootloader on a LiveUSB is read-only, even with persistence enabled, which makes it impossible to modify the file /etc/default/grub, specifically the line “GRUB_CMDLINE_LINUX_DEFAULT=”.

Solutions

There are a couple of ways to fix this error and make changes to GRUB:

1. Remake the entire LiveUSB image

This method involves creating a new LiveUSB with the desired changes to the /etc/default/grub file. However, this process can be complex and is not recommended unless you are familiar with creating custom LiveUSB images.

2. Use an installed release of Ubuntu on a USB stick

Instead of using the LiveUSB’s “Try Ubuntu” environment, you can install Ubuntu onto a separate USB stick. This installed version of Ubuntu will have a writable GRUB, allowing you to modify the /etc/default/grub file and execute “sudo update-grub” successfully.

Step-by-Step Guide to Using an Installed Release of Ubuntu on a USB Stick

This is the recommended solution for most users. Here’s a step-by-step guide:

  1. Install Ubuntu on a USB stick: Instead of using the LiveUSB’s “Try Ubuntu” environment, install Ubuntu onto a separate USB stick. This will give you a writable GRUB.
  2. Boot from the USB stick: Once Ubuntu is installed on the USB stick, boot your system from this USB stick.
  3. Open Terminal: Once you’re in the Ubuntu environment, open the Terminal.
  4. Modify the GRUB file: Use the command sudo nano /etc/default/grub to open the GRUB configuration file. Find the line that reads “GRUB_CMDLINE_LINUX_DEFAULT=” and make the necessary changes.
  5. Update GRUB: After making the changes, save the file and exit. Then, update GRUB by running the command sudo update-grub .

This command updates the GRUB bootloader with the changes you made in the configuration file. The sudo prefix gives you superuser permissions necessary to modify system files, update-grub is the command to update the GRUB bootloader.

After following these steps, you should no longer see the “Failed to get canonical path of /cow ” error when updating GRUB.

Conclusion

The “Failed to get canonical path of /cow ” error in Grub2 on an Ubuntu persistent USB drive can be a bit of a headache, but it’s not insurmountable. By using an installed release of Ubuntu on a USB stick, you can easily modify the GRUB configuration and avoid this error. Remember to always be careful when modifying system files and to only make changes you understand. Happy coding!

What is a persistent USB drive?

A persistent USB drive is a USB drive that allows you to save data and settings even after you shut down or reboot your computer. It essentially acts as a portable operating system that you can carry with you and use on different computers.

Can I fix the “Failed to get canonical path of `/cow`” error without using an installed release of Ubuntu on a USB stick?

While it is possible to fix the error by remaking the entire LiveUSB image, this process can be complex and not recommended for most users. Using an installed release of Ubuntu on a USB stick is the recommended and easier solution for resolving the error.

Не ставится grub выходит ошибка grub-install: error: failed to get canonical path of « /cow». что делать?

Всем привет. не могу поставить 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.

  • Вопрос задан более трёх лет назад
  • 28298 просмотров

Комментировать
Решения вопроса 0
Ответы на вопрос 1

kipishio

kipishio kipishio @kipishio Автор вопроса

Решил проблему с установкой на 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» и нажал установка и все встало без проблем.

GRUB на отдельный раздел

Нужна помощь в установке grub на отдельный раздел жесткого диска MBR.
Что я сделал и на чем застрял. Начнем с того, что сделано.
1. Создал раздел и выделил ему место в 5 ГБ. (ext2)
2. Запустил с загрузочной флешки образ ubuntu.
3. Открыл терминал и вписал поочередно следующие команды.
— sudo su
— fdisk -l
— mount /dev/sda10 /mnt
— grub-install —boot-directory=/mnt/boot /dev/sda
до этого этапа все было нормально grub загрузчик виден, но осталось создать grub.cfg и сделать его update.
4. grub-mkconfig -o /mnt/boot/grub/grub.cfg
Следующее, что будет написано выдал терминал и отказался создавать конфигурационный файл.

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

Я не совсем понял, что это и как с этим бороться. Подскажите в чем проблема?

P.S.
На ЖД MBR и на нем 7 разделов.
— windows 7 (Активный раздел)
— linux swap
— linux (x4)
— booter (где находится загрузчик)

94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
Ответы с готовыми решениями:

Отдельный раздел /etc
Разбил я винт на части, всё продумал, сделал отдельно /etc, так как там хранятся настройки, но.

GRUB на gpt раздел как второй загрузчик на втором диске
Здравствуйте. Возникла проблема с установкой. Дистрибутив Arch. Стоят два диска. Один — MBR с 7-й.

Создаем /boot/grub/grub.conf ?
Теперь мы заполним grub.conf нашими значениями для чего ?

Переход с grub-pc на grub-efi
Всем привет. Решил обновить свой старенький комп. Но вопрос вызывает то, что на новом компе уже.

Не могу установить GRUB. grub-install: error: failed to get canonical path of `aufs’.

«необходимо узнать Вашу таблицу разделов. Используйте команду:
sudo fdisk -l
На экран должна быть выведена примерно такая таблица:
/dev/sda1 29 8369 66999082+ 83 Linux
/dev/sda2 * 8370 13995 45190845 7 HPFS/NTFS
/dev/sda3 13996 14593 4803435 5 Extended
Из таблицы видим, что Linux стоит (в нашем случае) на разделе /dev/sda1
Теперь подключим этот раздел в /mnt следующей командой:
sudo mount /dev/sda1 /mnt
Затем, для записи grub в MBR, вводите следующую команду:
sudo grub-install —root-directory=/mnt /dev/sda
В случае, если нужно только восстановить MBR диска (например, после переустановки Windows), то этого достаточно.
Если нужно обновить и меню grub (например, после установки Windows), то нужно сделать:
sudo update-grub —output=/mnt/boot/grub/grub.cfg»

там указана правильная команда на запись grub

Like LinuxГуру (4465) 6 лет назад
Все смонтировано, да и команду я верную ввожу. Здесь не в этом ошибка
セルゲイチェルノフ Искусственный Интеллект (223911) тогда ищите в чём ошибка.
Like LinuxГуру (4465) 6 лет назад
Требуется не обновление его параметров, а установка

Мюнхгаузен Искусственный Интеллект (123280) Ну тогда начнём с начала. Как устанавливать собрались? Откуда и чем? Как у Вас оказалась установлена операционная система без загрузчика?

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *