[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't install Grub on SSD (bullseye)



Please respond to the mailing list too - that way other people may be
able to help, and solutions may help other users too.

On Tue, Apr 06, 2021 at 01:58:06PM +0200, Xavier Brochard wrote:
>Le 06.04.2021 12:57, Steve McIntyre a écrit :
>> On Tue, Apr 06, 2021 at 12:11:54AM +0200, Xavier Brochard wrote:
>> > I'm currently testing the new installer for bullseye. I ran into a
>> > strange
>> > problem with grub-install, using "bios" grub, not EFI. Basicaly grub
>> > files
>> > are not copied in /boot/grub if my carget is a SSD.
>> > Could you tell me if this is a known issue before I write a bug
>> > report ?
>> 
>> Ummm. That's a very odd situation that should not happen. When you say
>> SSD, is that SATA or NVME?
>
>SATA. It is an 1TB Crucial SSD. It's the only writable device (when I tried
>with a hardrive, the HD was also the only writable device pluggged in in the
>exact same SATA connector).

OK, thanks for confirming that!

...

>I forgot to mention that I tried also to install Grub from CLI, with /proc
>/sys /dev  mounted in /target, chroot with bash from /target. I got the exact
>same error.

OK.

>> Can you show us the partitioning on both the SSD and the hard drive
>> please? (fdisk -l is probably easiest).
>
>SSD SSD SSD SSD
>Disque /dev/sdd : 931,51 GiB, 1000204886016 octets, 1953525168 secteurs
>Modèle de disque : 500SSD1
>Unités : secteur de 1 × 512 = 512 octets
>Taille de secteur (logique / physique) : 512 octets / 512 octets
>taille d'E/S (minimale / optimale) : 512 octets / 512 octets
>Type d'étiquette de disque : dos
>Identifiant de disque : 0x49b255ac
>
>Périphérique Amorçage  Début        Fin   Secteurs Taille Id Type
>/dev/sdd1    *          2048     780287     778240   380M 83 Linux
>/dev/sdd2             780288 1953523711 1952743424 931,1G 8e LVM Linux

OK, so that's set up with a DOS partition table and there should
definitely be space there for embedding the grub core image before
partition 1.

>HD HD HD HD  HD
>Disque /dev/sde : 465,76 GiB, 500107862016 octets, 976773168 secteurs
>Modèle de disque : 02-1BD142
>Unités : secteur de 1 × 512 = 512 octets
>Taille de secteur (logique / physique) : 512 octets / 512 octets
>taille d'E/S (minimale / optimale) : 512 octets / 512 octets
>Type d'étiquette de disque : dos
>Identifiant de disque : 0x9cea469a
>
>Périphérique Amorçage    Début       Fin  Secteurs Taille Id Type
>/dev/sde1    *            2048  19531775  19529728   9,3G 83 Linux
>/dev/sde2             19533822 976771071 957237250 456,4G  5 Étendue
>/dev/sde5             19533824 976771071 957237248 456,4G 8e LVM Linux

And you have a similar setup here.

OK, all looks fine here so far. Next questions...

1. What filesystem(s) have you set up on each disk, please? Where are
   they mounted in each case? Your initial problem report said
   "grub-install: error: cannot open
   `/boot/grub/i386-pc/sleep_test.mod': No space left on device." -
   can you confirm that /dev/sdd1 is mounted on /boot OK?

2. Is there anything showing in the syslog complaining about disk
   errors?

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
"C++ ate my sanity" -- Jon Rabone


Reply to: