Hi oldfred,
Some updates. Ran the installer manually in live mode so I could debug... when I got to this step:
Code:
ubuntu@ubuntu:~$ sudo grub-install --no-nvram --root-directory=/target
Installing for x86_64-efi platform.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
Installation finished. No error reported.
and
Code:
ubuntu@ubuntu:~$ sudo chroot /target
root@ubuntu:/# update-grub
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
error: cannot read `/dev/sda': Input/output error.
cat: write error: Read-only file system
cat: write error: Read-only file system
In the file /etc/fstab:
Code:
# /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/sda6 during installation
UUID=7b59cef1-ec97-493a-aac3-6b658543fa3b / ext4 errors=remount-rw 0 1
# /boot/efi was on /dev/sda2 during installation
#UUID=22E9-8C35 /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda5 during installation
UUID=c033c24d-7af5-4022-ba79-6bde9b16899c none swap sw 0 0
I did comment out that line "/boot/efi". But I think that is not the problem? The problem is that /target/boot/grub somehow always gets remounted as "ro".
Just to be safe, I also changed the first line from "errors=remount-ro" to "errors=remount-rw".
1. There were no "grub.cfg.new" file generated this time. There isn't even a grub.cfg since the grub stuff failed.
2. The main culprit seems to be the line "cannot read `/dev/sda': Input/output error.".
3. Maybe we can get some insight on this if we can somehow run grub-install or update-grub in verbose mode. Is there such a setting?
4. I believe if we can generate a grub.cfg, then the problem is solved. Maybe there is a filesystem on /dev/sda that is somehow not readable?
Bookmarks