How can I edit fstab from the Arch emergency shell?
Asked by
ChillyPanda42
I resized my root partition and now I'm stuck in the emergency shell. I need to edit the fstab file because it still points to the old UUID, and the system is refusing to boot properly. I've looked up solutions online, but everything just leads me in circles or suggests using vim or nano, which I can't access in this shell. What's the best way to edit fstab or install a text editor from the emergency shell?
Answers
One way to tackle this is to use a live USB to boot your system. It doesnโt even have to be an Arch live USB. In the emergency shell, partitions aren't mounted yet, so youโll need to mount them first. After that, you can access your files and edit fstab properly from the mounted system. Just a thought to get you back on track!
Reply to this answer
Remember, the UUID won't change just by resizing a partition, and fstab isn't read until the root partition is mounted. You might want to run `fsck` on your root partition to check for any errors. It could be part of the problem you're facing!
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions