You are not logged in.
Hello
I get some problem, i thiunk this is tipical after Windows upgrade, Windows change boot sector i think... OK so i have error
Welcome to Grub!
error: unknow filesystem.
Entering rescue mode...
grub rescue>
I try boot system temporary:
ls (hd1,gpt9)
(hd1,gpt9): Filesystem is ext2,
grub rescue > root=(hd1,gpt9)
grub rescue > prefix=(hd1,gpt9)/boot/grub
grub rescue >insmod normal
grub rescue > normal
After this i have access to to Grub main window, so i can select Windows or Arch, but problem is after booting ArchLinux i need somehow recover Grub permanently. I try
grub-install /dev/sda
Whole process finish without any error, but after restart i have same issue. I know this is looks so easy to fix but i cant do this , can i have some advice please ??
Thank You
Last edited by 5mint (2018-03-01 17:33:55)
Offline
Have you checked these steps from the wiki?
Offline
Yes i check wiki, but not working for me, my HDD is 2TB so i think this is no problem like wiki said... Maybe this is UUIDs problem but i dont know how check it...
Offline
Just because windows could have changed anything, have you tried regenerating the grub.cfg file?
grub-mkconfig -o /boot/grub/grub.cfg
Offline
How did you install arch and how did you install grub the first time?
Offline
Hi, I don't see "solved" in the title, so I guess this topic is open yet..
That happend to me too. Reinstalling grub as tomsargeaunt says worked for me.
This is only one of the multiple ways to solve it and the one I prefer becouse its simplicity
With a Live Cd mount the root partition. In my case sda is the whole partition and sda5 type ext4 the root
mount -t ext4 /dev/sda5 /mnt
Then enter in chroot mode:
arch-chroot /mnt
and reinstall grub:
grub-install /dev/sda
sda, not sda5
grub-mkconfig -o /boot/grub/grub.cfg
Exit from chroot and reboot.
(Sorry for my bad grammar....)
Offline
There is very anoin... looks like simple to fix but i try do few diffrent steps and nothing... I orginal install Arch around 3 yeras ago with Wiki guaid, same as Grub.
7etc/ i try do steps from Your post but still nothing.
What change... When i generat new grub.cfg, and when i get acces to Grub from rescue mode i see now Arch is firs, windows is second, b4 this i have setting Windows as default... but grub still report error... I no idea how i can diagnose where is problem. I can do some screenshot from arch or i can chroot to arch and also get some screen if anybody need to look my config or something.
Thanks
Offline
Please post the contents of the systems /boot/grub/grub.cfg and /etc/default/grub also the output of
# parted -l
# blkid
Offline
Is this a UEFI system?
Can we also see
# efibootmgr -v
Para todos todo, para nosotros nada
Offline
Yes, is necessary more detailed info about console outputs, errors, logs.. or we go nowhere trying to guess the solution...
Offline
I think this is EFI system
/boot/grub/grub.cfg
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt9' --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5
else
search --no-floppy --fs-uuid --set=root 4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=pl_PL
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt9' --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5
else
search --no-floppy --fs-uuid --set=root 4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5
fi
echo 'Wczytywanie systemu Linux linux...'
linux /boot/vmlinuz-linux root=UUID=4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5 rw quiet
echo 'Wczytywanie początkowego dysku RAM...'
initrd /boot/initramfs-linux.img
}
submenu 'Opcje zaawansowane dla systemu Arch Linux' $menuentry_id_option 'gnulinux-advanced-4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5' {
menuentry 'Arch Linux, za pomocą systemu Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt9' --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5
else
search --no-floppy --fs-uuid --set=root 4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5
fi
echo 'Wczytywanie systemu Linux linux...'
linux /boot/vmlinuz-linux root=UUID=4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5 rw quiet
echo 'Wczytywanie początkowego dysku RAM...'
initrd /boot/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt9' --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5
else
search --no-floppy --fs-uuid --set=root 4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5
fi
echo 'Wczytywanie systemu Linux linux...'
linux /boot/vmlinuz-linux root=UUID=4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5 rw quiet
echo 'Wczytywanie początkowego dysku RAM...'
initrd /boot/initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (na /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-E658-5648' {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt2' --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 E658-5648
else
search --no-floppy --fs-uuid --set=root E658-5648
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
/etc/default/grub
# GRUB boot loader configuration
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT=5
#GRUB_HIDDEN_TIMEOUT_QUIET=true
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
# Uncomment to make GRUB remember the last selection. This requires to
# set 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"
parted -l
Model: ATA ST2000LM003 HN-M (scsi)
Dysk /dev/sda: 2000GB
Rozmiar sektora (logiczny/fizyczny): 512B/4096B
Tablica partycji: gpt
Flagi dysku:
Numer Początek Koniec Rozmiar System plików Nazwa Flaga
1 1049kB 683MB 682MB ntfs Basic data partition ukryta, diag
2 683MB 955MB 273MB fat32 EFI system partition ładowalna, esp
3 955MB 1089MB 134MB Microsoft reserved partition msftres
4 1089MB 364GB 362GB ntfs Basic data partition msftdata
5 364GB 364GB 952MB ntfs ukryta, diag
6 364GB 366GB 1969MB ntfs ukryta, diag
7 366GB 918GB 552GB ntfs Basic data partition msftdata
8 918GB 1844GB 925GB ntfs Basic data partition msftdata
9 1844GB 1968GB 124GB ext4
10 1968GB 1972GB 4295MB linux-swap(v1) Linux swap
11 1972GB 2000GB 28,2GB ntfs Basic data partition msftdata
Model: SanDisk Ultra Fit (scsi)
Dysk /dev/sdb: 30,8GB
Rozmiar sektora (logiczny/fizyczny): 512B/512B
Tablica partycji: msdos
Flagi dysku:
Numer Początek Koniec Rozmiar Typ System plików Flaga
1 1049kB 12,1GB 12,1GB primary fat32 ładowalna
2 12,1GB 30,8GB 18,6GB primary ext3
blkid
/dev/sda1: LABEL="WINRE" UUID="F22881BF288182F9" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="fa450659-5def-4320-a9b7-aeea20746b89"
/dev/sda2: UUID="E658-5648" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="8da7bd8d-93a6-4759-91e4-4dab27113789"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="65e9412e-6a97-4b6e-adfb-fc5820345ae7"
/dev/sda4: LABEL="Windows" UUID="667ED6E57ED6AD55" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="b07c517d-b693-4d4a-b07d-fc57ecc94a21"
/dev/sda5: UUID="4C6E8ED06E8EB26E" TYPE="ntfs" PARTUUID="78936750-cb83-467b-b776-954069528338"
/dev/sda6: UUID="C85A55D25A55BDBE" TYPE="ntfs" PARTUUID="474dec83-2760-41c0-8671-a6d1eaeca436"
/dev/sda7: LABEL="MAGAZYN" UUID="0FB10F150FB10F15" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="521eb686-5b13-11e5-826a-5ce0c582dcb3"
/dev/sda8: LABEL="DODATKOWY" UUID="0FB71BB60FB71BB6" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="2953c8a0-5b26-11e5-826b-5ce0c582dcb3"
/dev/sda9: LABEL="Arch" UUID="4c1fe3aa-234f-43f9-8ef1-6a03f0f6b9d5" TYPE="ext4" PARTUUID="8daea669-8c1d-44bb-a731-7e705dbc1a9b"
/dev/sda10: LABEL="Linux Swap" UUID="b2e3cae6-c10e-4714-990b-89de45e3bdf1" TYPE="swap" PARTLABEL="Linux swap" PARTUUID="3c6c250f-6f85-4e8e-b120-1866507b0de2"
/dev/sda11: LABEL="RECOVERY" UUID="64F23BEAF23BBF5C" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="924c10a3-4f91-4b88-bc4e-fcc263520fa2"
/dev/sdb1: LABEL="UUI" UUID="0CAA-1374" TYPE="vfat" PARTUUID="5a81be98-01"
/dev/sdb2: LABEL="persistence" UUID="dfdd6d31-d9e1-7544-a220-d6bc77523077" TYPE="ext3" PARTUUID="5a81be98-02"
efibootmgr -v
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0001,0003,2001,2002,2004
Boot0000* grub HD(2,GPT,8da7bd8d-93a6-4759-91e4-4dab27113789,0x145800,0x82000)/File(\EFI\grub\grubx64.efi)
Boot0001* Windows Boot Manager HD(2,GPT,8da7bd8d-93a6-4759-91e4-4dab27113789,0x145800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0002* USB Hard Drive (UEFI) - SanDisk PciRoot(0x0)/Pci(0x14,0x0)/USB(11,0)/HD(1,MBR,0x5a81be98,0x800,0x169b000)RC
Boot0003* arch HD(2,GPT,8da7bd8d-93a6-4759-91e4-4dab27113789,0x145800,0x82000)/File(\EFI\arch\grubx64.efi)
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot3000* Internal Hard Disk or Solid State Disk RC
Thank You
Offline
Try
# efibootmgr -o 3,1
If that works, delete the extraneous GRUB entry:
# efibootmgr -b 0 -B
Also, how have you mounted your EFI system partition?
Please post the output of
lsblk -f
Your Arch GRUB entry seems to be booting /boot/vmlinuz from /dev/sda9, is that correct?
It may be preferable to mount /boot to the ESP to allow more flexibility and not be locked in to GRUB.
Para todos todo, para nosotros nada
Offline
HI
Yest i have install everything on one partition /dev/sda9, i dont know what happened, everything work perfect over 3 yaers, b4 on my old laptop same... but now i dont know... alternativly i can reinstall Arch but i dont want to install everything again all package, etc, so that way o try fix it first.
this is my lsblk -r
sda 8:0 0 1,8T 0 disk
sda1 8:1 0 650M 0 part
sda2 8:2 0 260M 0 part /boot/efi
sda3 8:3 0 128M 0 part
sda4 8:4 0 337,6G 0 part
sda5 8:5 0 908M 0 part
sda6 8:6 0 1,9G 0 part
sda7 8:7 0 514G 0 part
sda8 8:8 0 861,9G 0 part
sda9 8:9 0 115,6G 0 part /
sda10 8:10 0 4G 0 part
sda11 8:11 0 26,3G 0 part
sdb 8:16 1 28,7G 0 disk
sdb1 8:17 1 11,3G 0 part
sdb2 8:18 1 17,3G 0 part
sr0 11:0 1 1024M 0 rom
Last edited by 5mint (2018-03-01 17:18:40)
Offline
i can reinstall Arch
You don't have to reinstall just to change a mountpoint and there should be no need to mount the ESP to /boot if you are using GRUB.
Try re-ordering the NVRAM entries, as I suggested.
Para todos todo, para nosotros nada
Offline
@Head_on_a_Stick
oot
Working now, only i have to setting in Bios default bootmanager to Grub and now all good.
Thank You for help Head_on_a_Stick and thanks for everybody to try fix it. That very good Arch Linux community is so helpful...
On the end i try undersand what problem that was ??
Thanks again
Offline
i have to setting in Bios default bootmanager to Grub and now all good
What is the order in the output of `efibootmgr` now?
Is the "arch" entry now listed as first to boot?
It could be that your motherboard does not accept modifications via `efibootmgr -o` for whatever reason, I suppose.
Para todos todo, para nosotros nada
Offline
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0001,2001,2002,2004
Boot0000* USB Hard Drive (UEFI) - SanDisk
Boot0001* Windows Boot Manager
Boot0002* USB Hard Drive (UEFI) - SanDisk
Boot0003* arch
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot3000* Internal Hard Disk or Solid State Disk
Boot3003* Internal Hard Disk or Solid State Disk
Offline
So did the `efibootmgr` command not work then?
Is that why you resorted to the firmware ("BIOS") options?
Para todos todo, para nosotros nada
Offline
It work, i just follow Your advise #12 after reboot Windows start loading, so i just restart my laptop and go to bios setting, and from booting option choice grub as defaullt, and now all working fine, grub woking good, so Your advice was goog , all OK now .
Offline
OK, good, thanks for reporting back
Para todos todo, para nosotros nada
Offline