You are not logged in.

#1 2024-09-01 02:12:58

Meechh
Member
Registered: 2024-09-01
Posts: 10

[SOLVED] GRUB fails to install yet I appear to have plenty of space?

I have followed the installation guide (first time Linux user by the way) up to the point where I am prompted to choose a bootloader. I had allocated 4 GiB of space to my ESP. I ran the command to install GRUB, `grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=ARCH`, but I was met with the following error: `grub-install: error: cannot copy '/usr/lib/grub/x86_64-efi/gzio.mod' to '/boot/grub/x86_64-efi/gzio.mod': No space left on device.` Following that I ran both `df -h /boot` and `fdisk -l` and the former said that I only had 164 MiB of TOTAL space on that partition, but the latter told me that I had the desired amount of space. Would anyone be so kind as to tell me what's going on?
Result of fdisk -l /dev/sdb:
20240831_181355
Result of df -h /boot:
20240831_181430

Last edited by Meechh (2024-09-07 23:07:59)

Offline

#2 2024-09-01 02:22:21

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,231

Re: [SOLVED] GRUB fails to install yet I appear to have plenty of space?

How did you format it? The partition is 4G, the filesystem on the partition isn't.

Also, why a dos/mbr partition table? You may or may not have trouble booting that.

Online

#3 2024-09-01 02:30:26

Meechh
Member
Registered: 2024-09-01
Posts: 10

Re: [SOLVED] GRUB fails to install yet I appear to have plenty of space?

The partition was always there, I just grew it in fdisk, but I refrained from formatting it due to the warning on the installation guide.
Also, I didn't change to GPT instead of MBR because I was not able to do so in GParted without wiping off the ISO. I believed I wouldn't have problems with it.

Offline

#4 2024-09-01 02:34:00

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,231

Re: [SOLVED] GRUB fails to install yet I appear to have plenty of space?

That explains it, growing the partition doesn't change the size of the filesystem. You have to do that, too, if possible. IIRC last time I tried to do that with fat32, it wasn't worth it.

Online

#5 2024-09-01 02:36:35

kermit63
Member
Registered: 2018-07-04
Posts: 274

Re: [SOLVED] GRUB fails to install yet I appear to have plenty of space?

df -h gives you filesystem size while fdisk gives you partition size. This usually happens when the partition size was enlarged without enlarging the filesystem to take advantage of the extra space.

If this were an ext4 parition, it would've been simple to just run resize2fs to enlarge the filesystem. Unfortunately I don't know what to use with fat32 partitions. The last time I enlarged a FAT32 partition, I used gparted, which automatically adjusted the filesystem size to match the partition. Maybe one of the gurus of this forum can chime in.

If this were my computer, I would back up the FAT32 partition, use gparted to recreate it, then restore the contents back. Doing so would probably require you to boot to a live medium and reinstall GRUB.

You should wait for a while, maybe someone will come along with a better idea.

EDIT:  too slow, ninja'd by scimmia.

Last edited by kermit63 (2024-09-01 02:37:08)


Never argue with an idiot, they will drag you down to their level and then beat you with experience.
It is better to light a candle than curse the darkness.
A journey of a thousand miles begins with a single step.

Offline

#6 2024-09-01 05:13:13

cryptearth
Member
Registered: 2024-02-03
Posts: 1,127

Re: [SOLVED] GRUB fails to install yet I appear to have plenty of space?

just wipe the disk - convert it to gpt - create new partitions on it and format them - and start over again
also: that other windows drive: https://wiki.archlinux.org/title/Dual_b … ibernation

Offline

#7 2024-09-01 06:08:33

Meechh
Member
Registered: 2024-09-01
Posts: 10

Re: [SOLVED] GRUB fails to install yet I appear to have plenty of space?

Alright, I assumed that would be my best bet. Since there's nothing particularly important on the drive I'll just start the process from scratch.

Offline

Board footer

Powered by FluxBB