Quote:
Originally Posted by Richard Cranium
(Post 5614488)
What happens when you boot Void linux and re-run grub-mkconfig? (Depending upon how Void linux is setup, that may overwrite your grub config file or simply print it to stdout.)
grub should be able to find your slackware partitions and add them to the mix.
The machine I'm on at the moment uses Slackware's grub2 to triple boot into Slackware, Ubuntu, and Windows 10.
|
well it is this speradic thing that has been going on, I think it has to do more with windows 10 perhaps, but I cannot pin point the actual problem, what is causing grub2 from finding my two other OS's and sometimes it does.
the only thing i notice is that when Void upgraded the kernal it then began seeing Windows10 again, then I decided to install Void on my ssd, and keep home on the other hdd, as it was already split. then it lost everything again. Another Kernel update and when it ran update-grub in post install, it seen them again, kernel update again, and I crossed my fingers, and it still seen both OS's the old void install and Windows10, then again another kernal update and I lost Windows10 and the old Void.
seeings how Slackware went to 14.2 I got the itches to try it again just becuase I missed it, but not all of the typing to install apps, and thought lilo should fix this problem, and I get to see what improvments to Slack were, which is they got a lot more already installed now enough that I do not have to get typers cramps installing what I want now.
anyways lilo didn't solved this problem.
the same errors I get when running
update-grub. Mounted the windows partition
os-probe gives me that same error. l
ogger: cannot connect: No such file or directory
Here are the complete results of
grub-mkconfig in Void. Towards the end you'll see where it starts throwing errors.
Now I am going to bounce out and install Slackware again.
Code:
userx@voided.org & ~ >> $sudo grub-mkconfig
Generating grub configuration file ...
#
# 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
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 4ca47bd8-7c3d-4924-904f-32486af42390
else
search --no-floppy --fs-uuid --set=root 4ca47bd8-7c3d-4924-904f-32486af42390
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_output gfxterm
Found background: /usr/share/void-artwork/splash.png
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 4ca47bd8-7c3d-4924-904f-32486af42390
else
search --no-floppy --fs-uuid --set=root 4ca47bd8-7c3d-4924-904f-32486af42390
fi
insmod png
background_image -m stretch /usr/share/void-artwork/splash.png
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 ###
Found linux image: /boot/vmlinuz-4.7.6_1
Found initrd image: /boot/initramfs-4.7.6_1.img
menuentry 'Void GNU/Linux' --class void --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-4ca47bd8-7c3d-4924-904f-32486af42390' {
load_video
set gfxpayload=keep
insmod gzio
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 4ca47bd8-7c3d-4924-904f-32486af42390
else
search --no-floppy --fs-uuid --set=root 4ca47bd8-7c3d-4924-904f-32486af42390
fi
echo 'Loading Linux 4.7.6_1 ...'
linux /boot/vmlinuz-4.7.6_1 root=UUID=4ca47bd8-7c3d-4924-904f-32486af42390 ro loglevel=4
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-4.7.6_1.img
}
submenu 'Advanced options for Void GNU/Linux' $menuentry_id_option 'gnulinux-advanced-4ca47bd8-7c3d-4924-904f-32486af42390' {
menuentry 'Void GNU/Linux, with Linux 4.7.6_1' --class void --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.7.6_1-advanced-4ca47bd8-7c3d-4924-904f-32486af42390' {
load_video
set gfxpayload=keep
insmod gzio
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 4ca47bd8-7c3d-4924-904f-32486af42390
else
search --no-floppy --fs-uuid --set=root 4ca47bd8-7c3d-4924-904f-32486af42390
fi
echo 'Loading Linux 4.7.6_1 ...'
linux /boot/vmlinuz-4.7.6_1 root=UUID=4ca47bd8-7c3d-4924-904f-32486af42390 ro loglevel=4
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-4.7.6_1.img
}
menuentry 'Void GNU/Linux, with Linux 4.7.6_1 (recovery mode)' --class void --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.7.6_1-recovery-4ca47bd8-7c3d-4924-904f-32486af42390' {
load_video
set gfxpayload=keep
insmod gzio
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 4ca47bd8-7c3d-4924-904f-32486af42390
else
search --no-floppy --fs-uuid --set=root 4ca47bd8-7c3d-4924-904f-32486af42390
fi
echo 'Loading Linux 4.7.6_1 ...'
linux /boot/vmlinuz-4.7.6_1 root=UUID=4ca47bd8-7c3d-4924-904f-32486af42390 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-4.7.6_1.img
}
Found linux image: /boot/vmlinuz-4.0.5_2
Found initrd image: /boot/initramfs-4.0.5_2.img
menuentry 'Void GNU/Linux, with Linux 4.0.5_2' --class void --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.5_2-advanced-4ca47bd8-7c3d-4924-904f-32486af42390' {
load_video
set gfxpayload=keep
insmod gzio
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 4ca47bd8-7c3d-4924-904f-32486af42390
else
search --no-floppy --fs-uuid --set=root 4ca47bd8-7c3d-4924-904f-32486af42390
fi
echo 'Loading Linux 4.0.5_2 ...'
linux /boot/vmlinuz-4.0.5_2 root=UUID=4ca47bd8-7c3d-4924-904f-32486af42390 ro loglevel=4
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-4.0.5_2.img
}
menuentry 'Void GNU/Linux, with Linux 4.0.5_2 (recovery mode)' --class void --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.5_2-recovery-4ca47bd8-7c3d-4924-904f-32486af42390' {
load_video
set gfxpayload=keep
insmod gzio
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 4ca47bd8-7c3d-4924-904f-32486af42390
else
search --no-floppy --fs-uuid --set=root 4ca47bd8-7c3d-4924-904f-32486af42390
fi
echo 'Loading Linux 4.0.5_2 ...'
linux /boot/vmlinuz-4.0.5_2 root=UUID=4ca47bd8-7c3d-4924-904f-32486af42390 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-4.0.5_2.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 ###
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
logger: cannot connect: No such file or directory
### 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 ###
done
well I didn't hop out yet, I decided to look at /etc/grub.d/30_os-prober it doesn't state windows 10 so I'm going to mod it to windows 10 and run it again and see what I see.
Code:
EOF
fi
case ${LONGNAME} in
Windows\ Vista*|Windows\ 7*|Windows\ Server\ 2008*)
;;
*)
cat << EOF
drivemap -s (hd0) \${root}
EOF
;;
esac
cat <<EOF
chainloader +1
}
EOF
I modded that file to this and still same error
Code:
Windows\ Vista*|Windows\ 7*|Windows\ 10*|Windows\ Server\ 2008*)