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.
|
|
08-10-2017, 12:59 PM
|
#1
|
LQ Newbie
Registered: Aug 2017
Posts: 5
Rep:
|
Parrot os Grub problem
I installed Parrot os on a laptop. No other os is on the laptop. When I boot I get
GNU Grub version 2.02
minimal Bash-like line editing etc...
and a grub prompt
I can type exit and get the boot menu.
How can I make grub go to the boot menu without having to type exit?
|
|
|
08-10-2017, 01:19 PM
|
#2
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by kat35601
I installed Parrot os on a laptop. No other os is on the laptop. When I boot I get
GNU Grub version 2.02
minimal Bash-like line editing etc...
and a grub prompt
I can type exit and get the boot menu.
How can I make grub go to the boot menu without having to type exit?
|
Hi kat35601,
Welcome to LQ.
Several members here are more expert in matters Grub-related than I - they may chime in with better suggestions. However, it sounds like your Grub configuration needs adjusting. Did you try updating it once back in your system (update-grub) ?
|
|
|
08-10-2017, 01:34 PM
|
#3
|
LQ Newbie
Registered: Aug 2017
Posts: 5
Original Poster
Rep:
|
Yes I ran grub-update it did not help.
Thanks
|
|
|
08-10-2017, 01:38 PM
|
#4
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by kat35601
Yes I ran grub-update it did not help.
Thanks
|
OK - perhaps posting the content of your grub.cfg file (please use code tags) would help our members zero in more easily on what is causing the behaviour you describe.
|
|
|
08-10-2017, 01:49 PM
|
#5
|
LQ Newbie
Registered: Aug 2017
Posts: 5
Original Poster
Rep:
|
My Grub config
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="noautomount"
|
|
|
08-10-2017, 02:10 PM
|
#6
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,851
|
What you posted in your last post is not what was asked for, Post the grub.cfg file contents from /boot/grub/grub.cfg
|
|
|
08-10-2017, 02:51 PM
|
#7
|
LQ Newbie
Registered: Aug 2017
Posts: 5
Original Poster
Rep:
|
#
# 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 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,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' a2177bcc-e3ac-4547-a25b-2f98f18b582a
else
search --no-floppy --fs-uuid --set=root a2177bcc-e3ac-4547-a25b-2f98f18b582a
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
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 ###
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' a2177bcc-e3ac-4547-a25b-2f98f18b582a
else
search --no-floppy --fs-uuid --set=root a2177bcc-e3ac-4547-a25b-2f98f18b582a
fi
insmod png
if background_image /usr/share/desktop-base/parrot-theme/grub/grub-4x3.png; then
true
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Parrot GNU/Linux' --class parrot --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a2177bcc-e3ac-4547-a25b-2f98f18b582a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' a2177bcc-e3ac-4547-a25b-2f98f18b582a
else
search --no-floppy --fs-uuid --set=root a2177bcc-e3ac-4547-a25b-2f98f18b582a
fi
echo 'Loading Linux 4.11.0-parrot6-amd64 ...'
linux /boot/vmlinuz-4.11.0-parrot6-amd64 root=UUID=a2177bcc-e3ac-4547-a25b-2f98f18b582a ro noautomount quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.11.0-parrot6-amd64
}
submenu 'Advanced options for Parrot GNU/Linux' $menuentry_id_option 'gnulinux-advanced-a2177bcc-e3ac-4547-a25b-2f98f18b582a' {
menuentry 'Parrot GNU/Linux, with Linux 4.11.0-parrot6-amd64' --class parrot --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.11.0-parrot6-amd64-advanced-a2177bcc-e3ac-4547-a25b-2f98f18b582a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' a2177bcc-e3ac-4547-a25b-2f98f18b582a
else
search --no-floppy --fs-uuid --set=root a2177bcc-e3ac-4547-a25b-2f98f18b582a
fi
echo 'Loading Linux 4.11.0-parrot6-amd64 ...'
linux /boot/vmlinuz-4.11.0-parrot6-amd64 root=UUID=a2177bcc-e3ac-4547-a25b-2f98f18b582a ro noautomount quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.11.0-parrot6-amd64
}
menuentry 'Parrot GNU/Linux, with Linux 4.11.0-parrot6-amd64 (recovery mode)' --class parrot --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.11.0-parrot6-amd64-recovery-a2177bcc-e3ac-4547-a25b-2f98f18b582a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' a2177bcc-e3ac-4547-a25b-2f98f18b582a
else
search --no-floppy --fs-uuid --set=root a2177bcc-e3ac-4547-a25b-2f98f18b582a
fi
echo 'Loading Linux 4.11.0-parrot6-amd64 ...'
linux /boot/vmlinuz-4.11.0-parrot6-amd64 root=UUID=a2177bcc-e3ac-4547-a25b-2f98f18b582a ro single noautomount
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.11.0-parrot6-amd64
}
}
### 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/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### 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 ###
|
|
|
08-11-2017, 07:05 AM
|
#8
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Hey kat35601,
Thanks for posting your file.
I took a look at your grub.cfg and I can't immediately see what is causing your problem. As I mentioned in my first post, however, many members here are more knowledgeable about grub than I am and will surely contribute suggestions.
|
|
|
All times are GMT -5. The time now is 02:31 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
|
|