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.
$ sudo update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of `none'.
This is the situation I’m in after an interrupted upgrade from vivid to wily
[edit]
Further delving into grub source code, the second command is probably the failing one:
$ grub-probe --target=device /
/dev/md2
$ grub-probe --target=device /boot
grub-probe: error: failed to get canonical path of `none'.
The following also gives the error:
$ sudo grub-probe -t device /boot/grub
grub-probe: error: failed to get canonical path of `none'.
$ sudo grub-probe -t fs_uuid /boot/grub
grub-probe: error: failed to get canonical path of `none'.
[/edit]
I don’t have /boot/grub/grub.cfg present (or older /boot/grub/menu.lst)
It was impossible to install a boot loader during grub configuration:
Grub failed to install on the available options (/dev/sda /dev/sdb or /dev/md2)
md1 wasn’t given as an option, even though it is currently mounted at /boot :
$ cat /etc/fstab
proc /proc proc defaults 0 0
/dev/md/0 none swap sw 0 0
/dev/md/1 /boot ext3 defaults 0 0
/dev/md/2 / ext4 defaults 0 0
I’ve got a raid setup with /dev/sda and /dev/sdb anyhow:
$ sudo fdisk -l
Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 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: 0x00032e61
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 8390656 8388609 4G fd Linux raid autodetect
/dev/sda2 8392704 9441280 1048577 512M fd Linux raid autodetect
/dev/sda3 9443328 937701040 928257713 442.6G fd Linux raid autodetect
Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 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: 0x00074c3d
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 8390656 8388609 4G fd Linux raid autodetect
/dev/sdb2 8392704 9441280 1048577 512M fd Linux raid autodetect
/dev/sdb3 9443328 937701040 928257713 442.6G fd Linux raid autodetect
Disk /dev/md2: 442.5 GiB, 475133575168 bytes, 927995264 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/md0: 4 GiB, 4292804608 bytes, 8384384 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/md1: 511.7 MiB, 536543232 bytes, 1047936 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
Grub appears to be installed (detection from another answer on serverfault):
$ sudo dd bs=512 count=1 if=/dev/sda 2>/dev/null | strings
ZRr=
`|f
|f1
GRUB
Geom
Hard Disk
Read
Error
When I run grub-emu, I get a blank prompt:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
This is on a server with only ssh access so I don’t have access to the live CD if grub fails!
[edit] output of df -h:
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 63G 0 63G 0% /dev
tmpfs 13G 714M 12G 6% /run
/dev/md2 436G 178G 236G 44% /
tmpfs 63G 8.0K 63G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 63G 0 63G 0% /sys/fs/cgroup
none 436G 178G 236G 44% /boot
tmpfs 13G 0 13G 0% /run/user/0
tmpfs 13G 0 13G 0% /run/user/1002
/dev/md2 436G 178G 236G 44% /var/cache/apt/archives
none 436G 178G 236G 44% /bin
none 436G 178G 236G 44% /etc
none 436G 178G 236G 44% /initrd
none 436G 178G 236G 44% /lib
none 436G 178G 236G 44% /lib32
none 436G 178G 236G 44% /lib64
none 436G 178G 236G 44% /sbin
none 436G 178G 236G 44% /usr
none 436G 178G 236G 44% /var
[further edit] the above command seems to report that /boot is mounted at none. I think this might be the none grub-probe is complaining about. Here’s the output of mount -l which shows two separate mount ‘entries’; investigating how to remove the second now.
mount -l |grep boot
/dev/md1 on /boot type ext3 (rw,relatime,data=ordered)
none on /boot type aufs (rw,relatime,si=6ea5aad590be877d)
Для восстановления 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.
$ sudo update-grub /usr/sbin/grub-probe: error: failed to get canonical path of `none'.Это ситуация, в которой я нахожусь после прерванного обновления от яркого до wily
[edit]
Дальнейшее углубление в исходный код grub, вторая команда возможно, сбой:
$ grub-probe --target=device / /dev/md2 $ grub-probe --target=device /boot grub-probe: error: failed to get canonical path of `none'.Следующее также дает ошибку:
$ sudo grub-probe -t device /boot/grub grub-probe: error: failed to get canonical path of `none'. $ sudo grub-probe -t fs_uuid /boot/grub grub-probe: error: failed to get canonical path of `none'.[/ edit]
У меня нет /boot/grub/grub.cfg present (или старше /boot/grub/menu.lst)
Не удалось установить загрузчик во время конфигурации grub:
http://imgur.com/a/ LqPa8
Grub не смог установить доступные параметры (/dev/sda /dev/sdb или /dev/md2)
md1 не был предоставлен в качестве опции, хотя это в настоящее время установлен в / boot:
$ cat /etc/fstab proc /proc proc defaults 0 0 /dev/md/0 none swap sw 0 0 /dev/md/1 /boot ext3 defaults 0 0 /dev/md/2 / ext4 defaults 0 0У меня есть установка рейда с / dev / sda и / dev / sdb в любом случае:
$ sudo fdisk -l Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 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: 0x00032e61 Device Boot Start End Sectors Size Id Type /dev/sda1 2048 8390656 8388609 4G fd Linux raid autodetect /dev/sda2 8392704 9441280 1048577 512M fd Linux raid autodetect /dev/sda3 9443328 937701040 928257713 442.6G fd Linux raid autodetect Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 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: 0x00074c3d Device Boot Start End Sectors Size Id Type /dev/sdb1 2048 8390656 8388609 4G fd Linux raid autodetect /dev/sdb2 8392704 9441280 1048577 512M fd Linux raid autodetect /dev/sdb3 9443328 937701040 928257713 442.6G fd Linux raid autodetect Disk /dev/md2: 442.5 GiB, 475133575168 bytes, 927995264 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/md0: 4 GiB, 4292804608 bytes, 8384384 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/md1: 511.7 MiB, 536543232 bytes, 1047936 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytesGrub, похоже, установлен (обнаружение из http://imgur.com/a/LqPa8 on serverfault):
$ sudo dd bs=512 count=1 if=/dev/sda 2>/dev/null | strings ZRr= `|f |f1 GRUB Geom Hard Disk Read ErrorКогда я запускаю grub-emu, я получаю пустое приглашение:
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 15.10 Release: 15.10 Codename: wilyЭто на сервере с единственным доступом ssh, поэтому у меня нет доступа к live CD, если grub не работает!
[e dit] выхода df -h:
$ df -h Filesystem Size Used Avail Use% Mounted on udev 63G 0 63G 0% /dev tmpfs 13G 714M 12G 6% /run /dev/md2 436G 178G 236G 44% / tmpfs 63G 8.0K 63G 1% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 63G 0 63G 0% /sys/fs/cgroup none 436G 178G 236G 44% /boot tmpfs 13G 0 13G 0% /run/user/0 tmpfs 13G 0 13G 0% /run/user/1002 /dev/md2 436G 178G 236G 44% /var/cache/apt/archives none 436G 178G 236G 44% /bin none 436G 178G 236G 44% /etc none 436G 178G 236G 44% /initrd none 436G 178G 236G 44% /lib none 436G 178G 236G 44% /lib32 none 436G 178G 236G 44% /lib64 none 436G 178G 236G 44% /sbin none 436G 178G 236G 44% /usr none 436G 178G 236G 44% /var[далее редактирование], приведенная выше команда сообщает, что / boot установлен на none. Я думаю, что это может быть none grub-probe жалуется. Вот результат работы mount -l, который показывает две отдельные записи монтирования; исследуя, как удалить второй сейчас.
mount -l |grep boot /dev/md1 on /boot type ext3 (rw,relatime,data=ordered) none on /boot type aufs (rw,relatime,si=6ea5aad590be877d)
ошибка при обновлении системы
Автор 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
- Печать
Страницы: [1] Вниз
Тема: Не удалось получить канонический путь «/cow». (Прочитано 5305 раз)
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. Листинги и содержимое текстовых файлов следует добавлять в сообщение с помощью тегов [spoiler]…[/spoiler] или [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] Вверх