LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-23-2017, 07:31 PM   #1
Jason_25
Member
 
Registered: Nov 2001
Posts: 180

Rep: Reputation: 23
Ignore ext4 errors and force mount read-write (with broken fsck)?


I frequently get into a position with my Raspberry Pi devices where the OS becomes read-only. The actual reason for the corruption is varied.

I did not make this decision but the version of fsck shipped is incompatible with the installed filesystem.

The most important point here is that I am unwilling to fix the problem by updating fsck because I want the system to boot always without trying to run fsck. I refuse to accept that the only way to fix this problem is through fsck. The OS did something (without the use of fsck because it won't run) to mark the drive read-only - I want to reverse this no matter what!!!

To be more clear:
1. I want to ignore filesystem errors in every situation and try to boot EVERY TIME without ever remounting read-only.
2. I don't care if the entire system melts down as long as it tries to mount the freaking disk read-write every time.
3. My only concern is setting the system to favor absolute uptime vs absolute data integrity.

How may I (preferably permanently) mark the disk as read write, considering the installed version of fsck is broken?
 
Old 11-23-2017, 08:01 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
So you deliberately haven't told what the filesystem is, because you don't want help, you just want to continue using potentially corrupt data, and probably make it worse. That's ok, it's your data.
"man fstab".

If you really want consistent data, don't use sdcards.

Edit: oops, missed ext4 in the subject. My bad. You can run ext4 without a journal, so it acts like ext2 did. Not that I'm recommending it.

Last edited by syg00; 11-23-2017 at 08:16 PM.
 
Old 11-24-2017, 09:17 AM   #3
Jason_25
Member
 
Registered: Nov 2001
Posts: 180

Original Poster
Rep: Reputation: 23
I'm not sure removing the journal is what I want to do. When manually remounting read-write it says the micro sd card is write protected. I would like to find out the mechanism that sets the micro sd to "write protected" in the first place. Is the kernel itself setting the filesystem to write protected? There is no damage to the micro sd cards. If you reformat, repartition or dd them they work fine.

edit:
It seems that the problem was simply with the fstab file. If you remove errors=remount,ro then no more holding up the boot. What a relief.

Last edited by Jason_25; 11-24-2017 at 09:50 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot run fsck for reaipr broken ext4, how to? infern0 Linux - General 6 04-22-2013 07:10 AM
ext4 won't mount - fsck required - 2nd fsck in less than a week td3201 Linux - General 1 09-10-2012 12:07 AM
fsck shows thousands of group descriptor errors on ext4 volume. abejarano Linux - General 0 04-21-2011 01:42 AM
Read Write access to a iso9660 filesystem..mount a .iso image as read write ceazar123 Linux - General 2 08-26-2010 03:32 PM
How to ignore I/O read errors ? marozsas Linux - Hardware 7 09-26-2007 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration