How can I edit fstab from the Arch emergency shell?

0
58
Asked By ChillyPanda42 On

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?

2 Answers

Answered By GamerGuy247 On

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!

Answered By TechieTurtle88 On

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!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.