just verifyingp.H wrote:This is EFI boot, not BIOS boot. You must chainload an EFI executable file, not a boot sector.maximus1978 wrote:set root=hd0
chainloader +1
bootCode: Select all
chainloader /EFI/debian/grubx64.efi boot
Is that all ? Many parts are missing. Did you run the command as root ?justinmk85 wrote:boot info script:
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Debian 9 grub boots to command line but works SOLVED
-
- Posts: 93
- Joined: 2015-03-19 12:49
Re: Debian 9 grub boots to command line but works
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Debian 9 grub boots to command line but works
Yes, bootinfoscript is supposed to include the output of efibootmgr -v.Head_on_a_Stick wrote:I have no idea if that silly wall-of-output "boot info script" includes such a detail
Indeed this is a possible cause for GRUB spawning the normal prompt (NOT the rescue prompt) instead of displaying the menu. However /boot/grub seems to be on the EFI partition itself (unlike in Debian), so I wonder why grub.cfg is not found. If the whole /boot/grub was not found then GRUB would spawn the rescue prompt.maximus1978 wrote:grub is not finding the /boot/grub/grub.cfg
Yes it is. See the value of $cmdpath in the output of "set".maximus1978 wrote:root=hd0,gpt1? Is this the EFI partition?
It will probably, but what's the use ? Just typing "exit" to quit the first GRUB from Ubuntu/Mint causes the UEFI firmware to load the next GRUB from Debian.maximus1978 wrote:try(assuming that this is the Debian partition)Code: Select all
set root=hd0,gpt2
Does this bring up your menu?Code: Select all
configfile /boot/grub/grub.cfg
Verify what ?maximus1978 wrote:just verifying
No need to verify that GRUB is in EFI mode. We already know from the value of $platform in the output of set.
If you wanted to verify if the MBR contained a GRUB BIOS boot loader, you cannot chainload it from GRUB EFI.
-
- Posts: 23
- Joined: 2017-11-18 18:40
Re: Debian 9 grub boots to command line but works
I did run bootinfoscript as root.
I will post the ls / of each later today.
I will try the set root and config file also.
I will post the ls / of each later today.
I will try the set root and config file also.
-
- Posts: 23
- Joined: 2017-11-18 18:40
Re: Debian 9 grub boots to command line but works
I don't know what these partitions are (see boot info script output).
/dev/mmcblk1
/dev/mmcblk1p1 0101-07DC vfat NO_NAME
Edit... these are probably an sd card I have inserted never mind
/dev/mmcblk1
/dev/mmcblk1p1 0101-07DC vfat NO_NAME
Edit... these are probably an sd card I have inserted never mind
-
- Posts: 23
- Joined: 2017-11-18 18:40
Re: Debian 9 grub boots to command line but works
maximus1978 wrote:please try this...justinmk85 wrote:Thanks for replying. Below is what I got:
ls
(hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
set
image is at this link:
https://imgur.com/j6RsaQV
set root=hd0,gpt1
ls /
post result please
set root=hd0,gpt2
ls /
post result please
set root=hd0,gpt3
ls /
post result please
Result is here https://imgur.com/a/2cjnB
-
- Posts: 23
- Joined: 2017-11-18 18:40
Re: Debian 9 grub boots to command line but works
Head_on_a_Stick wrote:The output ofwould probably tell us most of what we need to know, I have no idea if that silly wall-of-output "boot info script" includes such a detail but I would prefer to not have to wade through that...Code: Select all
# efibootmgr -v
root@debian:/home/justin# efibootmgr -v
BootCurrent: 0000
Timeout: 2 seconds
BootOrder: 0000,0001,0002,2001
Boot0000* debian HD(1,GPT,75974d51-c29f-4c59-b617-129a3385fc10,0x800,0x100000)/File(\EFI\DEBIAN\GRUBX64.EFI)
Boot0001* \EFI\Ubuntu\grubx64.efi HD(1,GPT,75974d51-c29f-4c59-b617-129a3385fc10,0x800,0x100000)/File(\EFI\UBUNTU\GRUBX64.EFI)
Boot2001* EFI USB Device RC
root@debian:/home/justin#
-
- Posts: 23
- Joined: 2017-11-18 18:40
Re: Debian 9 grub boots to command line but works
set root=hd0,gpt2 and configfile /boot/grub/grub.cfg did bring up the main grub menu for debian.maximus1978 wrote: root=hd0,gpt1
? Is this the EFI partition?
try
set root=hd0,gpt2
(assuming that this is the Debian partition)
configfile /boot/grub/grub.cfg
Does this bring up your menu?
It would help if you post the "ls /" commands.
-
- Posts: 23
- Joined: 2017-11-18 18:40
Re: Debian 9 grub boots to command line but works
this chainloader did bring up the grub menu https://imgur.com/a/jTNTGp.H wrote:maximus1978 wrote: This is EFI boot, not BIOS boot. You must chainload an EFI executable file, not a boot sector.Code: Select all
chainloader /EFI/debian/grubx64.efi boot
-
- Posts: 93
- Joined: 2015-03-19 12:49
Re: Debian 9 grub boots to command line but works
I think the issue is with prefix and root.justinmk85 wrote:set root=hd0,gpt2 and configfile /boot/grub/grub.cfg did bring up the main grub menu for debian.maximus1978 wrote: root=hd0,gpt1
? Is this the EFI partition?
try
set root=hd0,gpt2
(assuming that this is the Debian partition)
configfile /boot/grub/grub.cfg
Does this bring up your menu?
It would help if you post the "ls /" commands.
Please try....
set prefix=(hd0,gpt2)/boot/grub
set root=hd0,gpt2
press escape key
What happens?
Does it bring up the menu?
-
- Posts: 23
- Joined: 2017-11-18 18:40
Re: Debian 9 grub boots to command line but works
It didn't bring up the menu after the esc key it stayed on the command line pagemaximus1978 wrote:I think the issue is with prefix and root.justinmk85 wrote:set root=hd0,gpt2 and configfile /boot/grub/grub.cfg did bring up the main grub menu for debian.maximus1978 wrote: root=hd0,gpt1
? Is this the EFI partition?
try
set root=hd0,gpt2
(assuming that this is the Debian partition)
configfile /boot/grub/grub.cfg
Does this bring up your menu?
It would help if you post the "ls /" commands.
Please try....
set prefix=(hd0,gpt2)/boot/grub
set root=hd0,gpt2
press escape key
What happens?
Does it bring up the menu?
https://i.imgur.com/od1QQo9.jpg
-
- Posts: 93
- Joined: 2015-03-19 12:49
Re: Debian 9 grub boots to command line but works
The prefix variable is defaulting to...
(hd0,gpt1)/grub
hd0,gpt1 is the efi partition
There is no directory grub in that efi partition?
please try in this order
set root=hd0,gpt2
save_env root
set prefix=(hd0,gpt2)/boot/grub
save_env prefix
Please reboot and let me know the result.
If the command prompt comes back up, please type "set" and post the results.
(hd0,gpt1)/grub
hd0,gpt1 is the efi partition
There is no directory grub in that efi partition?
please try in this order
set root=hd0,gpt2
save_env root
set prefix=(hd0,gpt2)/boot/grub
save_env prefix
Please reboot and let me know the result.
If the command prompt comes back up, please type "set" and post the results.
Last edited by maximus1978 on 2017-11-21 15:01, edited 1 time in total.
-
- Posts: 93
- Joined: 2015-03-19 12:49
Re: Debian 9 grub boots to command line but works
Do these exact steps again to bring up the menu.justinmk85 wrote:set root=hd0,gpt2 and configfile /boot/grub/grub.cfg did bring up the main grub menu for debian.maximus1978 wrote: root=hd0,gpt1
? Is this the EFI partition?
try
set root=hd0,gpt2
(assuming that this is the Debian partition)
configfile /boot/grub/grub.cfg
Does this bring up your menu?
It would help if you post the "ls /" commands.
Then type c to go back to the command prompt.
type "set"
Please post the results of the set command.
-
- Posts: 23
- Joined: 2017-11-18 18:40
Re: Debian 9 grub boots to command line but works
https://imgur.com/gallery/08eKgmaximus1978 wrote:Do these exact steps again to bring up the menu.justinmk85 wrote:set root=hd0,gpt2 and configfile /boot/grub/grub.cfg did bring up the main grub menu for debian.maximus1978 wrote: root=hd0,gpt1
? Is this the EFI partition?
try
set root=hd0,gpt2
(assuming that this is the Debian partition)
configfile /boot/grub/grub.cfg
Does this bring up your menu?
It would help if you post the "ls /" commands.
Then type c to go back to the command prompt.
type "set"
Please post the results of the set command.
-
- Posts: 23
- Joined: 2017-11-18 18:40
Re: Debian 9 grub boots to command line but works
Command line did come back upmaximus1978 wrote:The prefix variable is defaulting to...
(hd0,gpt1)/grub
hd0,gpt1 is the efi partition
There is no directory grub in that efi partition?
please try in this order
set root=hd0,gpt2
save_env root
set prefix=(hd0,gpt2)/boot/grub
save_env prefix
Please reboot and let me know the result.
If the command prompt comes back up, please type "set" and post the results.
https://imgur.com/gallery/XHHZH
https://imgur.com/gallery/Lva4Q
-
- Posts: 93
- Joined: 2015-03-19 12:49
Re: Debian 9 grub boots to command line but works
Please try in this order.justinmk85 wrote:Command line did come back upmaximus1978 wrote:The prefix variable is defaulting to...
(hd0,gpt1)/grub
hd0,gpt1 is the efi partition
There is no directory grub in that efi partition?
please try in this order
set root=hd0,gpt2
save_env root
set prefix=(hd0,gpt2)/boot/grub
save_env prefix
Please reboot and let me know the result.
If the command prompt comes back up, please type "set" and post the results.
https://imgur.com/gallery/XHHZH
https://imgur.com/gallery/Lva4Q
set root=hd0,gpt2
set prefix=(hd0,gpt2)/boot/grub
save_env root
save_env prefix
Please reboot
Let me know what happens.
if command prompt comes back, type set
post the results please
-
- Posts: 23
- Joined: 2017-11-18 18:40
Re: Debian 9 grub boots to command line but works
No errors but went to command line after rebootmaximus1978 wrote:Please try in this order.justinmk85 wrote:Command line did come back upmaximus1978 wrote:The prefix variable is defaulting to...
(hd0,gpt1)/grub
hd0,gpt1 is the efi partition
There is no directory grub in that efi partition?
please try in this order
set root=hd0,gpt2
save_env root
set prefix=(hd0,gpt2)/boot/grub
save_env prefix
Please reboot and let me know the result.
If the command prompt comes back up, please type "set" and post the results.
https://imgur.com/gallery/XHHZH
https://imgur.com/gallery/Lva4Q
set root=hd0,gpt2
set prefix=(hd0,gpt2)/boot/grub
save_env root
save_env prefix
Please reboot
Let me know what happens.
if command prompt comes back, type set
post the results please
Set https://imgur.com/gallery/v9udb
-
- Posts: 93
- Joined: 2015-03-19 12:49
Re: Debian 9 grub boots to command line but works
Please boot into Debian system.
Post the output of...
Post the output of......
Is the main hard drive "/dev/sda"?
If it is, then do this next step.
if this is the result...("EFI boot on HDD")
Please reboot.
Let me know the result.
Post the output of...
Code: Select all
cat /etc/fstab
Code: Select all
fdisk -l
If it is, then do this next step.
Code: Select all
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
Code: Select all
grub-install /dev/sda
update-grub
Let me know the result.
-
- Posts: 23
- Joined: 2017-11-18 18:40
Re: Debian 9 grub boots to command line but works
root@debian:/home/justin# cat /etc/fstabmaximus1978 wrote:Please boot into Debian system.
Post the output of...
Post the output of......Code: Select all
cat /etc/fstab
Code: Select all
fdisk -l
# /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/mmcblk0p2 during installation
UUID=8e77bcd0-bb33-4549-a329-5abfed7e0a8c / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/mmcblk0p1 during installation
UUID=6E89-3EA0 /boot/efi vfat umask=0077 0 1
# swap was on /dev/mmcblk0p3 during installation
UUID=cc96a754-5db9-4a3d-8bf6-62512b7e5f03 none swap sw 0 0
--------------------------
root@debian:/home/justin# fdisk -l
Disk /dev/mmcblk0: 29.1 GiB, 31268536320 bytes, 61071360 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: gpt
Disk identifier: A47A49D4-CC6A-4DD8-A859-2ABEB9825947
Device Start End Sectors Size Type
/dev/mmcblk0p1 2048 1050623 1048576 512M EFI System
/dev/mmcblk0p2 1050624 57120767 56070144 26.8G Linux filesystem
/dev/mmcblk0p3 57120768 61069311 3948544 1.9G Linux swap
Disk /dev/mmcblk0boot1: 4 MiB, 4194304 bytes, 8192 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
Disk /dev/mmcblk0boot0: 4 MiB, 4194304 bytes, 8192 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
The main hd is mmcblk0 (toshiba cl15t laptop with emmc sd drive)maximus1978 wrote:Is the main hard drive "/dev/sda"?
There are 2 boot partitions in the fdisk output... boot0 and boot1... just noticed that
-
- Posts: 23
- Joined: 2017-11-18 18:40
Re: Debian 9 grub boots to command line but works
root@debian:/home/justin# [ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"maximus1978 wrote:Is the main hard drive "/dev/sda"?
If it is, then do this next step.
if this is the result...("EFI boot on HDD")Code: Select all
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
Please reboot.Code: Select all
grub-install /dev/sda update-grub
Let me know the result.
EFI boot on HDD
root@debian:/home/justin# grub-install /dev/mmcblk0
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@debian:/home/justin# update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.9.0-4-amd64
Found initrd image: /boot/initrd.img-4.9.0-4-amd64
Adding boot menu entry for EFI firmware configuration
done
root@debian:/home/justin#
-
- Posts: 23
- Joined: 2017-11-18 18:40
Re: Debian 9 grub boots to command line but works
Rebooted and the command line still came up.maximus1978 wrote: Please reboot.
Let me know the result.