So as the title says, I’m trying to recover from an interrupted updat by following this guide: https://forum.manjaro.org/t/howto-recovering-from-an-interrupted-update-upgrade/132762
However, in the middle of upgrading my PC freezes, and after a while I figured out it was because of my SSD. I am using an Acer Aspire A315-23 laptop, and whenever I liveboot a distro it freezes after a while even when using boot parameters from this guide https://askubuntu.com/questions/1277405/problems-installing-ubuntu-on-acer-laptop
This usually isn’t a problem, however the recovery process takes some time and it always freezes in the middle of upgrading. After some time I thought about editing and updating Grub, however it’s impossible to do that on a liveusb.
In short, I have two questions:
Is it possible to permanently alter the boot parameters on a liveboot medium? OR
Is it possible to cut down time required for the recovery process
Sorry if this question(s) has/have been asked before
Yes - altering them does not even require chroot
because what need you alter / edit is the /etc/default/grub file on your system partition
not the one on the live system.
Just mount the partition and do whatever …
But after altering them you need to run update-grub
or the equivalent grub-mkconfig -o /boot/grub/grub.cfg
and that only works from within a chroot
What recovery process?
The file system check that runs after you shut down by cutting the power/turning it off?
No - it takes the time it takes - and it is needed.
ps:
I may have misunderstood you:
the only way to edit the grub parameters for the live system is to press ESC to halt at the Grub screen, then press E to edit - there is no way to make this permanent.
Why you think it is your SSD? Do you have enough free space?
What are your pamac.logs showing? /var/log/pacman.log
How did you update? Maybe try to update from TTY?
I recommend to use in future Timeshift, you can always fix better your system if you can rollback your system… at least you have a safety net and you have always a working system.
A new nuke-and-pave installation is not a “recovery” from anything, nor does it address or in any way “solve” what caused the issue in the first place, so is not helpful at all, and not a useful “solution” for anybody reading this.
Sorry if this sounds a bit harsh, but it’s a statement of truth.
AFAIK The problem is that the Western Digital SSD has a problem with power states which prevents linux from recognizing it (WD apparently doesn’t test their SSDs with linux distros), see: https://community.wd.com/t/linux-support-for-wd-black-nvme-2018/225446/17. A way of fixing this is modifying the grub file. However it is impossible to do such a thing on a liveboot medium. I’m pretty sure that the problem can only be permanently solved by replacing the SSD. Once again thank you for being so understanding.
That looks decent enough; I’d have more swap but at least you have some. Unlike what I’m seeing a lot here lately: “No swap defined”.
I had an issue some time back where in my case Haskell modules were taking an age to install, due to a bad sector on the disk. It would get stuck for ages, until I fixed the issue. Not sure how this would relate with an SSD, though.
Watch the logs whilst upgrading; save them and post here. We might be able to spot something.
sudo pacman -Syu --logfile ~/.upgrade-log.txt
I use a slightly different method: I manually copy the Pacman output and save it in a date-stamped text file for future reference. But you may need to alter your Terminal scrollback limit: