Error symbol grub disk native sectors not found

#1 Post by mhanor » 2022-07-24 14:53

mhanor

Posts: 10
Joined: 2009-04-02 19:40

[SOLVED] grub error symbol grub_disk_native_sectors not found

#1

Post

by mhanor » 2022-07-24 14:53

Hello,

I’m trying to determine what can be done to restore grub booting on non-EFI system after a system upgrade (Debian bookworm). The upgrade worked on a 2nd system, but not on the one that ended with the problem. Again, nothing was changed on the system, the motherboard Asrock N3050M is set to use CSM legacy to boot, like it did in the past. A reload of BIOS defaults was also attempted. I appreciate any help you can provide on the problem.
The grub falls back to rescue prompt.

This is how it looks on the file system (see the attached archive):
drive.google.com/file/d/12CMmy4-G6pppXNj15av2c3fvRTBok6oU/view?usp=sharing

Last edited by mhanor on 2022-07-25 10:57, edited 2 times in total.




mhanor

Posts: 10
Joined: 2009-04-02 19:40

Re: grub error symbol grub_disk_native_sectors not found

#4

Post

by mhanor » 2022-07-25 06:58

Thank you p.H, it was that simple. I was accustomed to install grub to the active boot partition (e.g. sdx1) not to sdx, which seems to not work anymore. Now It worked for me by installing grub to sda, instead of installing to sda1 which returned error 1 during rescue install.
I’m not sure why the «thank you» button is missing from your post, maybe it’s my low post count at fault.


p.H

Section Moderator
Section Moderator
Posts: 3015
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 122 times

Re: [SOLVED] grub error symbol grub_disk_native_sectors not found

#5

Post

by p.H » 2022-07-26 11:31

mhanor wrote: ↑2022-07-25 06:58
it was that simple

It is simple when you know how GRUB works.

mhanor wrote: ↑2022-07-25 06:58
I was accustomed to install grub to the active boot partition (e.g. sdx1) not to sdx, which seems to not work anymore.

It can work if another bootloader is installed in the MBR and chainloads the partition boot sector. However here it seems that GRUB was installed in the MBR but grub-pc was configured to install GRUB in a different location. As a consequence, the part of GRUB in the MBR was not upgraded, causing the error when trying to load upgraded modules in /boot/grub/.

mhanor wrote: ↑2022-07-25 06:58
I’m not sure why the «thank you» button is missing from your post, maybe it’s my low post count at fault.

It seems that some people including me do not have the «thanks» button in some forums.


Время прочтения
4 мин

Просмотры 3K

Доброго времени суток, Хабр!

В своей работе IT-специалист иногда сталкивается с задачами, которые входят только в общий кругозор на уровне «читал, осознал», требующими срочного решения.

Недавно, после установки драйверов видеокарты NVIDIA для XFCE4 на Proxmox 7.xx перестал пинговаться гипервизор с роутера и компов сети. После его перезагрузки я увидел черный экран и надписью «grub disk native sectors not found».

Загрузившись с LiveUSB Ubuntu я прочитал разделы диска, убедился, что данные целы, проблема в загрузчике. Стало ясно, что проблема с разделом Grub BIOS, так как разделы диска EFI и рабочий монтировались корректно.

Надо сказать, что я устанавливал Proxmox 7.xx со стандартными настройками разбиения диска, то есть три раздела GPT-диска /dev/nvmes0n1: /dev/nvmes0n1p1 — GrubBIOS; /dev/nvmes0n1p2 — EFI диск; /dev/nvmes0n1p3 — LVM раздел, в котором Proxmox по-умолчанию задает два LVM диска /dev/pve/root и /dev/pve/swap

Убедившись, что данные корректны, диски fsck — тест проходят приступил к восстановлению. Я вставил поисковик текст ошибки и открыл статью-инструкцию на сайте Proxmox.

Смысл ясен: грузим Linux-ОС с поддержкой LVM, активируем диск LVM с загрузчиком гипервизора, монтируем в папку, заходим chroot и восстанавливаем загрузчик (ничего сложного). Ниже листинг до проблемы, которая возникла у меня:

#Использую права админа постоянно, чтобы не писать везде sudo
sudo su -
#Сканирую LVM диски 
vgscan
  Found volume group "pve" using metadata type lvm2
#Активирую Volume Group (VG) "pve"
vgscan -ay pve
#Смотрим, что есть
lsblk
nvmes0
├─nvmes0n1p1
├─nvmes0n1p2            vfat 
└─nvmes0n1p3            LVM2_member
  └──pve-swap           swap
  └─pve-root            ext4
#монтируем в директорию /mnt  
mount /dev/pve/root /mnt
mount /dev/nvmes0n1 /mnt/boot

Ошибка следующая: диск уже активен, смонтировать его нельзя. Естественно активен, ведь он активирован как том VG (LVM). То есть, один шаг инструкции не работает. Иду дальше:

mount /dev/nvmes0n1p2 /mnt/boot
ls /mnt/boot

EFI

Вывод показывает, что мы смонтировали EFI — раздел с загрузчиком Debian. Перемонтируем его правильно:

umount /mnt/boot
mount /mnt/boot/efi
ls /mnt/boot

config-5.15.30-2-pve      initrd.img-5.15.74-1-pve  System.map-5.15.74-1-pve
config-5.15.74-1-pve      initrd.img-5.15.83-1-pve  System.map-5.15.83-1-pve
config-5.15.83-1-pve      memtest86+.bin            vmlinuz-5.15.30-2-pve
efi                       memtest86+_multiboot.bin  vmlinuz-5.15.74-1-pve
grub                      pve                       vmlinuz-5.15.83-1-pve
initrd.img-5.15.30-2-pve  System.map-5.15.30-2-pve

Ясно, что в /mnt/boot есть необходимые файлы-образы ядра для загрузки, следовательно монтировать туда диск нет необходимости. Действуем дальше:

mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
mount -o bind /run /mnt/run
chroot /mnt
update-grub

Апгрейд grub произведен, загрузочные файлы сформированы по необходимым им путям, необходимо восстановить загрузчик. Изучаем предметную область:

fdisk -l /dev/nvmes0n1p1
Disk /dev/nvmes0n1p1: 1 MiB, 1048576 bytes, 2048 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

fsck -N /dev/nvmes0n1p1
root@pve:~# fsck -n /dev/nvme0n1p1
fsck from util-linux 2.36.1
e2fsck 1.46.5 (30-Dec-2021)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/nvme0n1p1

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4

lsblk -no name,fstype
nvmes0n1
├─nvmes0n1p1
├─nvmes0n1p2   vfat
└─nvmes0n1p3   LVM2_member
  ├─pve-swap  swap
  └─pve-root  ext4

 gdisk /dev/nvmes0n1
GPT fdisk (gdisk) version 1.0.6

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): i
Partition number (1-3): 1
Partition GUID code: 21686148-6449-6E6F-744E-656564454649 (BIOS boot partition)
Partition unique GUID: AEC0785C-ECA8-0C4C-A7AD-C5C11F0B2B20
First sector: 34 (at 17.0 KiB)
Last sector: 2047 (at 1023.5 KiB)
Partition size: 2014 sectors (1007.0 KiB)
Attribute flags: 0000000000000004
Partition name: ''

# Следовательно, файловая система BIOS boot partition, размер диска 1Мб
#диск /dev/nvmes0n1p2 - vfat, EFI загрузчик
#напомню, мы в chroot, поэтому тут каталог /mnt свободен 
mount /dev/nvmes0n1p1 /mnt
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/nvmes0n1p1, missing codepage or helper program, or other error.

Если кратко, то по запросу UEFI boot Debian 11 получил статью, где описывается, что есть некий efi-boot debian, который необходимо установить в загрузочный раздел с типом vfat, в дальнейшем монтируемый в /boot/efi. Начал подозревать, что /dev/nvmes0n1p1 и является таким разделом, в отличие от заявленного в статье о восстановлении загрузки /dev/sda.

Читателю рекомендую произвести перед каждым действием с изменением данными бекап «оперируемого» диска, например на внешний диск. Самое простое, но и длительное, это зацепить внешний HDD (предполагаю, что он примонтирован в каталог /backup) и на него выполнить клон диска утилитой DD:

dd if=/dev/nvmes0n1 of=/backup/nvmes0n1.img

Begin: UPD#1 19.01.2023

Озадачился поиском оптимального использования дампа через «dd’. В статье «Команда dd и все, что с ней связано» описан механизм бекапа mbr:

# dd if=/dev/sda of=mbr.img bs=512 count=1

Для бекапа загрузки GPT, взято из этого источника

dd if=/dev/nvmes0n1 of=/backup/gpt_table_nvmes0n1 bs=1 count=1536

End: UPD#1 19.01.2023

Я же сделал бекап сразу после запуска LiveCD, поэтому продолжаю:

grub-install /dev/nvmes0n1p1

После выхода из chroot, выключения ОС LiveUSB, изъятия флеш-диска из системного блока, произошла корректная загрузка моего Proxmox 7.xx со всеми виртуальными машинами и настройками.

В течение недели, до 24 января 2023 года напишу еще пару статей о:

  • зачем IT-специалисту вообще дома гипервизор Proxmox 7.xx

  • как запустить в Proxmox 7.xx гостевую машину в окне Proxmox 7.xx и для чего это мне понадобилось

Очень надеюсь, что описание данного кейса сэкономит коллегам кучу нервных клеток и время на поиск решения (спасибо, Хабр, что ты есть). Комментарии к статье приветствуются

Welcome!

Forum users

  • Please read this before asking for help, and don’t forget to add Quick System Info to help requests!
  • Please follow the Forum Rules

Current releases
MX-21 release info here
Migration information to MX-21 here
antiX-21 (Grup Yorum) release info here

Important information
—If in starting your system it boots to an unwanted Desktop, right click desktop, then select leave and logout. At the
login screen there is a session chooser at the top of the screen.

News
— MX Linux on social media: here
— New Forum Features, Marking Solved and Referencing a User: here

User avatar

fehlix

Developer
Posts: 11737
Joined: Wed Apr 11, 2018 9:09 pm

Re: Grub error symbol grub_disk_native_sectors not found

#11

Post

by fehlix » Tue Oct 11, 2022 9:18 am

OK, seems we need to try something else… but before we do this,
do as advised and edit all your posts containing terminal text output, by clicking on the pencil-icon to edit.
And mark/highlight the terminal-text with the mouse cursor and press the code-tag button [</>] above the editor, so it will be wrapped between those [code]code-tags[/code].
Otherwise I’m afraid, we get all confused about those long posts, which we don’t want, especially as we need some further commands to run …
thanks
:puppy:

Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB



User avatar

fehlix

Developer
Posts: 11737
Joined: Wed Apr 11, 2018 9:09 pm

Re: Grub error symbol grub_disk_native_sectors not found

#13

Post

by fehlix » Thu Oct 13, 2022 10:35 pm

diehard1m wrote: ↑Thu Oct 13, 2022 9:17 pm
ok was not sure what I was doing but I think I got it.
Istill cant boot normally and not sure what next to do

Thanks for adjusting the code-blocks.
So, you are saying you still go this error :»Grub error symbol grub_disk_native_sectors not found»

This in post #8

Code: Select all

sudo debconf-communicate grub-pc <<< "set grub-pc/install_devices /dev/nvme3n1"
0 value set

looks ok, but this below not:

Code: Select all

sudo dpkg-reconfigure grub-pc
Installing for i386-pc platform.
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..

B/c this error-warning should not have been shown.

Now, let’s check again:
do run and post the text-output:

Now, just to check we have still the same device name for the only one MBR/bootable device /dev/nvme3n1:

And f that’s still this output:

Code: Select all

nvme3n1                                                                                   
├─nvme3n1p1  ext4   1.0   boot        69862ce0-63ef-406c-87f1-70edc6acc306  268.4M    38% /boot
├─nvme3n1p2  crypto 2                 d1e96fb4-c875-4b4a-8fce-668b9e451d48                
│ └─root.fsm                                                                  668G    23% /
└─nvme3n1p3  crypto 2                 9578a9af-e797-4398-8fec-683469866189                
  └─swap     swap   1     swapMX      bb99a4fc-bc4a-47bd-af73-652d9fb89ff2                [SWAP]

let’S do again install grub-boot loader onto the boot-device:

Code: Select all

sudo grub-install --target=i386-pc  --recheck /dev/nvme3n1

and als regenerate grub.cfg menu:

Let’s see …

Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB


diehard1m

Posts: 10
Joined: Sat Oct 08, 2022 8:21 am

Re: Grub error symbol grub_disk_native_sectors not found

#14

Post

by diehard1m » Mon Oct 17, 2022 12:05 pm

diehard@GigaByte:~
$ sudo debconf-show grub-pc

Code: Select all

grub-pc/mixed_legacy_and_grub2: true
* grub-pc/install_devices: /dev/nvme3n1
  grub-pc/install_devices_disks_changed:
  grub2/force_efi_extra_removable: false
* grub2/linux_cmdline_default: quiet splash
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/disk_description:
* grub-pc/install_devices_failed: true
  grub2/kfreebsd_cmdline:
  grub-pc/kopt_extracted: false
  grub2/update_nvram: true
  grub-pc/hidden_timeout: false
  grub-pc/install_devices_failed_upgrade: true
  grub-pc/partition_description:
* grub2/linux_cmdline:
  grub-pc/install_devices_empty: false
  grub-pc/chainload_from_menu.lst: true
  grub-pc/timeout: 5
  grub-pc/postrm_purge_boot_grub: false

$ lsblk -f /dev/nvme3n1
N

Code: Select all

AME         FSTYPE      FSVER LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINT
nvme3n1                                                                                   
├─nvme3n1p1  ext4        1.0   boot   69862ce0-63ef-406c-87f1-70edc6acc306  268.4M    38% /boot
├─nvme3n1p2  crypto_LUKS 2            d1e96fb4-c875-4b4a-8fce-668b9e451d48                
│ └─root.fsm                                                                668.6G    23% /
└─nvme3n1p3  crypto_LUKS 2            9578a9af-e797-4398-8fec-683469866189                
  └─swap     swap        1     swapMX bb99a4fc-bc4a-47bd-af73-652d9fb89ff2                [SWAP]

sudo grub-install —target=i386-pc —recheck /dev/nvme3n1
I

Code: Select all

nstalling for i386-pc platform.
Installation finished. No error reported.

$ sudo update-grub

Code: Select all

Generating grub configuration file ...
Found theme: /boot/grub/themes/mx_linux/theme.txt
Found linux image: /boot/vmlinuz-5.14.0-4mx-amd64
Found initrd image: /boot/initrd.img-5.14.0-4mx-amd64
Found memtest86+ image: /memtest86+.bin
grub-probe: error: cannot find a GRUB drive for /dev/sdi1.  Check your device.map.
done

going to reboot but I still got and error



User avatar

fehlix

Developer
Posts: 11737
Joined: Wed Apr 11, 2018 9:09 pm

Re: Grub error symbol grub_disk_native_sectors not found

#16

Post

by fehlix » Mon Oct 17, 2022 12:22 pm

diehard1m wrote: ↑Mon Oct 17, 2022 12:05 pm

Code: Select all

sudo grub-install --target=i386-pc  --recheck /dev/nvme3n1
Installing for i386-pc platform.
Installation finished. No error reported.

Code: Select all

$ sudo update-grub
Generating grub configuration file ...
Found theme: /boot/grub/themes/mx_linux/theme.txt
Found linux image: /boot/vmlinuz-5.14.0-4mx-amd64
Found initrd image: /boot/initrd.img-5.14.0-4mx-amd64
Found memtest86+ image: /memtest86+.bin
grub-probe: error: cannot find a GRUB drive for /dev/sdi1.  Check your device.map.
done

going to reboot but I still got and error

Looks all ok — except it wont boot — ignore the grub-probe about the LiveUSB.

And the error is still .. native_disk_not_found? or something else.
within a grub_rescue prompt?

Are you sure you booting from this device /dev/nvme3n1?

Maybe you can select from boot options list by pressing Esc or Fn-key (F12?) to select,
incase BIOS tries to boot from another MBR drive.

And if that is still is the grub_rescue as shown in you first post,
my last attempt would be this:

Code: Select all

sudo grub-install --target=i386-pc  --modules=normal --recheck /dev/nvme3n1

which would build grub’s core image including the normal.mod,
and by this would have alreay native_disk build in.

Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB


diehard1m

Posts: 10
Joined: Sat Oct 08, 2022 8:21 am

Re: Grub error symbol grub_disk_native_sectors not found

#17

Post

by diehard1m » Tue Oct 18, 2022 12:21 am

Hello, the boot is allite off but it looks like it’s booting.
I took out the mxlinux usb disk and I show GRUB for a split sec then the mxlinux boot menu start
and boot to linux. So that is where I am I’m not sure if I’m boot from /dev/nvme3n1. Still trying to under stand linux.
If i’m not booting from it them how is it that it’s working and all my other drives are working.


User avatar

fehlix

Developer
Posts: 11737
Joined: Wed Apr 11, 2018 9:09 pm

Re: Grub error symbol grub_disk_native_sectors not found

#18

Post

by fehlix » Tue Oct 18, 2022 12:38 am

diehard1m wrote: ↑Tue Oct 18, 2022 12:21 am
Hello, the boot is allite off but it looks like it’s booting.
I took out the mxlinux usb disk and I show GRUB for a split sec then the mxlinux boot menu start
and boot to linux. So that is where I am I’m not sure if I’m boot from /dev/nvme3n1. Still trying to under stand linux.
If i’m not booting from it them how is it that it’s working and all my other drives are working.

So, have you made any changes since my last post. It appeared, the hanger was it took from another MBR the old GRUB core.img, may be one of the raid device had originally populated with the old GRUB MBR stuff. Adn bios started from the wrong MBR. At least now it boots the one wich you «injected» into the MBR with the grub-install. At least so far the theory..

Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB


diehard1m

Posts: 10
Joined: Sat Oct 08, 2022 8:21 am

Re: Grub error symbol grub_disk_native_sectors not found

#19

Post

by diehard1m » Tue Oct 18, 2022 1:46 am

No I have not made any changes. the backup machine is only for the database and nothing else.
the raid is not part of the booting so I dont know why it would have a GRUB MBR on it and if it got place on it would kill the array.
It is working so far and I ran the new updates on it and booted back up with no GRUB or any other error. So thank yiou so much.
The only thing is why did it no boot after the lastest GRUB update from mxlinux?


User avatar

fehlix

Developer
Posts: 11737
Joined: Wed Apr 11, 2018 9:09 pm

Re: Grub error symbol grub_disk_native_sectors not found

#20

Post

by fehlix » Tue Oct 18, 2022 7:29 am

diehard1m wrote: ↑Tue Oct 18, 2022 1:46 am
No I have not made any changes. the backup machine is only for the database and nothing else.
the raid is not part of the booting so I dont know why it would have a GRUB MBR on it and if it got place on it would kill the array.
It is working so far and I ran the new updates on it and booted back up with no GRUB or any other error. So thank yiou so much.
The only thing is why did it no boot after the lastest GRUB update from mxlinux?

Good, question … if during the first GRUB update those popup question would have been answered all correctly,
it should have not shown those native_disk_error. So not sure, maybe the 2nd GRUB update have fixed this,
or something else …???

Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB


#1 2022-09-10 23:57:43

prizm02
Member
Registered: 2022-09-03
Posts: 5  

GRUB update lands at ‘grub rescue>’ prompt

Latest upgrade broke Grub.

error:symbol ‘grub_disk-native-sectors-not-found’

grub rescue>

I know the steps are on the web,  Not sure about doing this.

It is a BIOS install.   I’m posting from a live usb devuan.

I mounted boot partition to  remove grub-efi-amd64 and reinstall grub-pc and get this

Setting up grub-pc (2.04-20) ...
/usr/sbin/grub-probe: error: failed to get canonical path of `overlay'.
dpkg: error processing package grub-pc (--configure):
 installed grub-pc package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)

nex step ?

Last edited by prizm02 (2022-09-11 10:27:57)

#2 2022-09-11 08:43:29

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,103  
Website

Re: GRUB update lands at ‘grub rescue>’ prompt

You need to chroot into the system with the API filesystems mounted for that to work.

Either use Rescue Mode to obtain a shell in the installed system or run these commands from the live environment:

apt update
apt install arch-install-scripts
mount /dev/sdXY /mnt
mount /dev/sdXZ /mnt/boot
arch-chroot /mnt

Replace X, Y & Z with the drive letter and partition numbers for the root (/) and /boot partitions, respectively.

From a shell in the installed system run these commands to fix things:

dpkg-reconfigure grub-pc
grub-mkconfig -o /boot/grub/grub.cfg

I presume you’re running testing/unstable? You really should mention the version in the OP.

EDIT: and please replace the thread title with something useful (eg, «GRUB update lands at ‘grub rescue>’ prompt»). This is actually a common problem at the moment:

https://archlinux.org/news/grub-bootloa … ibilities/

If you had bothered to search before posting you would probably have found the solution more quickly.

Last edited by Head_on_a_Stick (2022-09-11 09:06:55)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII, 18.

#3 2022-09-11 09:07:48

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,103  
Website

Re: GRUB update lands at ‘grub rescue>’ prompt

Hold on, I missed this:

prizm02 wrote:

I mounted boot partition to  remove grub-efi-amd64 and reinstall grub-pc

Why was grub-efi-amd64 installed?


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII, 18.

#4 2022-09-11 10:27:12

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,182  

Re: GRUB update lands at ‘grub rescue>’ prompt

The amd64 live isos have grub-efi-amd64 installed and the grub-pc deb package available inside the iso for bios boots. If the iso is booted in uefi mode, it installs grub-efi. If the iso is booted in bios mode, the installer will install grub-pc. If you boot in bios mode and chroot the installed system, you need to install the grub-pc package before running grub-install. It’s in the root of the filesystem. So run dpkg -i /grub-pc*.deb before running grub-install.

If the iso is booted in bios mode and the disk has gpt partition table, the installer will warn you that you need a special partition for grub, at least 1mb with no filesystem and with flag bios_grub (in gparted) or ef03 (in gdisk).

Edit: Just after hitting Submit, I saw that the first message says this happened after an upgrade. Now I’m not sure if my answer if relevant.

#5 2022-09-11 10:35:25

prizm02
Member
Registered: 2022-09-03
Posts: 5  

Re: GRUB update lands at ‘grub rescue>’ prompt

Install is Chimaera stable,  the update  stopped at a screen that asked where and how to install the new grub. I  selected sda1.  I thought the motherboard settings were wrong.

Is Recovery mode the same as Rescue mode .

Last edited by prizm02 (2022-09-11 10:40:13)

#6 2022-09-11 10:55:17

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,103  
Website

Re: GRUB update lands at ‘grub rescue>’ prompt

prizm02 wrote:

Is Recovery mode the same as Rescue mode .

No.

I provided the link for a reason. Please read it.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII, 18.

#7 2022-09-11 11:31:47

prizm02
Member
Registered: 2022-09-03
Posts: 5  

Re: GRUB update lands at ‘grub rescue>’ prompt

The following string will be used as Linux parameters for the default   │
  │ menu entry but not for the recovery mode.                               │
  │                                                                         │
  │ Linux default command line:                                             │
  │                                       

grub-mkconfig -o /boot/grub/grub.cfg_

following fsmithread

dpkg: error processing package grub-pc (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.9.4-2) ...
Errors were encountered while processing:
 grub-pc

The live usb has Failsafe but no Rescue Boot Option.

Last edited by prizm02 (2022-09-11 11:55:01)

#8 2022-09-11 11:36:17

Marjorie
Member
From: Teignmouth, UK
Registered: 2019-06-09
Posts: 186  

Re: GRUB update lands at ‘grub rescue>’ prompt

Just for clarification, is this a general problem with the latest upgrade of grub?

I’ve just been updating my legacy-bios Chimaera installation (using synaptic).
There are lots of upgrades available today, including one to grub-pc, from 2.04-20 to 2:06-3~deb11u1.
I’ve installed all the other upgrades.
Is this safe to install the grub upgrade or will it just give me a grub rescue> prompt and a headache?

Last edited by Marjorie (2022-09-11 11:38:29)

#9 2022-09-11 14:07:06

rolfie
Member
Registered: 2017-11-25
Posts: 759  

Re: GRUB update lands at ‘grub rescue>’ prompt

Chimaera: Just tried the update on my laptop: Yes, the grub update will cause headaches. Acer Aspire 5 A515-44, efi only, encrypted LVM with unencrypted root. The installation worked on second try (had to enable rw for the efivarfs), creates a new debian entry in the efi, on reboot the grub rescue shell comes up with «symbol grub_disk_native_sectors not found».

When I use F12 to select my original entry devuan4 the laptop boots. Then I removed the debian, and now I am getting the error also on my devuan4.

#10 2022-09-11 15:04:56

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,103  
Website

Re: GRUB update lands at ‘grub rescue>’ prompt

prizm02 wrote:

The live usb has Failsafe but no Rescue Boot Option.

Then use arch-chroot from the live environment, as I suggested in my first post.

Are you even reading replies?

Marjorie wrote:

is this a general problem with the latest upgrade of grub?

Yes. Details on the Arch News item to which I linked. It’s been all over the Arch forums recently.

Debian’s 11.5 point release has an upgraded GRUB version, which is highly unusual. I’m not sure if that also has the problem.

I don’t use GRUB myself…


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII, 18.

#11 2022-09-11 17:09:13

rolfie
Member
Registered: 2017-11-25
Posts: 759  

Re: GRUB update lands at ‘grub rescue>’ prompt

Got my laptop fixed again. Booted the installer stick into rescue mode, chrooted into the encrypted system. To get that working I needed to load some Realtek firmware for wired network access. Took me a while to figure out that the stick I first used wasn’t FAT formatted. The installer didn’t like that. 

# grub-install --bootloader-id=devuan4 --no-uefi-secure-boot
# update-grub

That fixed it for me.

Edith

Note to the public: in general probably a simple

# grub-install 
# update-grub

will do the job.

Last edited by rolfie (2022-09-11 17:21:59)

#12 2022-09-11 19:49:21

prizm02
Member
Registered: 2022-09-03
Posts: 5  

Re: GRUB update lands at ‘grub rescue>’ prompt

I got fed up and reinstalled.

Thanks for all replies.

31.01.2023

Купили лицензии и есть много Пк. На один установили всё ПО. Теперь надо размножить установку.
С Орлом прокатывало Macrium Reflect.
тот что потом надо менять имя хоста — известно. это не проблема и не составляет трудностей.

после клонирования макриумом получил следующий вывод

Посмотреть вложение 1675151872346.png

error: symbol ‘grub_disk_native_sectors’ not found
Entering rescue mode…
grub rescue>

что делать — не очень понятно…

ls показывает список. на одном из разделов есть и папка Boot и тд.

31.01.2023

Сталкивался с похожей проблемой, зайдите в БИОС — выбрать конфигурация — CustomConfig0 — укажите загрузку astralinux и сохраните конфигурацию

31.01.2023

Сталкивался с похожей проблемой, зайдите в БИОС — выбрать конфигурация — CustomConfig0 — укажите загрузку astralinux и сохраните конфигурацию

хм. проверю вечером, спасибо…

31.01.2023

Купили лицензии и есть много Пк. На один установили всё ПО. Теперь надо размножить установку.
С Орлом прокатывало Macrium Reflect.
тот что потом надо менять имя хоста — известно. это не проблема и не составляет трудностей.

после клонирования макриумом получил следующий вывод

Посмотреть вложение 2865

error: symbol ‘grub_disk_native_sectors’ not found
Entering rescue mode…
grub rescue>

что делать — не очень понятно…

ls показывает список. на одном из разделов есть и папка Boot и тд.

Clonezilla не подойдет ?

31.01.2023

что-то она у меня не заработала нормально.. да я даже парагоном пробовал.. как понимаю не в этом дело..
итог один

31.01.2023

Странно, работает везде — только разрядность надо соблюдать. У неё один косячок есть — нельзя восстановить образ раздела/диска на меньший объем. Приходится в несколько проходов делать.

LOOP


01.02.2023

что-то она у меня не заработала нормально.. да я даже парагоном пробовал.. как понимаю не в этом дело..
итог один

Используй redorescue, проще чем clonezila. три кнопки.

LOOP


01.02.2023

Странно, работает везде — только разрядность надо соблюдать. У неё один косячок есть — нельзя восстановить образ раздела/диска на меньший объем. Приходится в несколько проходов делать.

к стати такой проблемы у redorescue нет. можешь развернуть на меньший обьём

01.02.2023

что делать — не очень понятно…

Восстановить загрузчик пробовали?

01.02.2023

Решил так.
Загрузился с флешки Астры. запустил «восстановление системы»
оно там как-то странно работает. экран не обновляется. и изначально мы видим просто черный экран.
сочетаниями Альт+Ф1 альт + Ф4 переключаемся туда сюда. жмём кнопки нужное количество раз, опять переключаемся и доходим до
«восстановление загрузчика GRUB» или как-то так пункт меню называется.

после этого перегружаемся и всё заработало.

ПС — почем режим восстановления так тупит сильно? может я что-то не так делал?
уже вчера скачал линукс минт, там тоже можно c его помощью восстановить GRUB. проверю на других машинах.

01.02.2023

Купили лицензии и есть много Пк. На один установили всё ПО. Теперь надо размножить установку.
С Орлом прокатывало Macrium Reflect.
тот что потом надо менять имя хоста — известно. это не проблема и не составляет трудностей.

после клонирования макриумом получил следующий вывод

Посмотреть вложение 2865

error: symbol ‘grub_disk_native_sectors’ not found
Entering rescue mode…
grub rescue>

что делать — не очень понятно…

ls показывает список. на одном из разделов есть и папка Boot и тд.

Такая же проблема.
Обнаружили что проблема возникла на 1.7.3
На 1.7.2 клонировались машины без восстановления загрузчика.
Сразу работали.

01.02.2023

но всё равно, почему режим восстановления работает так УЖАСНО…

01.02.2023

но всё равно, почему режим восстановления работает так УЖАСНО…

смеритесь уже с этим, забейте на гавно астру распиареную. эти гавно разработчики астры уже всех достали своими туаыми выходками.

02.02.2023

но всё равно, почему режим восстановления работает так УЖАСНО…

Я использую загрузочные флешки с ventoy и заметил, что скорость работы флешки на этапе начальной загрузки образа астры на разных машинах разная. Бывает, загрузится за несколько секунд, бывает, ждешь 4-5 минут. Пробовал ставить ventoy на microSD, результат такой же.

Последнее редактирование: 02.02.2023

LOOP


02.02.2023

Я использую загрузочные флешки с ventoy и заметил, что скорость работы флешки на этапе начальной загрузки на разных машинах разная. Бывает, загрузится за несколько секунд, бывает, ждешь 4-5 минут. Пробовал ставить ventoy на microSD, результат такой же.

Этап загрузки? или определение всех iso файлов?

LOOP


02.02.2023

Я использую загрузочные флешки с ventoy и заметил, что скорость работы флешки на этапе начальной загрузки на разных машинах разная. Бывает, загрузится за несколько секунд, бывает, ждешь 4-5 минут. Пробовал ставить ventoy на microSD, результат такой же.

Сам использую ventoy, флешка от самсунг на 128гб. 3.1 USB/ скорость чтения 350МБ.с. загрузка 65мб.сек. Если воткнуть в порт USB 3.0. грузится моментально. Возможно сам флеш накопитель у Вас так себе

02.02.2023

Этап загрузки? или определение всех iso файлов?

Поправил.

02.02.2023

Возможно сам флеш накопитель у Вас так себе

Дело не в флешке. Скорее всего в обЪеме озу.

LOOP


02.02.2023

Дело не в флешке. Скорее всего в обЪеме озу.

ну во первых решает пропускная способность порта куда воткнули «с нормальными скоростями» флешку, второе частота оперативной памяти и объем. если возьмем материнку на 775 сокете с чипсетом к примеру G31, где загрузка с флешки будет на скоростях usb 1.0 (так в биосе вшито, хоть и есть полная поддержка usb 2.0) не более 12 мбит в секунду. Железо много значит как и сама флешка, протестировать ее можно банально даже викторией версии 5.36, просто чтение поверхности. покажет реальные скорости на том порту, куда воткнули. бывает флешка при сльном нагреве сама скидывает скорость.

Пятница в 10:54

где загрузка с флешки будет на скоростях usb 1.0 (так в биосе вшито, хоть и есть полная

Ну это только до загрузки ядра. Ядро свой модуль подтянет.

#
1 год, 10 месяцев назад

Темы:

1

Сообщения:

2

Участник с: 20 марта 2021

Добрый вечер, в ходе моих попыток увеличить корневой раздел(там где root и тд) умер grub. Прогуглил, нашёл как исправить, выбрал диск с /boot/grub, ввёл set root, set prefix, insmod ext2, все хорошо, ввожу команду insmod normal, выдаёт «symbol ‘grub_disk_native_sectors’ not found», бьюсь с этой проблемой добрых часа 4, подскажите, пожалуйста, как решить.

AZJIO

#
1 год, 10 месяцев назад

(отредактировано

1 год, 10 месяцев назад)

Сообщения:

473

Участник с: 05 января 2021

martov
Из-за увеличения наверно uuid поменялся. Если ещё и MBR затёр, в котором указан адрес на core.img. Надо загрузиться в LiveCD, зайти в chroot, описание тут
и выполнить sudo grub-install /dev/sda
или прописать загрузку в Grub4Dos в свою ОС и там выполнить sudo grub-install /dev/sda (или sudo grub2-install /dev/sda), чтобы прописать MBR. Ну и желательно сохранить MBR в файл, чтобы легко восстанавливать.
Можно бэкапировать /boot/grub/grub.cfg, если там есть личные настройки, так как он будет сгенерирован новый.

martov

#
1 год, 10 месяцев назад

(отредактировано

1 год, 10 месяцев назад)

Темы:

1

Сообщения:

2

Участник с: 20 марта 2021

А вот вторая проблема подкралась, записал образ с телефона на флешку, а биос её не видит, поддержка легаси включена, записал альпайн, после включения поддержки легаси флешка появилась, однако просто с подписью usb-hardrive, при выборе её кидает обратно в rescue mode

Понравилась статья? Поделить с друзьями:
  • Error symbol grub calloc not found entering rescue mode grub rescue
  • Error symbol grub calloc not found astra linux как восстановить
  • Error sxs assembly not found
  • Error switch quantity not an integer
  • Error switch jumps into scope of identifier with variably modified type