[solved]Run fsck mounted disk

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

[solved]Run fsck mounted disk

Postby Spinnifex » May 14th, '21, 16:03

Hello

How can I run fsck as told me here
Code: Select all
[    4.122842] FAT-fs (nvme0n1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.


Regards
Spinnifex
Last edited by Spinnifex on May 20th, '21, 21:46, edited 1 time in total.
Spinnifex
 
Posts: 141
Joined: Nov 25th, '19, 12:38
Location: Europe / Potsdam

Re: Run fsck mounted disk

Postby sturmvogel » May 14th, '21, 17:24

To run fsck you need to be root and the partitition you want to check have to be unmounted. If it is your data partition, unmount it and run fsck as root. If it is your root partition itself you want to check, you can't unmount it at a running session. You have to use a live media instead.
Spinnifex wrote: FAT-fs (nvme0n1p1):

According to this it's not your root partition. But only you know whats on there...

And fsck man page:
http://ftp.polarhome.com/service/man/?qf=FSCK&tf=2&of=Mageia&sf=8
sturmvogel
 
Posts: 740
Joined: Jul 30th, '12, 00:39

Re: Run fsck mounted disk

Postby Spinnifex » May 15th, '21, 15:33

Hello and thanks

It is the ESP partition.
I have read that
it is secure to run
Code: Select all
 fsck -n

To perform a read only look for errors.

Spinnifex
Spinnifex
 
Posts: 141
Joined: Nov 25th, '19, 12:38
Location: Europe / Potsdam

Re: Run fsck mounted disk

Postby doktor5000 » May 15th, '21, 18:59

It is safe to run, but will not provide dependable results and it will not fix anything, because it's a read-only run, fsck will also tell you that.
But if it's only the ESP partition it should be fine to unmount it and do a normal fsck run, then later mount it again.
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


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron