Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
05-27-2021, 07:54 AM
#46
Member
Registered: Mar 2020
Distribution: antix
Posts: 100
Original Poster
Rep:
Quote:
Originally Posted by
colorpurple21859
Post /etc/default/grub
What happens with
grub> configfile (hd0,5)/boot/grub/grub.cfg
It gave me a blank/cleaned screen with only the grub prompt: grub>
Rebooting took me back to grub prompt
05-27-2021, 08:14 AM
#47
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346
Is that from within chroot?
05-27-2021, 09:02 AM
#48
Member
Registered: Mar 2020
Distribution: antix
Posts: 100
Original Poster
Rep:
Quote:
Originally Posted by
colorpurple21859
Is that from within chroot?
Yes, that cat /etc/default/grub was in chroot
05-27-2021, 09:27 AM
#49
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346
What happens when you enter this
Code:
linux (hd0,5)/boot/vmlinuz-linux-libre-lts root=/dev/sda5
initrd (hd0,5)/boot/initramfs-linux-libre-lts.img
boot
and/or this at the grub prompt
Code:
search -s root -f /EFI/Microsoft/Boot/BCD
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
05-27-2021, 09:50 AM
#50
Member
Registered: Mar 2020
Distribution: antix
Posts: 100
Original Poster
Rep:
Quote:
Originally Posted by
colorpurple21859
What happens when you enter this
Code:
linux (hd0,5)/boot/vmlinuz-linux-libre-lts root=/dev/sda5
initrd (hd0,5)/boot/initramfs-linux-libre-lts.img
boot
Couldn't do the first line, linux (hd0,5)/boot/vmlinuz-linux-libre-lts root=/dev/sda5 gave me
error: file '/boot/vmlinuz-linux-libre-lts' not found
and/or this at the grub prompt
Code:
search -s root -f /EFI/Microsoft/Boot/BCD
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
[/QUOTE]
search -s root -f /EFI/Microsoft/Boot/BCD gave me:
error: no such device: /EFI/Microsoft/Boot/BCD
05-27-2021, 10:26 AM
#51
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346
If the usb is plugged in it may
Code:
linux (hd1,5)/boot/vmlinuz-linux-libre-lts root=/dev/sda5
initrd (hd1,5)/boot/initramfs-linux-libre-lts.img
boot
Code:
set root=(hd0,1)
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
05-27-2021, 10:29 AM
#52
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346
what is in /etc/grub.d?
05-27-2021, 11:14 AM
#53
Member
Registered: Mar 2020
Distribution: antix
Posts: 100
Original Poster
Rep:
Quote:
Originally Posted by
colorpurple21859
what is in /etc/grub.d?
root@parabolaiso ~ # arch-chroot /mnt
[root@parabolaiso /]# ls /etc/grub.d
00_header 10_linux 20_linux_xen 30_os-prober 40_custom 41_custom README
[root@parabolaiso /]#
05-27-2021, 02:23 PM
#54
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346
edit /etc/grub.d/40_custom and add this at the bottom of what is already there, rerun grub-mkconfig
Code:
menuentry 'parabola'{
insmod load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set=root 522c8b3d-2472-441b-8961-2809edab6ff1
linux (hd1,5)/boot/vmlinuz-linux-libre-lts root=UUID=522c8b3d-2472-441b-8961-2809edab6ff1 loglevel=3
initrd (hd1,5)/boot/initramfs-linux-libre-lts.img
}
menuentry 'windows' --class=windows{
set root=(hd0,1)
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
Last edited by colorpurple21859; 05-27-2021 at 02:26 PM .
05-27-2021, 02:51 PM
#55
Member
Registered: Mar 2020
Distribution: antix
Posts: 100
Original Poster
Rep:
Quote:
Originally Posted by
colorpurple21859
edit /etc/grub.d/40_custom and add this at the bottom of what is already there, rerun grub-mkconfig
Code:
menuentry 'parabola'{
insmod load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set=root 522c8b3d-2472-441b-8961-2809edab6ff1
linux (hd1,5)/boot/vmlinuz-linux-libre-lts root=UUID=522c8b3d-2472-441b-8961-2809edab6ff1 loglevel=3
initrd (hd1,5)/boot/initramfs-linux-libre-lts.img
}
menuentry 'windows' --class=windows{
set root=(hd0,1)
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
Done, shall I reboot?
05-27-2021, 02:53 PM
#56
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346
yes, does that give you a grub menu?
Last edited by colorpurple21859; 05-27-2021 at 02:54 PM .
05-27-2021, 02:58 PM
#57
Member
Registered: Mar 2020
Distribution: antix
Posts: 100
Original Poster
Rep:
Yes, I tried choosing parabola and gave me the errors
file: '/boot/grub/x86_64-efi/load_video.mod' not found
file: '/boot/vmlinuz-linux-libre-lts' not found
you need to load the kernel first
As for windows error:
disk 'hd0,1' not found
05-27-2021, 03:03 PM
#58
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346
at the grub menu press e for edit change hd0 to hd1
Last edited by colorpurple21859; 05-27-2021 at 03:04 PM .
05-27-2021, 03:30 PM
#59
Member
Registered: Mar 2020
Distribution: antix
Posts: 100
Original Poster
Rep:
It gave me the same errors for linux and windows
05-27-2021, 03:34 PM
#60
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346
All times are GMT -5. The time now is 09:43 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News