Root filesystem is now mounted in read-only mode

Hello Tamil Linux community,

I encountered an issue after resizing my root filesystem and I’m hoping someone can help me resolve it.

Problem: I resized my root filesystem using the resize2fs command. After receiving a success message from the resize operation, I rebooted the device. However, the server immediately went into emergency mode, and the root filesystem is now mounted in read-only mode. I’m unable to make changes to system files like /etc/fstab or troubleshoot effectively due to the read-only state.

What I did:

  1. I used the following command to resize the root partition:

sudo resize2fs /dev/mapper/ubuntu--vg-root

  1. After successful completion, I rebooted the device:sudo reboot

Current Situation:

  • The server enters emergency mode on every boot.
  • The root filesystem is mounted as read-only, so I can’t edit critical system files like /etc/fstab.
  • I’m unable to mount it with write permissions normally.

Steps I’ve Tried:

  1. Rebooted the system into GRUB recovery mode, but I need more specific instructions on how to proceed with fixing the issue.
  2. Attempted to remount the root filesystem with:mount -o remount,rw /But this only works temporarily during recovery mode and doesn’t persist across reboots.

Question: How can I safely revert or troubleshoot this resizing operation? Are there steps to recover from this emergency mode and return to normal boot?

Any help is greatly appreciated! Thanks in advance.

try Step 2, then got to /etc/fstab and make your root partition rw so that it persists across reboots.

But this only works temporarily during recovery mode and doesn’t persist across reboots

எமர்ஜெண்சி மோடில் உங்கள் கணினியில் இணையம் கிடைக்கின்றதா?

ip address
ping -c 3 1.1.1.1

இந்த கமாண்டை இயக்கி வரும் தகவலை பகிரவும் (உங்கள் ஸ்மார்ட்போனில் நிழற்படம் எடுத்து பகிரவும்)

இந்த சிக்கல் தொடர்கின்றதா என்று கூறவும்

We were unable to recover the data. We have finally reset the entire data and installed everything from the scratch. Thanks for all your support.