I believe my internal disk has failed but I am not entirely sure. In order to detect this, and until I can replace it, I made a persistent live disk off an external hard drive.
I tested that it preserves any files I write to it, but I noticed I cannot install anything. I get this error when I try to install something:
Do you want to continue? [Y/n] Y Setting up linux-image-5.0.0-36-generic (5.0.0-36.39~18.04.1) ... Setting up initramfs-tools (0.130ubuntu3.9) ... /usr/sbin/update-initramfs: 6: /usr/sbin/update-initramfs: cannot create /cdrom/casper/vmlinuz: Read-only file system dpkg: error processing package initramfs-tools (--configure): installed initramfs-tools package post-installation script subprocess returned error exit status 2 Processing triggers for linux-image-5.0.0-36-generic (5.0.0-36.39~18.04.1) ... /etc/kernel/postinst.d/initramfs-tools: /usr/sbin/update-initramfs: 6: /usr/sbin/update-initramfs: cannot create /cdrom/casper/vmlinuz: Read-only file system run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2 dpkg: error processing package linux-image-5.0.0-36-generic (--configure): installed linux-image-5.0.0-36-generic package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: initramfs-tools linux-image-5.0.0-36-generic E: Sub-process /usr/bin/dpkg returned an error code (1)
Any advice on how to install programs on a persistent live disk would be really appreciated. The disk has Ubuntu 18.04.
Is it still trying to use my internal HDD for anything? If yes that may be a problem also because it is encrypted.