LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-26-2016, 02:55 PM   #1
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Rep: Reputation: 11
Suddenly my home became read-only


I rebooted and ran fsck and fixed it, but I wonder, what would cause this to happen? Is it an indication of hard drive failure? Could some software or corrupted files cause it?

EDIT: I may have found the culprit. I have a tarball that causes this to happen whenever I try to extract it. It does this:

Code:
gzip: stdin: Input/output error
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
and now everything is read-only again.

Last edited by ahc_fan; 02-26-2016 at 03:00 PM.
 
Old 02-26-2016, 04:26 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
This happen to me couple times back in 13.0 and it was a stale socket and I was totally lost till I read around figured out that. I need to figure out why I lost write privileges /tmp/kde socket was an issue. for some reason during startup it did not create a new one and boom it thought I was already there.
That's all I have to say. blue moon.
as for that tar it is not a full tarball so it has no start or end ok. Corrupted or not fully downloaded.

Last edited by Drakeo; 02-26-2016 at 04:27 PM.
 
Old 02-26-2016, 06:51 PM   #3
MarcT
Member
 
Registered: Jan 2009
Location: UK
Distribution: Slackware 14.2
Posts: 125

Rep: Reputation: 51
Possibly a disk error and/or a corrupt filesystem.

Run "dmesg" (as root) to look at the kernel message logs.


Perhaps do "dmesg > pre.txt" to get a baseline then try to extract your tarball. Run "dmesg" (as root) again. You could do "dmesg > /tmp/post.txt", assuming /tmp is still writable.
If it is a disk error, you'd expect to see the kernel logging media errors and a message about remounting the filesystem read-only.

If there are no media errors, but the filesystem drops read-only you need to backup the filesystem, and then "fsck" it.
If there are media errors, backup the filesystem and then decide if the drive can be "repaired" by forcing it to remap the bad sectors - or whether the thing is toast and needs to be replaced.


Post a section of the dmesg errors and we'll try to help you.
Also post the output of "smartctl -a /dev/sda" as root, assuming sda is your drive.

Marc
 
1 members found this post helpful.
Old 02-26-2016, 06:59 PM   #4
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
What filesystem?
 
  


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
Floppy drive failed suddenly; knoppix can read diskettes but PC won't boot from them Airidh General 3 03-28-2008 02:36 PM
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM
Suddenly root owns everything under /home alxnd Linux - Security 1 05-15-2006 06:29 PM
Partition suddenly read-only -- help James19390 Ubuntu 1 03-22-2006 01:24 PM
all file system went suddenly Read Only hungry_linux Linux - Security 2 07-02-2005 11:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:32 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