Grub install error more than one install device

hello everyone,this is my first time installation of arch,and it seems that i made too may errors already.here's is what i did and what went wrong.following beginner's guide i did changed layout to dvorak,made two partions,one primary ext4 and one 2GB extended linux swap,made swapon,mounted primary partition,DIDN'T made home and boot directory thought it was okay,next i ran pacstrap -i /mnt base base-devel.BUT CHOOSE ONLY pacman from base and all from base-devel,thought they can be installed later chrooted my system changed root password.showed lazyness didn't configured timezone keymap,installed nano,dialog,wpa_something. then installed grub. ran the command.grub-install --target=i386-pc -- recheck /dev/sdagot error more than one device to install some thing somethingagain rangrub-install --target=i386-pc -- /dev/sdainstalled with no errorran the first command again got the same error (actually was leaving a space before "recheck" figured later)ran the commandgrub-mkconfig -o /boot/grub/grub.cfg (just ran this command and didn't do any other thing if i was supposed to do) exitedrebootedand prompted to grub>what went wrong? .... sorry for bad english.   sorry if i posted in the wrong section

#1 2015-02-09 14:59:13

ceribro
Member
Registered: 2015-02-09
Posts: 20

[SOLVED]first booted into grub>

hello everyone,
this is my first time installation of arch,and it seems that i made too may errors already.
here’s is what i did and what went wrong.following beginner’s guide i did changed layout to dvorak,made two partions,one primary ext4 and one 2GB extended linux swap,made swapon,mounted primary partition,DIDN’T made home and boot directory thought it was okay,next i ran pacstrap -i /mnt base base-devel.BUT CHOOSE ONLY pacman from base and all from base-devel,thought they can be installed later chrooted my system changed root password.showed lazyness didn’t configured timezone keymap,installed nano,dialog,wpa_something. then installed grub. ran the command.
grub-install —target=i386-pc — recheck /dev/sda
got error more than one device to install some thing something
again ran
grub-install —target=i386-pc — /dev/sda
installed with no error
ran the first command again got the same error (actually was leaving a space before «recheck» figured later)
ran the command
grub-mkconfig -o /boot/grub/grub.cfg (just ran this command and didn’t do any other thing if i was supposed to do)
exited
rebooted
and prompted to
grub>
what went wrong? …. sorry for bad english.   sorry if i posted in the wrong section

Last edited by ceribro (2015-02-19 15:52:48)

#2 2015-02-09 15:09:36

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: [SOLVED]first booted into grub>

ceribro wrote:

i did changed layout to dvorak,made two partions,one primary ext4 and one 2GB extended linux swap,made swapon,mounted primary partition,DIDN’T made home and boot directory thought it was okay

Sounds reasonable

ceribro wrote:

next i ran pacstrap -i /mnt base base-devel.BUT CHOOSE ONLY pacman from base and all from base-devel,thought they can be installed later

Any particular reason why you just installed pacman from base? There’ll be a good reason why [base] contains what it contains.

ceribro wrote:

chrooted my system changed root password.showed lazyness didn’t configured timezone keymap,installed nano,dialog,wpa_something.

You know that you should configure all of these as you did when you initially did for the installation ISO? If you don’t, then you’ll be in the en-US and US QWERTY etc.

Did you generate an fstab file? What are the contents of it?

ceribro wrote:

then installed grub. ran the command.
grub-install —target=i386-pc — recheck /dev/sda
got error more than one device to install some thing something
again ran
grub-install —target=i386-pc — /dev/sda
installed with no error
ran the first command again got the same error (actually was leaving a space before «recheck» figured later)
exited
rebooted
and prompted to
grub>
…. sorry for bad english.

What are the contents of the /boot/grub/grub.cfg file?


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

#3 2015-02-09 15:40:13

ceribro
Member
Registered: 2015-02-09
Posts: 20

Re: [SOLVED]first booted into grub>

okay i chose pacman to just part my data as i am limited to 200 MB per day,also when i was installing grub few packages listed in base were getting installed i think they are going to installed either way
yes i genrated fstab.
it says,
#/dev/sdb1
UUID=somthing                                   /                ext4                rw,relatime,data=ordered              0 1

#/dev/sdb5                                        none            swap                     default                                      0 0
nano /boot/grub/grub.cfg is a 119 lines file tell me which part to check or should i type the whole???

#4 2015-02-09 15:46:41

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,833
Website

Re: [SOLVED]first booted into grub>

If you are worried about download limits, you should install base but not base-devel.  Without base, there is a fair chance you will not have a functional system.  Base-devel is only needed for using the AUR, but it is quite easy to get a working system without anything from base-devel.


«UNIX is simple and coherent…» — Dennis Ritchie, «GNU’s Not UNIX» —  Richard Stallman

#5 2015-02-09 15:53:17

ceribro
Member
Registered: 2015-02-09
Posts: 20

Re: [SOLVED]first booted into grub>

okay so i have again booted live arch and monted and chrooted the installed arch(the same i am talking about, giving error).can i install the base now? will it do any good?

#6 2015-02-10 08:14:50

ceribro
Member
Registered: 2015-02-09
Posts: 20

Re: [SOLVED]first booted into grub>

so it seems that i have to do the whole installation again.

#7 2015-02-10 09:09:28

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,019
Website

Re: [SOLVED]first booted into grub>

What makes you think that? The packages you installed previously are still installed, right? What is the benefit of discarding that progress and starting fresh?

I wonder though — once installed, how are you going to keep this Arch installation up to date with such a low bandwidth cap?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

#8 2015-02-10 11:01:41

ceribro
Member
Registered: 2015-02-09
Posts: 20

Re: [SOLVED]first booted into grub>

no it is not so,actually i have wasted my monthly quota which reduced me to this limit….i was using crunchbang which crashed.so i thought to move to archbang but the download kept on failing on 90-98% and then i torrented the arch iso.and thus my data ran out.
and about my half installed arch..suggest me what to…should i chroot again and install the base??? or should i configure the grub.
it’s been four days my notebook is black and white,(okay okay red as well) smile

#9 2015-02-10 12:13:20

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: [SOLVED]first booted into grub>

Chroot in, install base properly this time.

Also, please can you post:
1) The actual error messages you get just before grub says «grub >» (I’m guessing it’s a «root fs not found» type error, but I want to be damn sure it is);
2) The content of /etc/fstab (or your partition layout with the UUIDs);
3) The contents of /boot/grub/grub.cfg/

Last edited by clfarron4 (2015-02-10 12:16:24)


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

#10 2015-02-10 12:36:47

ceribro
Member
Registered: 2015-02-09
Posts: 20

Re: [SOLVED]first booted into grub>

I’m not getting any error msg… It loads grub says »wellcome to grub».. Then i am prompted to the screen which says:
      GNU GRUB version name
minimal bash line editing is supported. For the first word, TAB lists possible comman completions. Anywhere else TAB lists possible device or file completions.
Grub>

and when i pressed tab it gave me screen full of commands… Tried »keymap dvorak» said /boot/grub/layouts/dvorak.gkb not found.. Typed hello, said hello world…

#11 2015-02-10 12:45:40

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,019
Website

Re: [SOLVED]first booted into grub>

Rather than chrooting into the install, just mount the partitions as they were when you originally ran pacstrap, and rerun it.

You can add —needed to the pacstrap command to make it skip already installed packages.

clfarron4’s advice is good too, but I think we need to make sure you have the full base system installed at the very least. From what you’ve said, I suspect you don’t even have a kernel installed at the moment.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

#12 2015-02-10 12:46:24

ceribro
Member
Registered: 2015-02-09
Posts: 20

Re: [SOLVED]first booted into grub>

There is a command ‘boot’ when i typed it said:
error: you need to load the kerenel first

#13 2015-02-10 12:56:28

ceribro
Member
Registered: 2015-02-09
Posts: 20

Re: [SOLVED]first booted into grub>

Okay, so the commands keep on saying can’t find this and that so i will do the base install the base then tell you what happens

#14 2015-02-13 06:51:36

ceribro
Member
Registered: 2015-02-09
Posts: 20

Re: [SOLVED]first booted into grub>

so when i tried to install the base it gave me error message «could not resolve conflicting package» something like that, so i did a fresh install and everything went well ,seems so,and i could install my first arch.though it is not fully functional and configured and i am still facing problems,i’ll google them and ask them in new post.
so it turns out that not installing base WAS the problem.

#15 2015-02-13 07:40:50

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,517

Re: [SOLVED]first booted into grub>

Please consider these conditions
For a targeted answer it may need detailed reports, like partition table, grub.cfg and to know whether is an attempt to boot by MBR or UEFI mode.
A better search through the forum topics related to booting  may give you more clues,


do it good first, it will be faster than do it twice the saint wink

#16 2015-02-13 11:41:12

ceribro
Member
Registered: 2015-02-09
Posts: 20

Re: [SOLVED]first booted into grub>

i am replying from my new arch system through jumanji which is not configured,in xfce4 where thunar is not auto mounting removable media and have an ugly theme,lxdm is not auto logining and using qwerty instead dvorak,awesomewm is also not configured to dvorak and the whole system is booting in 20sec. dmesg showing too many failed error masseges.don’t know which to solve first…working on them wink

Last edited by ceribro (2015-02-13 11:42:28)

View previous topic :: View next topic  
Author Message
tuxgt
n00b
n00b

Joined: 11 May 2020
Posts: 4

PostPosted: Mon May 11, 2020 4:41 pm    Post subject: problems installing grub2 Reply with quote

Hello colleagues, I require your help, I am new to gentoo this is the first time that I install this system, however it gives me problems when I want to install grub2 since it throws the following error: grub-install –target = x86_64-efi –efi- directory = / boot

grub-install: error: More than one installation device ?.

I have been investigating the solutions of this forum but none of the solutions of other users have worked for me, I share my partition table and my fstab table

Code:
/dev/sda1               /boot/efi       vfat            auto,noatime         1 2

/dev/sda2               /boot           ext2            auto,noatime         1 2

/dev/sda3               none            swap            sw                   0 0

/dev/sda4               /               ext4            defaults,noatime     0 1


Code:
                                Disco: /dev/sda

                                                                               Tama▒o: 100 GiB, 107374182400 bytes, 209715200 sectores

                                                                          Etiqueta: gpt, identificador: 395D53C2-591E-4750-9814-C7B70B884214

    Disposit.                                                Comienzo                            Final                        Sectores                       Tama▒o Tipo

>>  /dev/sda1                                                    2048                             6143                            4096                           2M Arranque de BIOS

    /dev/sda2                                                    6144                           268287                          262144                         128M Sistema EFI

    /dev/sda3                                                  268288                          1316863                         1048576                         512M Sistema de ficheros de Linux

    /dev/sda4                                                 1316864                        209713151                       208396288                        99.4G Sistema de ficheros de Linux

[Moderator edit: added [code] tags to preserve output layout. -Hu]
_________________
Si no lo sabes, investigalo, no hay nada como el conocimiento

Back to top

View user's profile Send private message

alamahant
Advocate
Advocate

Joined: 23 Mar 2019
Posts: 3304

PostPosted: Mon May 11, 2020 4:46 pm    Post subject: Reply with quote

Try please

Code:

grub-install —target=x86_64-efi —efi-directory=/boot/efi —bootloader-id=gentoo —recheck



Also before emerging grub did you have this entry in make.conf?

Code:

GRUB_PLATFORMS=»efi-64″



:D

Last edited by alamahant on Mon May 11, 2020 4:47 pm; edited 1 time in total

Back to top

View user's profile Send private message

NeddySeagoon
Administrator
Administrator

Joined: 05 Jul 2003
Posts: 51961
Location: 56N 3W

PostPosted: Mon May 11, 2020 4:47 pm    Post subject: Reply with quote

tuxgt,

Welcome to Gentoo.

Code:
grub-install –target = x86_64-efi –efi- directory = / boot



White space matters. The command you posted won’t do what you expected.

Code:
grub-install –target = x86_64-efi –efi- directory = /boot

With /boot (no space) in place of «/ boot», might work.

— edit —

In fact, that will fail too. The handbook says

Code:
grub-install —target=x86_64-efi —efi-directory=/boot


_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-

those that do backups

those that have never had a hard drive fail.

Back to top

View user's profile Send private message

tuxgt
n00b
n00b

Joined: 11 May 2020
Posts: 4

PostPosted: Mon May 11, 2020 5:01 pm    Post subject: Reply with quote

alamahant wrote:
Try please

Code:

grub-install —target=x86_64-efi —efi-directory=/boot/efi —bootloader-id=gentoo —recheck



Also before emerging grub did you have this entry in make.conf?

Code:

GRUB_PLATFORMS=»efi-64″



:D

thanks, if i run

Code:

grub-install —target=x86_64-efi —efi-directory=/boot/efi —bootloader-id=gentoo —recheck



throws me the following error

Code:

Installing for x86_64-efi platform.

grub-install: error: could not get canonical path of  / boot / efi.

and if before executing grub emerge, validate that in the make.conf it had GRUB_PLATFORMS = «efi-64

Code:

COMMON_FLAGS=»-O2 -pipe»

CFLAGS=»${COMMON_FLAGS}»

CXXFLAGS=»${COMMON_FLAGS}»

FCFLAGS=»${COMMON_FLAGS}»

FFLAGS=»${COMMON_FLAGS}»

MAKEOPTS=»-j3″

ACCEPT_LICENSE= «- * @FREE»

USE=»-bluetooth»

# NOTE: This stage was built with the bindist Use flag enabled

PORTDIR=»/var/db/repos/gentoo»

DISTDIR=»/var/cache/distfiles»

PKGDIR=»/var/cache/binpkgs»

# This sets the language of build output to English.

# Please keep this setting intact when reporting bugs.

LC_MESSAGES=C

GENTOO_MIRRORS=»ftp://ftp.ussg.iu.edu/pub/linux/gentoo rsync://mirrors.rit.edu/gentoo/ https://mirror.sjc02.svwh.net/gentoo/»

GRUB_PLATFORMS=»efi-64″


_________________
Si no lo sabes, investigalo, no hay nada como el conocimiento

Back to top

View user's profile Send private message

tuxgt
n00b
n00b

Joined: 11 May 2020
Posts: 4

PostPosted: Mon May 11, 2020 5:04 pm    Post subject: Reply with quote

NeddySeagoon wrote:
tuxgt,

Welcome to Gentoo.

Code:
grub-install –target = x86_64-efi –efi- directory = / boot



White space matters. The command you posted won’t do what you expected.

Code:
grub-install –target = x86_64-efi –efi- directory = /boot

With /boot (no space) in place of «/ boot», might work.

— edit —

In fact, that will fail too. The handbook says

Code:
grub-install —target=x86_64-efi —efi-directory=/boot

thanks NeddySeagoon,

if i run the command

Code:
grub-install –target = x86_64-efi –efi- directory = /boot

generates the following error

Code:

 grub-install —target=x86_64-efi —efi-directory=/boot

Instalando para plataforma x86_64-efi.

grub-install: error: /boot no parece una particion EFI..


_________________
Si no lo sabes, investigalo, no hay nada como el conocimiento

Back to top

View user's profile Send private message

apurkrt
Tux’s lil’ helper
Tux's lil' helper

Joined: 26 Feb 2011
Posts: 116
Location: Czechia, Europe

PostPosted: Mon May 11, 2020 7:13 pm    Post subject: Reply with quote

hey, the following setup works for me

Code:

/dev/sda1      2048    262143    260096  127M EFI System

/dev/sda2    262144    524287    262144  128M Linux filesystem

/dev/sda3    524288 839385087 838860800  400G Linux filesystem

I install grub this way:

1) mount /dev/sda2 /boot

2) mount /dev/sda1 /boot/efi

3) grub-install

4) grub-mkconfig -o /boot/grub/grub.cfg

that’s it — just «grub-install» without any parameters — and it works, if the partitions are mounted as above

only requirement: the system has to be booted in efi mode and have efi support enabled in kernel. how to tell: check if /sys/firmware/efi/ exists

Back to top

View user's profile Send private message

alamahant
Advocate
Advocate

Joined: 23 Mar 2019
Posts: 3304

PostPosted: Mon May 11, 2020 8:26 pm    Post subject: Reply with quote

The / partition(=/dev/sda4) has to have a «boot» directory.

The /boot partition(=/dev/sda2) has to have an «efi» directory.

Your efi partition(=/dev/sda1) should have the type ef00(efi partition type in gdisk)

If you are building in chroot this is how to prepare your filesystem:

Code:

mount /dev/sda4 /mnt

mount /dev/sda2 /mnt/boot

mount /dev/sda1 /mnt/boot/efi

CHROOT into your system,install and update grub.The full procedure:

Code:

mount /dev/sda4 /mnt

mount /dev/sda2 /mnt/boot

mount /dev/sda1 /mnt/boot/efi

mount —types proc /proc /mnt/proc

mount —rbind /sys /mnt/sys

mount —make-rslave /mnt/sys

mount —rbind /dev /mnt/dev

mount —make-rslave /mnt/dev

mount —rbind /tmp /mnt/tmp

chroot /mnt /bin/bash

source /etc/profile

grub-install —target=x86_64-efi —efi-directory=/boot/efi —bootloader-id=gentoo —recheck

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



It should work this way..it HAS to..

PS your —efi-directory is NOT «/boot» it IS «/boot/efi»

:D

Back to top

View user's profile Send private message

tuxgt
n00b
n00b

Joined: 11 May 2020
Posts: 4

PostPosted: Thu May 14, 2020 3:30 am    Post subject: Reply with quote

apurkrt wrote:
hey, the following setup works for me

Code:

/dev/sda1      2048    262143    260096  127M EFI System

/dev/sda2    262144    524287    262144  128M Linux filesystem

/dev/sda3    524288 839385087 838860800  400G Linux filesystem

I install grub this way:

1) mount /dev/sda2 /boot

2) mount /dev/sda1 /boot/efi

3) grub-install

4) grub-mkconfig -o /boot/grub/grub.cfg

that’s it — just «grub-install» without any parameters — and it works, if the partitions are mounted as above

only requirement: the system has to be booted in efi mode and have efi support enabled in kernel. how to tell: check if /sys/firmware/efi/ exists

thanks for supporting everyone, I was reviewing the steps and I realized that I forgot the command

Code:
make install



I did everything again and I was able to install grub
_________________
Si no lo sabes, investigalo, no hay nada como el conocimiento

Back to top

View user's profile Send private message

Display posts from previous:   

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

У меня есть сервер Ubuntu 14.04 x64 с 2 500 ГБ дисками (sda и sdb) в программном RAID 1.

Мне просто пришлось заменить sdb. Добавление его обратно в массив с mdadm и повторной синхронизацией было быстрым. Проблема, с которой я столкнулся, заключается в том, что она может загрузиться, если sda произойдет сбой в будущем.

Примечание: все команды ниже выполнялись как root

[!d4 ]

1-я попытка

Большинство прохождений, которые я нашел, сказали мне запустить:

grub-install /dev/sda /dev/sdb

Какая именно та же команда, которую я видел установщиком Ubuntu, запускал сто раз. Однако, когда я побежал, я получил:

grub-install: error: More than one install device?.

Это всегда срабатывало для меня. Может быть, что-то изменилось с 14.04?

Вторая попытка

В некоторых пошаговых инструкциях рекомендуется вручную настроить grub для нового жесткого диска. Приглашение grub меня пугает, но я был готов попробовать следующие шаги:

# grub --device-map=/boot/grub/device.map
grub> root (hd0,0)
grub> setup (hd0)
grub> root (hd1,0)
grub> setup (hd1)
grub> quit

Только проблема? После первой команды я получаю:

The program 'grub' is currently not installed. You can install it by typing:
apt-get install grub

???

Итак, я попытался установить grub.

# apt-get install grub
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  grub-legacy-doc
The following packages will be REMOVED:
  grub-gfxpayload-lists grub-pc grub2-common
The following NEW packages will be installed:
  grub
0 upgraded, 1 newly installed, 3 to remove and 0 not upgraded.
Need to get 913 kB of archives.
After this operation, 438 kB of additional disk space will be used.
Do you want to continue? [Y/n] 

Излишне говорить, что я ответил Нет.

3-я попытка

Освободившись, я попробовал что-то, что я был уверен, что это было неправильно. Официальное руководство по серверу рекомендует (в нижней части раздела «Обслуживание рейдов»):

grub-install /dev/md0

Это был выход:

# grub-install /dev/md0
Installing for i386-pc platform.
grub-install: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
grub-install: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.

Страшно.

Похоже, что grub был как-то исключен в 14.04, но я не могу найти никакой информации о том, как все изменилось.

Обновление:

Мне удалось запустить следующие команды: независимо:

grub-install /dev/sda
grub-install /dev/sdb

Однако я не уверен, что sda загрузится после установки grub на sdb и наоборот. Я в порядке?

задан
13 August 2014 в 19:49

поделиться

1 ответ

Для чего это стоит: мне нужно было добавить сценарий задержки в мою конфигурацию загрузки, чтобы позволить унифицированному массиву RAID достаточно времени для сборки. В противном случае все работало нормально при загрузке с 2 рабочими дисками, но как только я отключил один диск для проверки избыточности, я оказался в busybox (без клавиатуры для хорошей оценки)! Подробнее см. В конце шага 6 в разделе Как установить 64-разрядную версию Ubuntu 14.04 с разделом RAID 1 с двойной загрузкой в ​​системе UEFI / GPT? (часть о /usr/share/initramfs-tools/scripts/local-premount/sleepAwhile).

ответ дан Community
24 May 2018 в 04:45

поделиться

Другие вопросы по тегам:

Похожие вопросы:

  • Печать

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

Тема: Побил GRUB и нужна помощь  (Прочитано 5954 раз)

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

Оффлайн
_Karakurt_

Долгая история, но в результате я грубо прервал установку GRUB на свой основной диск. MBR успел встать, однако с модулями всё явно фигово. Изначально он не мог найти normal.mod , из-за чего я загрузился с флешки и попытался тупо переставить GRUB привычным
 sudo grub-install /dev/sda1
, однако эта затея провалилась. То /cow не хватало, то устройство не указано, в общем я не смог.
Но тут мою дурную голову пронзила гениальная мысль — тупо normal.mod, ручками. Это мне удалось, и теперь GRUB даже запускает свою менюшку и… В общем, смотрите картинки. Вторая получается при любой попытке загрузить ось.
Теперь то я уже понимаю, что это была дурная затея — пытаться тупо скопировать, но уже содеянно, и как из этого мне выбраться лично мне не ясно.
Прошу помощи!


Пользователь добавил сообщение 23 Марта 2018, 20:51:32:


Мда…
Никак не желают укладываться эти две фотографии в 400 kb. И я сильно сомневаюсь что это вообще реально.
Тогда опишу словами: менюшка GRUB нормальная, с строкой загрузки моей привычной прошивки и уже менее понятной строкой с кучей знаков вопроса. В этой строке у меня есть возможность выбрать старые версии ядер.
Вторая фотка, после попытки загрузить любую ось, просто отчёты терминала:
  error: can’t find command ‘]’.
  error: can’t find command ‘]’.
  error: can’t find command ‘save_env’.
  error: can’t find command ‘]’.
  error: file ‘/boot/grub/i386-pc/all_video’ not found.
  error: can’t find command ‘]’.
  error: can’t find command ‘]’.
  error: can’t find command ‘]’.
  error: can’t find command ‘search’.
  error: can’t find command ‘echo’.
  error: can’t find command ‘linux’.
  error: can’t find command ‘echo’.
  error: can’t find command ‘initrd’.

  Press any key to continue_

« Последнее редактирование: 23 Марта 2018, 20:53:18 от _Karakurt_ »


Оффлайн
Heider

sudo grub-install /dev/sda1

Единица здесь лишняя.


Оффлайн
andytux

…попытался тупо переставить GRUB привычным
 sudo grub-install /dev/sda1

В общем случае груб устанавливается так:

Пояснения.
/dev/sdb — сюда установится первая часть груб, в данном случае MBR.
sdb1 — корневой раздел установленной Ubuntu, здесь будет создан каталог /boot/grub и здесь груб будет искать свои файлы.
Проверьте, сохранился файл /boot/grub/grub.cfg или нет.
Если нет, то придется скопировать или создать.

« Последнее редактирование: 24 Марта 2018, 10:41:40 от andytux »


Оффлайн
_Karakurt_

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


Пользователь добавил сообщение 24 Марта 2018, 10:26:45:


Проверьте, сохранился файл /boot/grub/grub.cfg

Файл сохранился


Оффлайн
Heider

ругался на то, что устройство не указано

Вы пробовали запускать нормальную команду?

sudo grub-install /dev/sdaБез единицы!!!

Вы своей командой: sudo grub-install /dev/sda1 указали установщику не устройство, а раздел.


Оффлайн
_Karakurt_

Да, я запускал и без неё и с нею, ответ одинаковый:
  grub-probе: error: failed to get canonical path of’/cow’
Через строчку то же самое, но уже от grub-install.real


Пользователь добавил сообщение 24 Марта 2018, 21:20:34:


Если попытаться поставить только модули:
Первая строчка такая же, вторая — нормальное «Installing for i386-pc platform» , а вот третья то, что я говорил:
 grub-install.real: error: install device isn’t specified


Пользователь добавил сообщение 24 Марта 2018, 21:26:54:


« Последнее редактирование: 24 Марта 2018, 21:38:26 от _Karakurt_ »


Оффлайн
archuser

_Karakurt_, из liveCD измените корневой каталог:

sudo mount /dev/sdX1 /mnt
sudo mount -t proc /proc /mnt/proc
sudo mount --rbind /dev /mnt/dev
sudo mount --rbind /sys /mnt/sys
sudo mount -o bind /run /mnt/run
sudo chroot /mnt
где sdX1 замените на соответствующий корню. И именно с этого места установите grub, как уже выше советовали.


Оффлайн
_Karakurt_

mount /dev/sdb1 /mnt/sdb1
grub-install —root-directory=/mnt/sdb1 /dev/sdb

Сделал я это, комп снова ругнулся по поводу /cow но написал что установка успешная, проблем нет.
Я радостно завершаю работу,отключаю комп, вытаскиваю флешку, включаю и…
GRUB без менюшки, командная строка. Однако теперь она поддерживает куда больше команд, чем в grub rescue. Вроде похоже на прогресс, но дальше что?
Вот это выполнил:
set prefix=(hd0,1)/boot/grub
set root=(hd0,1)
insmod ext2
insmod normal
normal
Но меню, как ожидалось, не появилось. Даже ошибок не было. Просто выполнилось и потребовало новой команды.


Пользователь добавил сообщение 24 Марта 2018, 22:46:59:


Код: [Выделить]

sudo mount /dev/sdX1 /mnt
sudo mount -t proc /proc /mnt/proc
sudo mount —rbind /dev /mnt/dev
sudo mount —rbind /sys /mnt/sys
sudo mount -o bind /run /mnt/run
sudo chroot /mnt

где sdX1 замените на соответствующий корню. И именно с этого места установите grub, как уже выше советовали.

А вот это сработало на все 100! Спасибо!
 Только бы ещё понять почему потребовалось всё перемонтрировать…
 И да, надо ли теперь выполнять уже из правильной прошивки » sudo grub-install /dev/sda» или уже всё в порядке?

« Последнее редактирование: 24 Марта 2018, 22:46:59 от _Karakurt_ »


Оффлайн
andytux

А вот это сработало на все 100! Спасибо!
 Только бы ещё понять почему потребовалось всё перемонтрировать…

Потому что вы пошли по сложному варианту — установка груб через croot (5 монтирований).
И установка файлов груб только на раздел, который «зачрутили».
В то время как в этом варианте:

mount /dev/sdb1 /mnt/sdb1
grub-install —root-directory=/mnt/sdb1 /dev/sdb

только одно монтирование и полная свобода в выборе места установки и головной части и файлов груб.

И да, надо ли теперь выполнять уже из правильной прошивки » sudo grub-install /dev/sda» или уже всё в порядке?

Нет, не надо.


Оффлайн
_Karakurt_


  • Печать

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

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Grub install error failed to get canonical path of boot efi
  • Grub install error failed to get canonical path of airootfs
  • Grub install error embedding is not possible but this is required for cross disk install
  • Grub install error efibootmgr not found
  • Grub install error efibootmgr failed to register the boot entry no such file or directory

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии