You are not logged in.
hi,
I believe my grub configuration is screwed and I need to put it back on track.
I have 2 partitions mounted when the system is working:
/dev/sdd2 => /boot
/dev/sdb1 => /
I realized that a directory /boot is on /dev/sdb1. I renamed it to boot.old using arch-boot/live distribution, then grub could not boot anymore.
Only /dev/sdb disk seems bootbable.
/boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### 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_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 a2077c26-9485-4361-b683-087602c30c8c
else
search --no-floppy --fs-uuid --set=root a2077c26-9485-4361-b683-087602c30c8c
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=fr_FR
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-a2077c26-9485-4361-b683-087602c30c8c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd3,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos2 --hint-efi=hd3,msdos2 --hint-baremetal=ahci3,msdos2 cab5dd86-c563-4dfe-b1f1-708eea571206
else
search --no-floppy --fs-uuid --set=root cab5dd86-c563-4dfe-b1f1-708eea571206
fi
echo 'Chargement de Linux linux-lts…'
linux /vmlinuz-linux-lts root=UUID=a2077c26-9485-4361-b683-087602c30c8c rw
echo 'Chargement du disque mémoire initial…'
initrd /initramfs-linux-lts.img
}
submenu 'Options avancées pour Arch Linux' $menuentry_id_option 'gnulinux-advanced-a2077c26-9485-4361-b683-087602c30c8c' {
menuentry 'Arch Linux, avec Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-a2077c26-9485-4361-b683-087602c30c8c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd3,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos2 --hint-efi=hd3,msdos2 --hint-baremetal=ahci3,msdos2 cab5dd86-c563-4dfe-b1f1-708eea571206
else
search --no-floppy --fs-uuid --set=root cab5dd86-c563-4dfe-b1f1-708eea571206
fi
echo 'Chargement de Linux linux-lts…'
linux /vmlinuz-linux-lts root=UUID=a2077c26-9485-4361-b683-087602c30c8c rw
echo 'Chargement du disque mémoire initial…'
initrd /initramfs-linux-lts.img
}
menuentry 'Arch Linux, with Linux linux-lts (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-fallback-a2077c26-9485-4361-b683-087602c30c8c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd3,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos2 --hint-efi=hd3,msdos2 --hint-baremetal=ahci3,msdos2 cab5dd86-c563-4dfe-b1f1-708eea571206
else
search --no-floppy --fs-uuid --set=root cab5dd86-c563-4dfe-b1f1-708eea571206
fi
echo 'Chargement de Linux linux-lts…'
linux /vmlinuz-linux-lts root=UUID=a2077c26-9485-4361-b683-087602c30c8c rw
echo 'Chargement du disque mémoire initial…'
initrd /initramfs-linux-lts-fallback.img
}
menuentry 'Arch Linux, avec Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-a2077c26-9485-4361-b683-087602c30c8c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd3,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos2 --hint-efi=hd3,msdos2 --hint-baremetal=ahci3,msdos2 cab5dd86-c563-4dfe-b1f1-708eea571206
else
search --no-floppy --fs-uuid --set=root cab5dd86-c563-4dfe-b1f1-708eea571206
fi
echo 'Chargement de Linux linux…'
linux /vmlinuz-linux root=UUID=a2077c26-9485-4361-b683-087602c30c8c rw
echo 'Chargement du disque mémoire initial…'
initrd /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-a2077c26-9485-4361-b683-087602c30c8c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd3,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos2 --hint-efi=hd3,msdos2 --hint-baremetal=ahci3,msdos2 cab5dd86-c563-4dfe-b1f1-708eea571206
else
search --no-floppy --fs-uuid --set=root cab5dd86-c563-4dfe-b1f1-708eea571206
fi
echo 'Chargement de Linux linux…'
linux /vmlinuz-linux root=UUID=a2077c26-9485-4361-b683-087602c30c8c rw
echo 'Chargement du disque mémoire initial…'
initrd /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 10 (loader) (sur /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-36F8E4C4F8E48409' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 36F8E4C4F8E48409
else
search --no-floppy --fs-uuid --set=root 36F8E4C4F8E48409
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
### 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/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sdb1
UUID=a2077c26-9485-4361-b683-087602c30c8c / ext4 rw,relatime,data=ordered 0 1
# /dev/sdd2 LABEL=disk2
UUID=cab5dd86-c563-4dfe-b1f1-708eea571206 /boot ext2 rw,relatime 0 2
# /dev/sdc6
UUID=8e6243a0-22e6-4fcf-a131-a835e7f72530 /home ext4 rw,relatime,data=ordered 0 2
# /dev/sdd6
UUID=ee664520-2205-421e-875d-d1432bae9470 /home/cyril/home_extra ext4 rw,relatime,data=ordered 0 3
fdisk
Disk /dev/sda: 58.7 GiB, 63023063040 bytes, 123091920 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
Disklabel type: dos
Disk identifier: 0xdfdadfda
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 63 122152364 122152302 58.3G 7 HPFS/NTFS/exFAT
/dev/sda2 122152960 123074559 921600 450M 27 Hidden NTFS WinRE
Disk /dev/sdb: 59.6 GiB, 64023257088 bytes, 125045424 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
Disklabel type: dos
Disk identifier: 0x000c31ea
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 63 125017641 125017579 59.6G 83 Linux
Disk /dev/sdd: 465.8 GiB, 500107862016 bytes, 976773168 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
Disklabel type: dos
Disk identifier: 0x0001a2d5
Device Boot Start End Sectors Size Id Type
/dev/sdd1 2046 968910847 968908802 462G 5 Extended
/dev/sdd2 * 968912280 976751999 7839720 3.8G 7 HPFS/NTFS/exFAT
/dev/sdd5 2048 7628799 7626752 3.7G 82 Linux swap / Solaris
/dev/sdd6 7630848 968910847 961280000 458.4G 83 Linux
Partition table entries are not in disk order.
Disk /dev/sdc: 465.8 GiB, 500107862016 bytes, 976773168 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
Disklabel type: dos
Disk identifier: 0x0000c823
Device Boot Start End Sectors Size Id Type
/dev/sdc1 4094 976773119 976769026 465.8G 5 Extended
/dev/sdc5 4096 204804095 204800000 97.7G 7 HPFS/NTFS/exFAT
/dev/sdc6 204806144 976773119 771966976 368.1G 83 Linux
Disk /dev/sde: 7.5 GiB, 8004304896 bytes, 15633408 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
Disklabel type: dos
Disk identifier: 0x472edcb7
Device Boot Start End Sectors Size Id Type
/dev/sde1 * 1953 15633407 15631455 7.5G c W95 FAT32 (LBA)
Disk /dev/sdf: 58.6 GiB, 62932647936 bytes, 122915328 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
Disklabel type: dos
Disk identifier: 0x7c46994f
Device Boot Start End Sectors Size Id Type
/dev/sdf1 * 8064 122915327 122907264 58.6G 7 HPFS/NTFS/exFAT
Disk /dev/sdg: 956 MiB, 1002438656 bytes, 1957888 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
Disklabel type: dos
Disk identifier: 0x6d5e2a3d
Device Boot Start End Sectors Size Id Type
/dev/sdg1 * 32 1957887 1957856 956M b W95 FAT32
lsblk
NAME FSTYPE LABEL UUID MOUNTPOINT
sdf
`-sdf1 exfat KINGSTON 96A0-ED48
sdd ext4 disk2 1961bf4c-d870-446e-ba87-ef007e9f887c
|-sdd2 ext2 disk2 cab5dd86-c563-4dfe-b1f1-708eea571206 /boot
|-sdd5 swap disk2 ee960d6b-dc83-4b96-8d19-16e18e6cc825
|-sdd1 ext4 disk2 1961bf4c-d870-446e-ba87-ef007e9f887c
`-sdd6 ext4 disk2 ee664520-2205-421e-875d-d1432bae9470 /home/cyril/home_extra
sdb
`-sdb1 ext4 a2077c26-9485-4361-b683-087602c30c8c /
sr0
sdg
`-sdg1 vfat MYLINUXLIVE CA42-98DE
sde iso9660 GRTMUPD_FR 2008-04-14-12-00-00-00
`-sde1 vfat UUI 18F1-2722
sdc
|-sdc5 ntfs 8E240BD4240BBE69
|-sdc1
`-sdc6 ext4 8e6243a0-22e6-4fcf-a131-a835e7f72530 /home
sda
|-sda2 ntfs D066DEEC66DED278
`-sda1 ntfs 36F8E4C4F8E48409
In short grub and my linux mounting logic are disaligned!
how do I make grub reading the correct boot partition?
Thanks
Last edited by kamelie1706 (2016-12-10 10:20:48)
Offline
Tell grub which new boot directory to use.
Offline
Thanks,
It is probably obvious but I could not understand from the wiki in which setting file and how to specify that :-)
https://wiki.archlinux.org/index.php/GRUB#Configuration
Offline
The grub conf seems correct to me .... is it possible to have 2 grub active at the same time?
Offline
Boot the Arch live ISO image, mount all of your partitions then use `arch-chroot` and re-install GRUB to the disk, as per https://wiki.archlinux.org/index.php/GR … ll_to_disk.
The current bootloader binary is searching for the configuration file on /dev/sdb1 and those files are gone, if you re-install the bootloader with the correct /boot partition mounted then it will "look" in the right place.
Offline
Thank you very much!
It is solved. I thought that re-running the configuration within correct mounting setup was enough
grub-mkconfig -o /boot/grub/grub.cfg
I might have tried to re-install grub under arch-root ....
Offline