Hello Juhani,
I'm a little confused if you had grub or grub2 installed on your HD.
For now I'll assume there is grub2.
However, I'd try the following:
# Boot from your flash drive
# Mount your root, boot and other partitions to /mnt
# chroot
mount -t proc /proc /mnt/proc
mount -t sysfs /sys /mnt/sys
mount -o bind /dev /mnt/dev
mount -o bind /run /mnt/run
chroot /mnt /bin/bash
# Check if your fstab is correct (contains right UUIDs, etc.)
cat /etc/fstab
blkid
# Install GRUB (assuming your SSD is /dev/sda):
grub2-install --target=i386-pc /dev/sda
# Backup the "old" cfg
mv /boot/grub2/grub.cfg /boot/grub/grub.cfg.bak
# Create a new one
grub2-mkconfig -o /boot/grub/grub.cfg
# exit, sync, umount, reboot and hopefully success
(By running grub2-install in chroot it should determine modules you
need automagically.)
With kind regards,
sashab
On 11/28/18 7:28 PM, Juhani Jaakola wrote:
On 11/28/18, sashab <[email protected]> wrote:
first of all: About reinstalling GRUB:
- Do you reinstall from chroot? You should.
- Have you also bind-mounted /dev and /run? You should.
(Of course also mount /proc and /sys with matching fs-types.)
No, but shouldn't option --boot-directory do all that for me? Like
this (see
https://forums.fedoraforum.org/showthread.php?319160-Boot-displays-just-one-dot-and-hangs&p=1815138#post1815138
):
grub2-install --debug --debug-image=all --modules=gzio
--modules=normal --disk-module=ata
--boot-directory=/run/media/liveuser/_boot/ /dev/sda
Here I have booted from Fedora 28 live USB stick and mounted the /boot
partition of my SSD on /run/media/liveuser/_boot/. The SSD is
/dev/sda.
About debugging:
Are you sure it's a blockdev-Problem?
No. How could I verify that?
Do you have a timeout set in your grub.cfg?
Set one and see what happens.
Sorry I don't understand what difference it could make?
One thing you may try is to install GRUB to a flash drive,
get there and use the configfile [1] command to load the config from
your shiny SSD.
I tried to boot from another USB stick with just GRUB on it, and then
load modules from the SSD manually in rescue mode. In some point
insmod just hangs??? See
https://forums.fedoraforum.org/showthread.php?319160-Boot-displays-just-one-dot-and-hangs&p=1812590#post1812590
Regards, Juhani Jaakola
_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub