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:
- I used the following command to resize the root partition:
sudo resize2fs /dev/mapper/ubuntu--vg-root
- 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:
- Rebooted the system into GRUB recovery mode, but I need more specific instructions on how to proceed with fixing the issue.
- 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.