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

 

 

 

Grub Fails to Install

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Grub Fails to Install

#41 Post by p.H »

If the tablet cannot boot from the SD card it may not be able to access it either at boot time, so you must also put the root or /boot partition on the internal storage.

If you do a new installation, select advanced > expert install in the boot screen. It will ask extra questions, just leave the default if you do not know what to answer, except for one : when installing GRUB, it will offer to install the boot loader in the removable device path. Say yes. This will give an extra chance to make the system boot even if the boot variable creation fails.

pinkbeat
Posts: 32
Joined: 2021-03-05 08:15

Re: Grub Fails to Install

#42 Post by pinkbeat »

p.H wrote:If the tablet cannot boot from the SD card it may not be able to access it either at boot time, so you must also put the root or /boot partition on the internal storage.

If you do a new installation, select advanced > expert install in the boot screen. It will ask extra questions, just leave the default if you do not know what to answer, except for one : when installing GRUB, it will offer to install the boot loader in the removable device path. Say yes. This will give an extra chance to make the system boot even if the boot variable creation fails.
Okay, but, will the 16GB internal drive be enough storage for the /root? It's actual 15.1 GB or around that. I could put the /swap, /usr and /home on the sd cart but, I thought the/root needed at least 20GB storage. What say you?

I did go into each partition to check before writing and I noticed EFI was on do not use. Maybe that was what was happening. We will see. I had already started the reinstall b4 your post. Swap and EFI are on the internal and the root and home are on the sd card currently. I'll see what happens when it's done a couple hours from now.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Grub Fails to Install

#43 Post by p.H »

pinkbeat wrote:will the 16GB internal drive be enough storage for the /root?
It depends on your needs. I have whole Debian installations which fit in 15 GB (but with the LXDE light desktop environment, and I am not sure it supports touchscreens well). If it is not enough, as I wrote you can put a separate /boot partition (250 to 500 MB) on the internal storage and the root partition on the SD card. Alternatively, you may put the root partition on the internal storage and /usr on the SD card, but that is about the same as a separate /boot and just more complicated. Of course you may put /home and /var on the SD card in any case.
pinkbeat wrote:I noticed EFI was on do not use
[Edit] Weird, in my experience manual partitioning marks all EFI partitions as used by default and will complain if no EFI partition is present or marked as used.
pinkbeat wrote:'ll see what happens when it's done a couple hours from now.
Hours ?
IMO, you should just do a basic installation without a desktop environment and check if it boots. Then you can run tasksel to install a desktop environment. If you do a full installation and it fails to boot again, you'll have lost a lot of time for nothing.

pinkbeat
Posts: 32
Joined: 2021-03-05 08:15

Re: Grub Fails to Install

#44 Post by pinkbeat »

p.H wrote:
pinkbeat wrote:will the 16GB internal drive be enough storage for the /root?
It depends on your needs. I have whole Debian installations which fit in 15 GB (but with the LXDE light desktop environment, and I am not sure it supports touchscreens well). If it is not enough, as I wrote you can put a separate /boot partition (250 to 500 MB) on the internal storage and the root partition on the SD card. Alternatively, you may put the root partition on the internal storage and /usr on the SD card, but that is about the same as a separate /boot and just more complicated. Of course you may put /home and /var on the SD card in any case.

These are the partitions I made on this install. I don't have one named /boot though. Wasn't away I needed to do that. Unless you are talking about the EFI partition.

https://www.flickr.com/photos/190020956 ... 602063847/

https://www.flickr.com/photos/190020956 ... 602063847/

pinkbeat wrote:'ll see what happens when it's done a couple hours from now.
Hours ?
IMO, you should just do a basic installation without a desktop environment and check if it boots. Then you can run tasksel to install a desktop environment. If you do a full installation and it fails to boot again, you'll have lost a lot of time for nothing.
I didn't know that. I'm so lost with Linux. lol. I'll try that if you suggest a different partitioning scheme than what I have going now. What is tasksel? Yeah, I was installing GNOME as well as the Debian Desktop environment.

Here are the TTY4 and TTY3 screenshots after the Grub-install dummy fail screen.
https://www.flickr.com/photos/190020956 ... 602063847/

https://www.flickr.com/photos/190020956 ... 602063847/

Also, this is what I got when I tried the mount command that was given on here to try.
https://www.flickr.com/photos/190020956 ... 602063847/

So, If you think I need to redo my partitions in a particular way let me know and I will redo it with the basic boot suggestion you stated earlier. Just tell me exactly what and where.
Thanks!

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Grub Fails to Install

#45 Post by p.H »

Please do not write your replies inside the quoted parts, it is confusing.

If you want to take no chances, I suggest the following actions :
- select expert install
- put the EFI partition on the internal storage
- create a /boot partition on the internal storage
- do not select any tasks
- install GRUB in the removable device path (fallback bootloader)
- if boot succeeds, run tasksel to install the desired tasks

A /boot partition is not to be confused with the EFI partition. It is mounted on /boot. The EFI partition is mounted on /boot/efi.
pinkbeat wrote:What is tasksel?
Tasksel is a tool which allows to install "tasks" such as dekstop environments, web server, print server...
It does the same as the "select tasks" step during installation but can be run at any time.
pinkbeat wrote:Also, this is what I got when I tried the mount command that was given on here to try.
Maybe efivarfs was already mounted. You can check with mount without argument or by listing the contents of /sys/firmware/efi/efivars with ls.

pinkbeat
Posts: 32
Joined: 2021-03-05 08:15

Re: Grub Fails to Install

#46 Post by pinkbeat »

@ p.H. Thanks, I'll give it a try. Sorry, I didn't realize I was typing within the qoute. Honest mistake. Thanks for telling me. Don't want to be confusing. I'll report back by tomorrow sometime. Thanks again p.H.

Bulkley
Posts: 6387
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Grub Fails to Install

#47 Post by Bulkley »

Head_on_a_Stick wrote:I don't have permission to view that image and I refuse to sign up to "Flickr" (whatever the **** that is).
I have to agree. I tried the Flikr link and got "404".

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Grub Fails to Install

#48 Post by p.H »

Bulkley wrote:I tried the Flikr link and got "404"
Not the same issue. The OP removed old pictures.

pinkbeat
Posts: 32
Joined: 2021-03-05 08:15

Re: Grub Fails to Install

#49 Post by pinkbeat »

p.H wrote:
- install GRUB in the removable device path (fallback bootloader)


A bit confused as what to do at this step. What do I partition that section as so there is space for it? Can't make two /boot partitions. Also the /boot partition I made on the internal drive says that the bootable flag is off. Is that okay?

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Grub Fails to Install

#50 Post by p.H »

You must not make two /boot partition (obviously impossible) but one EFI partition (use as: EFI boot) and one /boot partition (use as: ext4 and mount on: /boot) both on the internal storage.

The removable device path has nothing to do with the separate /boot partition. It is an option that is offered in expert mode during the installation of GRUB. It requires no extra space in the EFI partition if its size is at least 10 MB.

The /boot partition must not have the boot flag. With GPT, the boot flag is equal to the EFI system partition type.

pinkbeat
Posts: 32
Joined: 2021-03-05 08:15

Re: Grub Fails to Install

#51 Post by pinkbeat »

p.H wrote:You must not make two /boot partition (obviously impossible) but one EFI partition (use as: EFI boot) and one /boot partition (use as: ext4 and mount on: /boot) both on the internal storage.

The removable device path has nothing to do with the separate /boot partition. It is an option that is offered in expert mode during the installation of GRUB. It requires no extra space in the EFI partition if its size is at least 10 MB.

The /boot partition must not have the boot flag. With GPT, the boot flag is equal to the EFI system partition type.
Okay, so /boot, efi and /swap is what I have on the internal and /root and /home is what I have on the micro sd card. If that is all good and fine as far as correctly partioning...it failed on both the removable and internal to install grub dummy.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Grub Fails to Install

#52 Post by p.H »

pinkbeat wrote:it failed on both the removable and internal to install grub dummy.
This setup is not intended to fix the GRUB installation error. GRUB is actually installed but registering it in the EFI boot variable failed. Enabling the removable device path is intended as a workaround to the lack of the EFI boot variable.

Does the tablet boot with GRUB now ? If not, what does the EFI shell show ?

pinkbeat
Posts: 32
Joined: 2021-03-05 08:15

Re: Grub Fails to Install

#53 Post by pinkbeat »

p.H wrote:
pinkbeat wrote:it failed on both the removable and internal to install grub dummy.
This setup is not intended to fix the GRUB installation error. GRUB is actually installed but registering it in the EFI boot variable failed. Enabling the removable device path is intended as a workaround to the lack of the EFI boot variable.

Does the tablet boot with GRUB now ? If not, what does the EFI shell show ?
I'm at this step in the partitioning and got this error. Don't know what to do next.
https://www.flickr.com/photos/190020956 ... ateposted/

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Grub Fails to Install

#54 Post by p.H »

Delete and re-create the EFI partition.

pinkbeat
Posts: 32
Joined: 2021-03-05 08:15

Re: Grub Fails to Install

#55 Post by pinkbeat »

p.H wrote:Delete and re-create the EFI partition.
I tried but keep getting the same error.

pinkbeat
Posts: 32
Joined: 2021-03-05 08:15

Re: Grub Fails to Install

#56 Post by pinkbeat »

I guess I've been abandonded. :(

Post Reply