You are not logged in.
Pages: 1
Hey forum,
I've been having trouble getting grub to recognise arch. I have Windows, Mint and Arch on different partitions, and running
update-grub.
does detect arch:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-21-generic
Found initrd image: /boot/initrd.img-4.4.0-21-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 10 (loader) on /dev/sda1
Found Windows 10 (loader) on /dev/sda2
Found Arch on /dev/sda7
done.
When I installed Arch I accidentally wiped the boot partition i was going to use, and needed to reinstall linux mint to recover my OS installations. I am now using the Grub installation that came with Mint. However on reboot arch linux isn't an option in grub. Do i need to add some kind of boot files to the arch partition to help launch arch?
Any help would be greatly appreciated! I will happily add info if necessary.
Update: contents of boot folders on arch partition
boot # ls
grub initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linux
grub # ls
fonts grubenv i386-pc locale
Kromes
Last edited by Kromes (2016-09-09 23:01:58)
Offline
There is no grub.cfg inside Arch Linux boot directory.
You should chroot into Arch installation and generate Arch grub.cfg. Since Arch doesn't have update-grub script, your only way to generate grub.cfg for Arch is using grub-mkconfig.
Type this command while inside Arch chroot.
grub-mkconfig -o /boot/grub/grub.cfg
Offline
Thanks! When you say chroot into arch installation, are you suggesting to use the live installation media? I get the reply:
bash: grub-mkconfig: command not found
Am i doing something wrong? I then also tried it on Mint chrooted into arch, and i get the same problem. I'm assuming I'm missing dependancies or there is a discrepancy in grub versions, but i'm not sure how to fix this. Does running
apt install grub
in mint, but with chroot in the arch partition, install grub on the arch installation?
I scared of a conflict and don't want to ruin my system.
Last edited by Kromes (2016-09-09 17:09:03)
Offline
You boot from the install media, then you mount your partitions and then you chroot into your system piggybacking off the kernel used by the install media.
https://wiki.archlinux.org/index.php/change_root
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Okay, in which case that is what I am doing, but i only get the reply:
bash: grub-mkconfig: command not found
I'm guessing there must be dependancies which i am missing, but I want to avoid installing the entire bootloader.
Offline
but I want to avoid installing the entire bootloader.
In Arch Linux 'grub' package installation does not perform bot code installation in any target. You can install Grub and only generate grub.cfg file
= OR =
add manually Arch Linux to /etc/grub.d/40_custom on MInt.
Last edited by Fixxer (2016-09-09 17:59:35)
Offline
grub-mkconfig is part of the grub package. If you don't want to install that, create the config by hand.
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
I've made a config file but grub still refuses to display arch. I attempted to manually edit the grub.cfg file in the Mint partition (afaik this is what my laptop boots with?), copying and pasting the menuentry for arch from the arch grub. Perhaps i don't understand grub well enough but i cannot figure out why it ignores arch.
I've tried, with the new config file added in the /boot/grub directory of the arch partition, to mount the arch partition in Mint and run update-grub. I've attempted to modify the grub config on the Mint partition to include arch, and it either crashes (likely to bad syntax?) or ignores arch entirely. I'm out of ideas, i would wipe the whole drive and start afresh but I wouldn't be able to replace my windows installation and am worried about the damage that i could cause to my system without a bootloader.
Offline
Run Linux Mint and post output of bootinfoscript:
https://sourceforge.net/projects/bootinfoscript/ .
Offline
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
in partition 97 for .
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD
sda2: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda4: __________________________________________________________________________
File system: Extended Partition
Boot sector type: Unknown
Boot sector info:
sda5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub2/grub.cfg
sda6: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda7: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Arch Linux ()
Boot files: /boot/grub/grub.cfg /etc/fstab
sda8: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda9: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Linux Mint 18 Sarah
Boot files: /boot/grub/grub.cfg /etc/fstab
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sda2 206,848 282,611,290 282,404,443 7 NTFS / exFAT / HPFS
/dev/sda3 624,218,112 625,139,711 921,600 27 Hidden NTFS (Recovery Environment)
/dev/sda4 282,611,710 624,218,111 341,606,402 5 Extended
/dev/sda5 419,420,160 420,444,159 1,024,000 83 Linux
/dev/sda6 420,446,208 471,646,207 51,200,000 83 Linux
/dev/sda7 282,611,712 349,358,079 66,746,368 83 Linux
/dev/sda8 411,252,736 419,409,919 8,157,184 82 Linux swap / Solaris
/dev/sda9 471,648,256 624,218,111 152,569,856 83 Linux
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 EEAA2903AA28C9C3 ntfs System Reserved
/dev/sda2 908631FD8631E3FE ntfs
/dev/sda3 2E2CC2372CC1FA3B ntfs
/dev/sda5 aa44f902-512a-461b-85e3-2bdc040d8d81 ext4
/dev/sda6 bb4e4b1e-abab-4d7e-b1c6-fac008a4ecd2 ext4
/dev/sda7 9cb10d82-c19c-493c-800a-5cea3c554d5c ext4
/dev/sda8 d07bc0fc-1f5e-4a2f-b8a0-20086d14abaa swap
/dev/sda9 343bdce5-cdaf-4790-b39c-35878edb261f ext4
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda9 / ext4 (rw,relatime,errors=remount-ro,data=ordered)
============================= sda5/grub2/grub.cfg: =============================
--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
set pager=1
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="${saved_entry}"
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
}
terminal_output console
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/01_users ###
if [ -f ${prefix}/user.cfg ]; then
source ${prefix}/user.cfg
if [ -n "${GRUB2_PASSWORD}" ]; then
set superusers="root"
export superusers
password_pbkdf2 root ${GRUB2_PASSWORD}
fi
fi
### END /etc/grub.d/01_users ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora (4.7.2-201.fc24.x86_64) 24 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.5.5-300.fc24.x86_64-advanced-71400f77-2bf5-4b3c-a34c-25b9043c286d' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' aa44f902-512a-461b-85e3-2bdc040d8d81
else
search --no-floppy --fs-uuid --set=root aa44f902-512a-461b-85e3-2bdc040d8d81
fi
linux16 /vmlinuz-4.7.2-201.fc24.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=en_GB.UTF-8
initrd16 /initramfs-4.7.2-201.fc24.x86_64.img
}
menuentry 'Fedora (4.6.7-300.fc24.x86_64) 24 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.5.5-300.fc24.x86_64-advanced-71400f77-2bf5-4b3c-a34c-25b9043c286d' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' aa44f902-512a-461b-85e3-2bdc040d8d81
else
search --no-floppy --fs-uuid --set=root aa44f902-512a-461b-85e3-2bdc040d8d81
fi
linux16 /vmlinuz-4.6.7-300.fc24.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=en_GB.UTF-8
initrd16 /initramfs-4.6.7-300.fc24.x86_64.img
}
menuentry 'Fedora (4.5.5-300.fc24.x86_64) 24 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.5.5-300.fc24.x86_64-advanced-71400f77-2bf5-4b3c-a34c-25b9043c286d' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' aa44f902-512a-461b-85e3-2bdc040d8d81
else
search --no-floppy --fs-uuid --set=root aa44f902-512a-461b-85e3-2bdc040d8d81
fi
linux16 /vmlinuz-4.5.5-300.fc24.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=en_GB.UTF-8
initrd16 /initramfs-4.5.5-300.fc24.x86_64.img
}
menuentry 'Fedora (0-rescue-9154842246fd47e3b07c67355797785d) 24 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-9154842246fd47e3b07c67355797785d-advanced-71400f77-2bf5-4b3c-a34c-25b9043c286d' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' aa44f902-512a-461b-85e3-2bdc040d8d81
else
search --no-floppy --fs-uuid --set=root aa44f902-512a-461b-85e3-2bdc040d8d81
fi
linux16 /vmlinuz-0-rescue-9154842246fd47e3b07c67355797785d root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet
initrd16 /initramfs-0-rescue-9154842246fd47e3b07c67355797785d.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/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 10 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-EEAA2903AA28C9C3' {
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 --hint='hd0,msdos1' EEAA2903AA28C9C3
else
search --no-floppy --fs-uuid --set=root EEAA2903AA28C9C3
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 ###
--------------------------------------------------------------------------------
=================== sda5: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
================= sda5: Location of files loaded by Syslinux: ==================
GiB - GB File Fragment(s)
============== sda5: Version of COM32(R) files used by Syslinux: ===============
extlinux/cat.c32 : not a COM32/COM32R module
extlinux/chain.c32 : not a COM32/COM32R module
extlinux/cmd.c32 : not a COM32/COM32R module
extlinux/cmenu.c32 : not a COM32/COM32R module
extlinux/config.c32 : not a COM32/COM32R module
extlinux/cptime.c32 : not a COM32/COM32R module
extlinux/cpu.c32 : not a COM32/COM32R module
extlinux/cpuid.c32 : not a COM32/COM32R module
extlinux/cpuidtest.c32 : not a COM32/COM32R module
extlinux/debug.c32 : not a COM32/COM32R module
extlinux/dhcp.c32 : not a COM32/COM32R module
extlinux/disk.c32 : not a COM32/COM32R module
extlinux/dmi.c32 : not a COM32/COM32R module
extlinux/dmitest.c32 : not a COM32/COM32R module
extlinux/elf.c32 : not a COM32/COM32R module
extlinux/ethersel.c32 : not a COM32/COM32R module
extlinux/gfxboot.c32 : not a COM32/COM32R module
extlinux/gpxecmd.c32 : not a COM32/COM32R module
extlinux/hdt.c32 : not a COM32/COM32R module
extlinux/hexdump.c32 : not a COM32/COM32R module
extlinux/host.c32 : not a COM32/COM32R module
extlinux/ifcpu64.c32 : not a COM32/COM32R module
extlinux/ifcpu.c32 : not a COM32/COM32R module
extlinux/ifmemdsk.c32 : not a COM32/COM32R module
extlinux/ifplop.c32 : not a COM32/COM32R module
extlinux/kbdmap.c32 : not a COM32/COM32R module
extlinux/kontron_wdt.c32 : not a COM32/COM32R module
extlinux/ldlinux.c32 : not a COM32/COM32R module
extlinux/lfs.c32 : not a COM32/COM32R module
extlinux/libcom32.c32 : not a COM32/COM32R module
extlinux/libgpl.c32 : not a COM32/COM32R module
extlinux/liblua.c32 : not a COM32/COM32R module
extlinux/libmenu.c32 : not a COM32/COM32R module
extlinux/libutil.c32 : not a COM32/COM32R module
extlinux/linux.c32 : not a COM32/COM32R module
extlinux/ls.c32 : not a COM32/COM32R module
extlinux/lua.c32 : not a COM32/COM32R module
extlinux/mboot.c32 : not a COM32/COM32R module
extlinux/meminfo.c32 : not a COM32/COM32R module
extlinux/menu.c32 : not a COM32/COM32R module
extlinux/pci.c32 : not a COM32/COM32R module
extlinux/pcitest.c32 : not a COM32/COM32R module
extlinux/pmload.c32 : not a COM32/COM32R module
extlinux/poweroff.c32 : not a COM32/COM32R module
extlinux/prdhcp.c32 : not a COM32/COM32R module
extlinux/pwd.c32 : not a COM32/COM32R module
extlinux/pxechn.c32 : not a COM32/COM32R module
extlinux/reboot.c32 : not a COM32/COM32R module
extlinux/rosh.c32 : not a COM32/COM32R module
extlinux/sanboot.c32 : not a COM32/COM32R module
extlinux/sdi.c32 : not a COM32/COM32R module
extlinux/sysdump.c32 : not a COM32/COM32R module
extlinux/syslinux.c32 : not a COM32/COM32R module
extlinux/vesa.c32 : not a COM32/COM32R module
extlinux/vesainfo.c32 : not a COM32/COM32R module
extlinux/vesamenu.c32 : not a COM32/COM32R module
extlinux/vpdtest.c32 : not a COM32/COM32R module
extlinux/whichsys.c32 : not a COM32/COM32R module
extlinux/zzjson.c32 : not a COM32/COM32R module
=========================== sda7/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='hd0,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 9cb10d82-c19c-493c-800a-5cea3c554d5c
else
search --no-floppy --fs-uuid --set=root 9cb10d82-c19c-493c-800a-5cea3c554d5c
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=en_US
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-9cb10d82-c19c-493c-800a-5cea3c554d5c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 9cb10d82-c19c-493c-800a-5cea3c554d5c
else
search --no-floppy --fs-uuid --set=root 9cb10d82-c19c-493c-800a-5cea3c554d5c
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=9cb10d82-c19c-493c-800a-5cea3c554d5c rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-9cb10d82-c19c-493c-800a-5cea3c554d5c' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-9cb10d82-c19c-493c-800a-5cea3c554d5c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 9cb10d82-c19c-493c-800a-5cea3c554d5c
else
search --no-floppy --fs-uuid --set=root 9cb10d82-c19c-493c-800a-5cea3c554d5c
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=9cb10d82-c19c-493c-800a-5cea3c554d5c rw quiet
echo 'Loading initial ramdisk ...'
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-9cb10d82-c19c-493c-800a-5cea3c554d5c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 9cb10d82-c19c-493c-800a-5cea3c554d5c
else
search --no-floppy --fs-uuid --set=root 9cb10d82-c19c-493c-800a-5cea3c554d5c
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=9cb10d82-c19c-493c-800a-5cea3c554d5c rw quiet
echo 'Loading initial ramdisk ...'
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 ###
### 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 ###
--------------------------------------------------------------------------------
=============================== sda7/etc/fstab: ================================
--------------------------------------------------------------------------------
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda7
UUID=9cb10d82-c19c-493c-800a-5cea3c554d5c / ext4 rw,relatime,data=ordered 0 1
# /dev/sda8
UUID=d07bc0fc-1f5e-4a2f-b8a0-20086d14abaa none swap defaults 0 0
UUID=bb4e4b1e-abab-4d7e-b1c6-fac008a4ecd2 /boot ext4 defaults 0 2
--------------------------------------------------------------------------------
=================== sda7: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
=========================== sda9/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 ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
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 recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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='hd0,msdos9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos9 --hint-efi=hd0,msdos9 --hint-baremetal=ahci0,msdos9 343bdce5-cdaf-4790-b39c-35878edb261f
else
search --no-floppy --fs-uuid --set=root 343bdce5-cdaf-4790-b39c-35878edb261f
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=en_GB
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
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
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Linux Mint 18 Cinnamon 64-bit' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-343bdce5-cdaf-4790-b39c-35878edb261f' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos9 --hint-efi=hd0,msdos9 --hint-baremetal=ahci0,msdos9 343bdce5-cdaf-4790-b39c-35878edb261f
else
search --no-floppy --fs-uuid --set=root 343bdce5-cdaf-4790-b39c-35878edb261f
fi
linux /boot/vmlinuz-4.4.0-21-generic root=UUID=343bdce5-cdaf-4790-b39c-35878edb261f ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.4.0-21-generic
}
submenu 'Advanced options for Linux Mint 18 Cinnamon 64-bit' $menuentry_id_option 'gnulinux-advanced-343bdce5-cdaf-4790-b39c-35878edb261f' {
menuentry 'Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-21-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-21-generic-advanced-343bdce5-cdaf-4790-b39c-35878edb261f' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos9 --hint-efi=hd0,msdos9 --hint-baremetal=ahci0,msdos9 343bdce5-cdaf-4790-b39c-35878edb261f
else
search --no-floppy --fs-uuid --set=root 343bdce5-cdaf-4790-b39c-35878edb261f
fi
echo 'Loading Linux 4.4.0-21-generic ...'
linux /boot/vmlinuz-4.4.0-21-generic root=UUID=343bdce5-cdaf-4790-b39c-35878edb261f ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-21-generic
}
menuentry 'Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-21-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-21-generic-init-upstart-343bdce5-cdaf-4790-b39c-35878edb261f' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos9 --hint-efi=hd0,msdos9 --hint-baremetal=ahci0,msdos9 343bdce5-cdaf-4790-b39c-35878edb261f
else
search --no-floppy --fs-uuid --set=root 343bdce5-cdaf-4790-b39c-35878edb261f
fi
echo 'Loading Linux 4.4.0-21-generic ...'
linux /boot/vmlinuz-4.4.0-21-generic root=UUID=343bdce5-cdaf-4790-b39c-35878edb261f ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-21-generic
}
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9cb10d82-c19c-493c-800a-5cea3c554d5c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 9cb10d82-c19c-493c-800a-5cea3c554d5c
else
search --no-floppy --fs-uuid --set=root 9cb10d82-c19c-493c-800a-5cea3c554d5c
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=9cb10d82-c19c-493c-800a-5cea3c554d5c rw quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
menuentry 'Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-21-generic-recovery-343bdce5-cdaf-4790-b39c-35878edb261f' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos9 --hint-efi=hd0,msdos9 --hint-baremetal=ahci0,msdos9 343bdce5-cdaf-4790-b39c-35878edb261f
else
search --no-floppy --fs-uuid --set=root 343bdce5-cdaf-4790-b39c-35878edb261f
fi
echo 'Loading Linux 4.4.0-21-generic ...'
linux /boot/vmlinuz-4.4.0-21-generic root=UUID=343bdce5-cdaf-4790-b39c-35878edb261f ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-21-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos9 --hint-efi=hd0,msdos9 --hint-baremetal=ahci0,msdos9 343bdce5-cdaf-4790-b39c-35878edb261f
else
search --no-floppy --fs-uuid --set=root 343bdce5-cdaf-4790-b39c-35878edb261f
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos9 --hint-efi=hd0,msdos9 --hint-baremetal=ahci0,msdos9 343bdce5-cdaf-4790-b39c-35878edb261f
else
search --no-floppy --fs-uuid --set=root 343bdce5-cdaf-4790-b39c-35878edb261f
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 10 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-EEAA2903AA28C9C3' {
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 EEAA2903AA28C9C3
else
search --no-floppy --fs-uuid --set=root EEAA2903AA28C9C3
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry 'Windows 10 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-908631FD8631E3FE' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 908631FD8631E3FE
else
search --no-floppy --fs-uuid --set=root 908631FD8631E3FE
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### 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 ###
--------------------------------------------------------------------------------
=============================== sda9/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda9 during installation
UUID=343bdce5-cdaf-4790-b39c-35878edb261f / ext4 errors=remount-ro 0 1
# swap was on /dev/sda8 during installation
UUID=d07bc0fc-1f5e-4a2f-b8a0-20086d14abaa none swap sw 0 0
--------------------------------------------------------------------------------
=================== sda9: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown BootLoader on sda4
00000000 40 07 03 6f 52 74 00 08 40 07 03 65 6f 66 03 75 |@..oRt..@..eof.u|
00000010 64 66 00 12 50 70 00 08 00 02 00 04 00 00 05 56 |df..Pp.........V|
00000020 49 52 65 66 00 10 78 70 00 08 00 02 00 04 00 00 |IRef..xp........|
00000030 03 64 66 64 00 10 50 70 00 08 00 02 00 04 00 00 |.dfd..Pp........|
00000040 03 74 78 64 00 10 50 70 00 08 00 02 00 04 00 00 |.txd..Pp........|
00000050 03 6f 6c 64 00 10 50 70 00 08 00 02 00 04 00 00 |.old..Pp........|
00000060 03 65 78 74 00 0a 00 63 00 00 00 20 00 01 00 68 |.ext...c... ...h|
00000070 00 50 00 06 00 22 40 50 00 03 00 08 40 07 03 66 |.P..."@P....@..f|
00000080 6c 67 00 08 40 07 03 6f 52 74 00 08 40 07 03 65 |lg..@..oRt..@..e|
00000090 6f 66 03 75 64 66 00 10 50 33 ff ff ff ff 07 50 |of.udf..P3.....P|
000000a0 69 63 74 75 72 65 00 0c 78 33 ff ff ff ff 03 64 |icture..x3.....d|
000000b0 66 64 00 0c 50 33 ff ff ff ff 03 74 78 64 00 0c |fd..P3.....txd..|
000000c0 50 33 ff ff ff ff 03 6f 6c 64 00 0c 50 33 ff ff |P3.....old..P3..|
000000d0 ff ff 03 65 78 74 00 0a 00 63 00 00 00 2c 00 01 |...ext...c...,..|
000000e0 00 54 00 50 00 06 00 22 40 50 00 03 00 08 40 07 |.T.P..."@P....@.|
000000f0 03 66 6c 67 00 08 40 07 03 6f 52 74 00 08 40 07 |.flg..@..oRt..@.|
00000100 03 65 6f 66 03 75 64 66 00 0c 50 21 07 53 75 63 |.eof.udf..P!.Suc|
00000110 63 65 73 73 00 08 78 21 03 64 66 64 00 08 50 21 |cess..x!.dfd..P!|
00000120 03 74 78 64 00 08 50 21 03 6f 6c 64 00 08 50 21 |.txd..P!.old..P!|
00000130 03 65 78 74 00 0a 00 63 00 00 00 23 00 01 00 7c |.ext...c...#...||
00000140 00 50 00 06 00 22 40 50 00 03 00 08 40 07 03 66 |.P..."@P....@..f|
00000150 6c 67 00 08 40 07 03 6f 52 74 00 08 40 07 03 65 |lg..@..oRt..@..e|
00000160 6f 66 03 75 64 66 00 14 50 70 00 08 40 11 00 04 |of.udf..Pp..@...|
00000170 00 00 07 4e 6f 64 65 52 65 66 00 10 78 70 00 08 |...NodeRef..xp..|
00000180 40 11 00 04 00 00 03 64 66 64 00 10 50 70 00 08 |@......dfd..Pp..|
00000190 40 11 00 04 00 00 03 74 78 64 00 10 50 70 00 08 |@......txd..Pp..|
000001a0 40 11 00 04 00 00 03 6f 6c 64 00 10 50 70 00 08 |@......old..Pp..|
000001b0 40 11 00 04 00 00 03 65 78 74 00 0a 00 63 00 fe |@......ext...c..|
000001c0 ff ff 83 fe ff ff 02 88 27 08 00 a0 0f 00 00 fe |........'.......|
000001d0 ff ff 05 fe ff ff 02 28 37 08 00 48 0d 03 00 00 |.......(7..H....|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
=============================== StdErr Messages: ===============================
cat: /tmp/BootInfo-whAeQC52/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-whAeQC52/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-whAeQC52/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-whAeQC52/Tmp_Log: No such file or directory
Last edited by Kromes (2016-09-09 21:57:39)
Offline
Sorry, didn't know if i could make my post scroll.
Offline
I should add that i once had fedora, i formatted the fedora partition after installing mint alongside it. Then i wiped fedora and installed arch, deleting mint by accident. Boot stopped so i reinstalled linux mint and cannot find arch anymore.
Offline
Put your output in code tags to make it scrollable.
Offline
Sorry, didn't know if i could make my post scroll.
Please use this opportunity to edit your post and add BBCode code tags around your program output and file output.
That link is also available under every message post box on the forums.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Oh sorry, I wasn't aware that the code tags made it scrollable, thanks.
Offline
Okey ...
Run Linux Mint and first install its Grub into MBR od /dev/sda HDD:
grub-install --no-floppy --recheck /dev/sda
Next edit /etc/grub.d/40_custom file and add exactly that content:
menuentry "Arch Linux" {
insmod ext2
search --set=root --fs-uuid 9cb10d82-c19c-493c-800a-5cea3c554d5c --hint hd0,msdos7
configfile /boot/grub/grub.cfg
}
After it run:
update-grub
Reboot your computer, try to start Arch Linux ...
Last edited by Fixxer (2016-09-09 22:34:45)
Offline
Amazing, it worked! Thanks to everyone who helped
I know I asked more questions that necessary but out of fear I wanted to be certain. You guys have helped tremendously, thank you.
Offline
Pages: 1