#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)
#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
#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
Last edited by ceribro (2015-02-13 11:42:28)
View previous topic :: View next topic | |||||||||||||||||
Author | Message | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tuxgt n00b Joined: 11 May 2020 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
alamahant Advocate Joined: 23 Mar 2019 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
NeddySeagoon Administrator Joined: 05 Jul 2003 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
tuxgt n00b Joined: 11 May 2020 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
tuxgt n00b Joined: 11 May 2020 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
apurkrt Tux’s lil’ helper Joined: 26 Feb 2011 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
alamahant Advocate Joined: 23 Mar 2019 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
tuxgt n00b Joined: 11 May 2020 |
|
||||||||||||||||
Back to top |
|
||||||||||||||||
|
You cannot post new topics 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
где sdX1 замените на соответствующий корню. И именно с этого места установите grub, как уже выше советовали.
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

_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] Вверх