Why HDD in read-mode only??

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Why HDD in read-mode only??

Postby Linares » Mar 17th, '21, 21:44

Hello.

I have an internal hard drive with which, until today, I normally worked editing and creating files. Today, suddenly, I can't create files, nor delete them, nor copy.
It is as if the hard drive has been put into "read only" mode.
What fault could it be? :?:
Linares
 
Posts: 145
Joined: Nov 25th, '19, 20:24
Location: Aizarna, Euskal Herria

Re: Why HDD in read-mode only??

Postby sturmvogel » Mar 17th, '21, 22:07

You should check your /etc/fstab
If your partition has the 'ro' setting, then it is read only.
sturmvogel
 
Posts: 740
Joined: Jul 30th, '12, 00:39

Re: Why HDD in read-mode only??

Postby filip » Mar 17th, '21, 22:55

Failing drives can show such symptoms. So I would also test it with GSmartControl. I test all my drives regularly. No serious loss for now.
filip
 
Posts: 478
Joined: May 4th, '11, 22:10
Location: Kranj, Slovenia

Re: Why HDD in read-mode only??

Postby doktor5000 » Mar 17th, '21, 23:19

What happens more regularly is if this an NTFS partition, then those will sometimes be marked as readonly if windows has not been shutdown properly or if fastboot is not disabled.

Although without more details it's hard to say what the cause is.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Why HDD in read-mode only??

Postby jiml8 » Mar 19th, '21, 11:30

The OS will commonly kick a drive into read-only mode when there is a serious problem with the filesystem on the drive. This could be software corruption, or it could be a hard drive failure underway.

If the "hard drive" is actually an SSD, then becoming a read-only device is a common failure mode. You'll have to replace it.

With NTFS, if you kill the computer (or it crashes) without proper shutdown, the filesystem remains "open", the pending journal is unwritten, and the overall state of the system is not consistent. When this happens in a Windows system, on next startup Windows fixes things up. In the case, for instance, of a dual-boot, if Linux is the next boot, Linux does not fix it up so the NTFS driver marks it read only to avoid corrupting it.

You will also see this kind of behavior from UFS on BSD, and I believe iOS will do the same thing.

So what you do next depends on your exact problem. If it is a linux filesystem on a hard drive, run fsck on the filesystem first. Then run hardware diagnostics (smartctl) on the drive itself.

If it is NTFS, boot into windows to clean it up.

If it is an SSD, run some diagnostics (start with smartctl) on the SSD and be prepared to replace it.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron