*Read-only file system* #65

Open
opened 2025-02-13 13:11:50 +01:00 by Benjamin_Loison · 3 comments

On OverClock3000 running on Pegasus Virtual Machine Manager after days of working fine:

touch test
touch: cannot touch 'test': Read-only file system

The Ask Ubuntu answer 868792:

fsck
Output:
Command 'fsck' is available in the following places
 * /sbin/fsck
 * /usr/sbin/fsck
The command could not be located because '/usr/sbin:/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
fsck: command not found
sudo fsck

output.txt

Still face touch issue.

sudo fsck
Output:
fsck from util-linux 2.38.1
e2fsck 1.47.0 (5-Feb-2023)
/dev/vda1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong (9009859, counted=9016698).
Fix<y>? yes to all
Free inodes count wrong (11380279, counted=11380297).
Fix? yes


/dev/vda1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/vda1: ***** REBOOT SYSTEM *****
/dev/vda1: 3881399/15261696 files (0.4% non-contiguous), 52018310/61035008 blocks

Same output if run again.

Still unable to touch.

reboot

makes touch works fine.

Should test the Ask Ubuntu answer 287024 next time to avoid rebooting. I tried similar mount commands these recent days without luck.

On OverClock3000 running on Pegasus Virtual Machine Manager after days of working fine: ```bash touch test ``` ``` touch: cannot touch 'test': Read-only file system ``` [The Ask Ubuntu answer 868792](https://askubuntu.com/a/868792): ```bash fsck ``` <details> <summary>Output:</summary> ``` Command 'fsck' is available in the following places * /sbin/fsck * /usr/sbin/fsck The command could not be located because '/usr/sbin:/sbin' is not included in the PATH environment variable. This is most likely caused by the lack of administrative privileges associated with your user account. fsck: command not found ``` </details> ```bash sudo fsck ``` [output.txt](/attachments/79c61690-8f84-4c44-992d-4f7743edd416) Still face `touch` issue. ```bash sudo fsck ``` <details> <summary>Output:</summary> ``` fsck from util-linux 2.38.1 e2fsck 1.47.0 (5-Feb-2023) /dev/vda1 contains a file system with errors, check forced. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Free blocks count wrong (9009859, counted=9016698). Fix<y>? yes to all Free inodes count wrong (11380279, counted=11380297). Fix? yes /dev/vda1: ***** FILE SYSTEM WAS MODIFIED ***** /dev/vda1: ***** REBOOT SYSTEM ***** /dev/vda1: 3881399/15261696 files (0.4% non-contiguous), 52018310/61035008 blocks ``` </details> Same output if run again. Still unable to `touch`. ```bash reboot ``` makes `touch` works fine. Should test [the Ask Ubuntu answer 287024](https://askubuntu.com/a/287024) next time to avoid rebooting. I tried similar `mount` commands these recent days without luck.
448 KiB
Author
Owner

DuckDuckGo search Linux force fsck before booting at least defining a threshold to not block booting would be nice.

DuckDuckGo search *Linux force fsck before booting* at least defining a threshold to not block booting would be nice.
Author
Owner

fsck while the system is running in read-only does not seem to actually work fine.

`fsck` while the system is running in read-only does not seem to actually work fine.
Author
Owner
https://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/ may help.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Benjamin_Loison/linux#65
No description provided.