- Forum
- The Ubuntu Forum Community
- Ubuntu Official Flavours Support
- Installation & Upgrades
- [SOLVED] update-grub error {cannot find device for /}
-
update-grub error {cannot find device for /}
Hello every1, I’ve been trying to install xubuntu on my Asus EEE 1101ha, which is known to present some problems due to lack of efficient poulsbo drivers. By following the instructions in the official documentation of Ubuntu, I managed to reach a working live CD environment and install Xubuntu. The next step I had to follow was to edit a grub text and then update grub for the changes to take effect {If I discarded this step, grub wouldn’t load, giving me an error message which I will mention if needed}. Unfortunately, when I used «sudo update-grub» to update it, the following error came up:
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
I mounted all the filesystems yet it didn’t help. I tried running grub-probe by double clicking it, but again it didn’t seem to run, nor was grub updated since it kept giving me the same error. I googled the error a bit, but although I tried a thing or two, it was no use. Any help would be appreciated.
-
Re: update-grub error {cannot find device for /}
It sounds like you’re trying to make the grub changes on your (Xubuntu-installed) filesystem from a LiveCD. Is that correct? Please do explain what was wrong in the first place requiring a change.
If you are indeed running update-grub from a live CD you’ll need to mount the virtual filesystems and chroot first:
Code:
# Mount root partition: sudo mount /dev/sdXY /mnt # /dev/sdXY is your root partition, e.g. /dev/sda1 # If you have a separate boot partition you'll need to mount it also: sudo mount /dev/sdYY /mnt/boot # Mount your virtual filesystems: for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done # Chroot sudo chroot /mnt
NOW you can do grub-install and update-grub and whatnot and it’ll operate on your installed system rather than the LiveCD.
-
Re: update-grub error {cannot find device for /}
Hey I’m was having the same problem with 32bit and trying to setup dual boot with xp (got 32bit working minus some drivers missing as a solo OS never dual) but have 4gb ram so wanted to use 64bit to utilize hardware n figured id just emulate xp if I have too, but while installing 64bit server or desktop, I cannot get around this error.
I was given a vaio vpcz11cgx/x, has dual solid state drives Im pretty sure it’s raid0. I’ve tried letting it auto setup on (striped drive) and errors on bootloader install. /dev/mapper is what shows up as default it, I’ve tried /dev/sda and the Ubuntu OS partition, blank partitions fat/ext/blank on beginning and end of disk =P. On manual partitions I’ve tried just ext4 n swap space as primary, I’ve left a 2gb primary partition to instal grub n put ext4 n swap in extended logical partition, also tried 2gb primary with ext as primary n swap on extended. I think my error due to either a raid config or partitioning… Lol or both
Also curious which has a more stability 64bit server or desktop. Thanx for help in advanced.
-
Re: update-grub error {cannot find device for /}
The virtual filesystems are not found. What do I do wrong? Sry, I’m kinda new to linux… heres what I type and what it returns:
Code:
xubuntu@xubuntu:~$ for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done mount: mount point /mnt/dev does not exist mount: mount point /mnt/dev/pts does not exist mount: mount point /mnt/proc does not exist mount: mount point /mnt/sys does not exist mount: mount point /mnt/run does not exist
I reinstalled Xubuntu in a single partition choosing the automatic installation option. The root partition is therefore /dev/sda1. What is there to be done then?
P.S. You guessed right, I’m using the console from a Live USB stick
-
Re: update-grub error {cannot find device for /}
The error message usually means the system partition was not mounted properly. Did you mount your real xubuntu partition (sda1) on /mnt before running the command?
You might try installing Boot Repair (see link in my sig line) from the LiveCD/USB Desktop and let it try to fix GRUB. If it can’t do it with the «Recommended repair» button there is an Advanced option that can take you through the ‘chroot’ method.
If neither of the Boot Repair options fixes things, it has an option to run a boot info script, which can provide us with information we need to give you more specific advice.
-
Re: update-grub error {cannot find device for /}
Nvm, although the update-grub didn’t work so the text file wasn’t modified, grub2 loads normally and I finally booted xubuntu from the hard disk installation. I hope grub keeps that way. I won’t label the thread as solved today, cause, I’m not still sure about how stable grub is. Furthermore, maybe Bluphx can get some help from here before I close it. Thanks again for your help guys, I hope someday I’ll be amongst you who offer help around here.
-
Re: update-grub error {cannot find device for /}
Yo thanx for the heads up, Im going to try to run the bootrepair program if this install doesn’t work. I’ve setup the partition in gpart before hand this time as:
ATARaid volume 0 238.48gb /dev/mapper/isw_bfdjejgiae
extended 238.48gb
ext4 200gb
unallocated 39gb
linux-swap 4.2gb
unallocated 4mbI have left 4mb on the end of the drive b/c all the other screens and my other computer that runs ubuntu fine has an extra 2mb on end of HD. I’ve also left 39gb floating between ext4 and swap b/c if i can get a working install I’d like a XP partition to dualboot or VM from.
All goes fine till very end of install n get a GRUB error and ask to reselect where to install boot. Default it tries /dev/mapper/, i’ve tried volume #’s and sda/b/ect.
Thanx again in advanced, ex apple genius so starting to learn the lingo n new ways of ubuntu.
-
Re: update-grub error {cannot find device for /}
Here I am again… ok, I don’t know how I did it, but it seems like grub tries to load from the live usb, even though I have already installed xubuntu on the hard disk. Here’s the case: If I try to load xubuntu from the hard disk without having the usb stick plugged, grub doesn’t load. If I plug the usb stick, grub loads normally and xubuntu boots from the hard disk {This means I can’t even boot from the live usb, yet I can’t boot from hard disk without it!}. So… please tell me some good news… I will keep you updated in case I successfully update grub and solve this nonsense
-
Re: update-grub error {cannot find device for /}
Well… I’ve done all I could. I followed all three steps of this guide: https://wiki.ubuntu.com/HardwareSupp…oCardsPoulsbo/
yet nothing changed. I still need the usb stick to boot. If I don’t use it, grub doesn’t start and I only see a flashing cursor. I believe that the problem lies in that grub tries to load from the usb stick instead of the hard disk. I came to this conclusion after I prompted:
sudo update-grub
in order to finish the third option given on the guide linked above, for as soon as I pressed enter the usb started flashing, indicating data transmission to the usb stick! I don’t believe its a coincidence. I prompted «sudo update-grub» while the console was running from the hard disk, but I believe that this commanded the update of the usb stick’s grub. When I removed the usb stick and retried using the update-grub command, the update was again completed successfully {Which means that after I removed the usb stick, the command now went for the hard disk’s grub… right? :O} Omg I know all this is confusing but, does anyone know some way to direct grub startup to the hard disk’s grub installation {In human terms: I want the .txt file where the grub boot path is written, so that I can modify it to lead grub to boot from the hard disk}? Or is it something else? Help!!!
-
Re: update-grub error {cannot find device for /}
Odys1,
Normally all that should be required is to change your boot drive’s MBR instructions to point to your Ubuntu partition rather than the external device. You do this with the ‘grub-install’ command.
Boot to your normal Ubuntu OS (even if it requires using the USB initially). After it boots, run the following command, using the correct drive letter. Just make sure the drive designation is what you think it is (sda, sdb, etc). You can run «sudo fdisk -l» to check first if necessary. Do NOT use the partition number:
Code:
sudo grub-install /dev/sda
The next time you boot just make sure the external is not inserted and the BIOS should look to the sda drive’s MBR for instructions on where the bootloader files are located.
Tags for this Thread
Bookmarks
Bookmarks

Posting Permissions
- Печать
Страницы: [1] Вниз
Тема: проблема с grub после удаления ubuntu. HELP!!! (Прочитано 5550 раз)
0 Пользователей и 1 Гость просматривают эту тему.

mr.bl
Вчера поставил на ноутбук(Sony Vaio vpc-s13x9r) ubuntu-10.10-dvd-i386 (desktop), но оказалось что в ноутбуках сони какаято не стандартная матрица(или что то типо того), ну вообщем ubuntu отображжалась только на внешнем экране(на самом ноутбуке черный экран просто), я решил снести Ubuntu, запустил Windows 7 на нем Acronis и отформатировал раздел на котором была установлена Ubuntu…
После перезапуска высветилось:
error: no such partiton.
grub rescue>
как это исправить?!
p.s. Диска Windows 7 нету
зачем я только полез в линукс?…

лесной_зонтик
Способов много, к примеру
1. запустить livecd Ubuntu и закачать liveusb версию винды, залить на флешку и востановить с её помощью загрузчик.
2. опять же загрузится с livecd Ubuntu, в освободившемся месте создать раздел ext2 в несколько мегабайт.
подключить его.
выполнить sudo update-grub
sudo grub-install —root-directory=/точка_монтирования_созданного_раздела /dev/sda
после чего скопировать /boot/grub/grub.cfg в boot/grub/ на твоём созданном разделе.
перезагрузиться и зайти в винду, а там уже либо опять скачать винду и с ёё помощью окончательно восстановить загрузчик винды или поставить acronis os selector (вроде так завётся)
Моя мечта поставить на комп Linux, Unix, *BSD, Mac OS X, OpenSolaris, OS/2, Windows.
Не спрашивайте зачем. Сам не знаю

mr.bl
создать раздел ext2 в несколько мегабайт.
подключить его.
как?
выполнить sudo update-grub
как?
точка_монтирования_созданного_раздела
что это? типо емли винда на /media/D0FC7AA9FC7A898C и /dev/sda3 то будет так «sudo grub-install —root-directory=/тmedia/D0FC7AA9FC7A898C /dev/sda3» на линуксе сидел всего один раз до этого, поэтому хз как и что в нем %)
зачем я только полез в линукс?…

Phlya
создать раздел ext2 в несколько мегабайт.
подключить его.как?
выполнить sudo update-grub
как?
точка_монтирования_созданного_раздела
что это? типо емли винда на /media/D0FC7AA9FC7A898C и /dev/sda3 то будет так «sudo grub-install —root-directory=/тmedia/D0FC7AA9FC7A898C /dev/sda3»
на линуксе сидел всего один раз до этого, поэтому хз как и что в нем %)
1) C помощью GParted, там все довольно понятно, как сделать.
2) В терминале пишете sudo update grub.
3) Нет, не винда, а созданный раздел ext2
Ubuntu 14.04 (Unity), MSI GE40

SidER
Вот ссылка
В этой статье описано несколько вариантов восстановления grub.

mr.bl
у меня нечего не получается,
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@ubuntu:~$ sudo update-grub
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
ubuntu@ubuntu:~$ sudo update-grub
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
ubuntu@ubuntu:~$ /boot sudo update-grub
bash: /boot: является директорией
ubuntu@ubuntu:~$ sudo update-grub /boot
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
ubuntu@ubuntu:~$ sudo update-grub
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/grub /dev/sda5/usr/sbin/grub-probe: error: cannot find a device for /grub/boot/grub (is /dev mounted?).
ubuntu@ubuntu:~$ sudo GParted
sudo: GParted: command not found
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/grub /dev/sda
/usr/sbin/grub-probe: error: cannot find a device for /grub/boot/grub (is /dev mounted?).
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/grub /dev/sda
/usr/sbin/grub-probe: error: cannot find a device for /grub/boot/grub (is /dev mounted?).
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/ /dev/sda
/usr/sbin/grub-probe: error: cannot find a device for //boot/grub (is /dev mounted?).
ubuntu@ubuntu:~$ clear
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/dev/sda
install_device not specified.
Usage: grub-install [OPTION] install_device
Install GRUB on your drive.
-h, --help print this message and exit
-v, --version print the version information and exit
--modules=MODULES pre-load specified modules MODULES
--root-directory=DIR install GRUB images under the directory DIR
instead of the root directory
--grub-setup=FILE use FILE as grub-setup
--grub-mkimage=FILE use FILE as grub-mkimage
--grub-probe=FILE use FILE as grub-probe
--no-floppy do not probe any floppy drive
--recheck probe a device map even if it already exists
--force install even if problems are detected
--disk-module=MODULE disk module to use
INSTALL_DEVICE can be a GRUB device name or a system device filename.
grub-install copies GRUB images into /boot/grub (or /grub on NetBSD and
OpenBSD), and uses grub-setup to install grub into the boot sector.
If the --root-directory option is used, then grub-install will copy
images into the operating system installation rooted at that directory.
Report bugs to <bug-grub@gnu.org>.
ubuntu@ubuntu:~$ clear
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/grub
> sudo grub-install --root-directory=/grub
/usr/sbin/grub-probe: error: cannot find a device for /grub/boot/grub (is /dev mounted?).
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/grub /dev/sda
/usr/sbin/grub-probe: error: cannot find a device for /grub/boot/grub (is /dev mounted?).
ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
mount: специальное устройство /dev/sda5 не существует
ubuntu@ubuntu:~$ sudo mount /dev/sda4 /mnt
mount: специальное устройство /dev/sda4 не существует
ubuntu@ubuntu:~$ sudo mount /dev/sda3 /mnt
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/tmp /dev/sda
/usr/sbin/grub-probe: error: cannot find a device for /tmp/boot/grub (is /dev mounted?).
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/grub /dev/sdagrub
/usr/sbin/grub-probe: error: cannot find a device for /grub/boot/grub (is /dev mounted?).
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/grub /dev/sda3
/usr/sbin/grub-probe: error: cannot find a device for /grub/boot/grub (is /dev mounted?).
ubuntu@ubuntu:~$ sudo fdisk -l
Диск /dev/sda: 500.1 ГБ, 500107862016 байт
255 heads, 63 sectors/track, 60801 cylinders
Units = цилиндры of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb3ecb200
Устр-во Загр Начало Конец Блоки Id Система
/dev/sda1 1 1362 10936320 27 Неизвестный
/dev/sda2 * 1362 1375 102400 7 HPFS/NTFS
/dev/sda3 1375 60704 476562500 7 HPFS/NTFS
ubuntu@ubuntu:~$ ^C
ubuntu@ubuntu:~$
Пользователь решил продолжить мысль 14 Января 2011, 01:40:39:
Напишите пожалуйста как можно подробней все что мне надо сделать, как сделать и тд.
Windows распаложена /dev/sda3
« Последнее редактирование: 14 Января 2011, 01:40:39 от mr.bl »
зачем я только полез в линукс?…

лесной_зонтик
короче, дай вывод
sudo blkid
Моя мечта поставить на комп Linux, Unix, *BSD, Mac OS X, OpenSolaris, OS/2, Windows.
Не спрашивайте зачем. Сам не знаю

mr.bl
Способов много, к примеру
liveusb версию винды, залить на флешку и востановить с её помощью загрузчик.
а можно про этот способ поподробней? и если можно то скажите где скачать liveusb версию винды?
зачем я только полез в линукс?…

лесной_зонтик
Честно говоря, не знаю, т.к. не пользуюсь виндой, могу лишь предложить поискать в гугле.
Есть еще один способ, который я забыл, это опять поставить Ubuntu, а потом уже скачать обычный дистр винды и восстановить загрузчик. думаю для вас, это будет самый простой оптимальный способ.
Моя мечта поставить на комп Linux, Unix, *BSD, Mac OS X, OpenSolaris, OS/2, Windows.
Не спрашивайте зачем. Сам не знаю

FST
Способов много, к примеру
liveusb версию винды, залить на флешку и востановить с её помощью загрузчик.а можно про этот способ поподробней? и если можно то скажите где скачать liveusb версию винды?
В гугле поищи, есть выложенные, видал в сети.

pipe
Самый простой способ найти знакомого с windows или иметь под рукой комп с windows.
Дальше нужна будет флэшка 4 гиговая с файловой системой ntfs и образ любой windows.
На компьютер с windows устанавливается программа от microsoft, Windows 7 USB/DVD Download Tool, и с помощью ее заганяется образ на флэшку.
Если под рукой компьютер с Linux, то нужна флэшка опять таки на 4 гига в ntfs и образ windows 7, загоняем образ на флэшку с помощью команды:
dd if=/windows.iso of=/dev/sdX
Где windows.iso — это твой путь до образа windows 7, a sdx — флэшка.

mr.bl
кажется получилось
решение
запустил win7 live dvd запустил в нем cmd и ввел
bootrec.exe /fixmbr
перезагрузил комп, и винда начала запускатся
bootrec.exe /fixboot
всем спасибо!
зачем я только полез в линукс?…

Phlya
Самый простой способ найти знакомого с windows или иметь под рукой комп с windows.
Дальше нужна будет флэшка 4 гиговая с файловой системой ntfs и образ любой windows.
На компьютер с windows устанавливается программа от microsoft, Windows 7 USB/DVD Download Tool, и с помощью ее заганяется образ на флэшку.Если под рукой компьютер с Linux, то нужна флэшка опять таки на 4 гига в ntfs и образ windows 7, загоняем образ на флэшку с помощью команды:
dd if=/windows.iso of=/dev/sdX
Где windows.iso — это твой путь до образа windows 7, a sdx — флэшка.
Образ любой windows — только семерка, да ведь?
Ubuntu 14.04 (Unity), MSI GE40

Виктор Перестукин
1. В интернете есть iso-образы консоли восстановления Windows (12МБ);
2. В Linux есть программа ms-sys для восстановления загрузчика Windows. Правда deb-пакет ещё для ubuntu-6.06. Поддержка Windows 7 добавлена в ms-sys в 2009 году. Для ubuntu придётся самому компилировать.

pipe
Phlya, да опячатка, я там семерку забыл в конце
- Печать
Страницы: [1] Вверх
# |
|
Темы: 63 Сообщения: 399 Участник с: 29 октября 2006 |
Проблема такова. Решил на свою голову поставить Вин7, и он затер мбр так, что переустановка Grub не помогает! Что делать?!! Гружусь с сд, монтирую хард, делаю chroot, запускаю grub-install, и получаю [[email protected] /]# grub- grub-editenv grub-install grub-mkelfimage grub-mkrescue grub-emu grub-mkconfig grub-mkfont grub-probe grub-fstest grub-mkdevicemap grub-mkimage grub-setup [[email protected] /]# grub-install /dev/sda grub-probe: error: cannot find a device for /boot/grub. No path or device is specified. Try ``grub-probe --help'' for more information. Auto-detection of a filesystem module failed. Please specify the module with the option `--modules' explicitly. [[email protected] /]# По поводу опции –modules, я не представляю, какие модули грузить! |
h4tr3d |
# |
Темы: 34 Сообщения: 2656 Участник с: 12 июля 2007 |
меня умиляют такие подробности.
ты вот например делал такое перед chroot: Зы смайлы раздражают. systemd должен умереть. |
shlomo |
# |
Темы: 63 Сообщения: 399 Участник с: 29 октября 2006 |
Делал. |
shlomo |
# |
Темы: 63 Сообщения: 399 Участник с: 29 октября 2006 |
Короче, получилось… Что точно, делал, не представляю… Переставлял grub несколько раз, с 1-го на второй, со 2-го на 1-й… Сначала жаловался, что нет ядра, и не хотел грузить линукс, венду грузил нормально, потом загрузил и Арч, без каких то телодвижений, просто тупо перезапускал комп… |
h4tr3d |
# |
Темы: 34 Сообщения: 2656 Участник с: 12 июля 2007 |
свистопляшет груб2 однака…
systemd должен умереть. |
shlomo |
# |
Темы: 63 Сообщения: 399 Участник с: 29 октября 2006 |
Думаю что это “Венда семь” злобствует! В общем то с Грабом у меня проблем нет. А на будущее, нужно делать копи. mbr, перед такими опытами… Чтож, буду умней… |
I’m wondering whether this is a grub problem or a package install problem, because when I try to run # grub to get into the grub shell I get a «command not found». This should be installed, shouldn’t it?
Yes and No. Supposed to be it should be ‘done’ by now. However, one thing I observed, the fBSD ports (I don’t understand again «WHY» it did not care to make a ‘link’ to the proper grub directory /boot/*grub-here*) in its installation; as this failure renders grub installation useless outright. But this is easily solved.
How I installed grub:
[cmd=]# cd /usr/ports/sysutils/grub2[/cmd]
[cmd=]# make[/cmd]
[cmd=]# make install[/cmd]then I tried
[cmd=]# grub-install hd0[/cmd]
giving the error stated in my first post.I am doing all of these things as superuser, too.
After this, in all Gnu-based OS grub is ready.
Try issue man grub
{you’ll find out that man pages are there}!
Ports installation places grub important stage files at
/usr/local/lib/grub/i386{blah-blah}/
and grub knows nothing about this place.
The binaries are located as follows:
/usr/local/sbin/grub
!
/usr/local/sbin/grub-install
/usr/local/sbin/grub-md5-crypt
So, we gnu-OS users must DO these:
1. Create the usual
/boot/grub
folder. You know how to mkdir
2. Copy
ufs_stage1_5
into
/boot/grub
. Best way is to copy all files found in
/usr/local/lib/grub/i386-blah/*
into
/boot/grub
so that your FreeBSD grub becomes the master for loading all systems in the universe.
3. If you find no ‘
menu.lst
‘ file you may create it your self or copy from previous grub files from other drives running linux. If you have problem doing this you may call my attention back here I can make one.
4. Link ‘
ln -s
‘ the binaries ‘
grub
‘, ‘
grub-install
‘, etc. found in
/usr/local/sbin
to
/bin
(this way you’ll have universal control of the ‘grub>’ prompt.
5. Try run the three safe commands to install it into mbr:
[cmd=]grub> find /boot/grub/stage1[/cmd]
[cmd=]grub> root (hd0,a)[/cmd]
{whichever you intend; don’t forget to remind grub that it is dealing with FreeBSD, changing (hd0,0) into (hd0,a). In this manner there is no need to call chainload.}
[cmd=]grub> setup (hd0)[/cmd]
{Note this time no more ‘a’ slice but the whole drive}
[cmd=]grub> quit[/cmd]
[cmd=]reboot[/cmd]
Hope this helps. Good luck.
Я пытался установить новую установку Ubuntu 12.04 рядом с моей старой установкой 10.10, и я столкнулся с проблемой. Мой компьютер, кажется, имеет привередливый BIOS и хочет загрузочный раздел размером менее 40 ГБ. Итак, когда я установил 10.10, я разделил систему на / boot на / dev / sda1 и / on /dev/sda6.
Когда я установил 12.04 LTS, я полностью забыл об этом, и теперь мне нужно переустановить GRUB. Но, похоже, я получаю ошибку.
mint@mint ~ $ sudo grub-install --root-directory=/mnt /dev/sda
grub-probe: error: cannot find a device for /boot (is /dev mounted?).
Installation finished. No error reported.
Я запускаю это с живого USB-устройства Linux Mint, которое у меня лежало, версия GRUB такая же, как и Ubuntu 12.04, я думаю.
Итак, я что-то упускаю или лучше перезапустить установку Ubuntu?
задан
3 January 2013 в 00:51
поделиться
1 ответ
Я столкнулся с сообщением об ошибке cannot find a device for /boot (is /dev mounted?)
на виртуальной машине, с которой я работал. Я понятия не имею, применимо ли мое решение к вам или кому-либо еще.
Я предположил, что grub-install
ожидает запуска внутри файловой системы ОС хоста и сможет увидеть монтирование корневой файловой системы этого хоста.
Я сделал следующее (что я печатаю по памяти, так что, возможно, есть ошибки).
# mount /dev/sdaN /mnt
# mount --rbind /dev /mnt/dev
# mount --rbind /proc /mnt/proc
# mount --rbind /sys /mnt/sys
# chroot /mnt bash
# mount /dev/sdaN /
# grub-install /dev/sdaN
Затем я смог успешно перезагрузить ВМ. Моей операционной системой была Ubuntu 18.04, а среда спасения была версией Debian с ядром 4.x.
ответ дан mpb
3 January 2013 в 00:51
поделиться