How to clean files and blocks in /dev/sda1

Asked by MadhuSoodanan

One-line error code appears just before the log-in screen appears

madhu@madhu-desktop:~$ lsb_release -a; uname -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
Linux madhu-desktop 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:34:49 UTC 2016 i686 i686 i686 GNU/Linux
madhu@madhu-desktop:~$

------------------------------------------------------------------------------------------

I tried

madhu@madhu-desktop:~$ sudo badblocks -sv /dev/sda
[sudo] password for madhu:
Checking blocks 0 to 625131863
Checking for bad blocks (read-only test): 0.00% done, 0:00 elapsed. (0/0/0 err 40.37% done, 33:1 40.39% 40.83% done, 33:42 elapsed. (0/0/0 errors 42.87% done, 42.91% done, 35 42.93% done, 35:33 elap 43.01% done, 35:37 elapsed. (0/0/0 er 43.05% done, 35:39 elapsed. 43.08% done, 35:41 elapsed. (0/0/0 43.done
Pass completed, 0 bad blocks found. (0/0/0 errors)

Some long numbers appear for 2 seconds each time I boot. But there is something wrong with sda1

So I Tried sudo badblocks -sv /dev/sda1 ................ But no errors

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu terminal Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
MadhuSoodanan (mt-madhu) said :
#2

Terminal Can't detect it. But Just before log in & after clicking 'Shut down' the message appears.

/dev/sda1: clean, 236680/38944768 files, 12412333/155760896 blocks

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

Newer Ubuntu release do a quick partition health check on every boot.

If you see a message like
/dev/sda1: clean, 236680/38944768 files, 12412333/155760896 blocks
during the boot process, then this is an indication that the root file system is in a clean state.

This is perfectly normal.

Revision history for this message
MadhuSoodanan (mt-madhu) said :
#5

OK. But what should I do with the blocks? Is it about partition? That part also is perfect?

Revision history for this message
MadhuSoodanan (mt-madhu) said :
#6

Thanks Manfred Hampl, that solved my question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

It seems that you misinterpret the message.

/dev/sda1: clean, 236680/38944768 files, 12412333/155760896 blocks

The filesystem on
__/dev/sda1__
is
__clean__
There are
__236680 files__
in the file system which can hold
__38944768 files__
and
__12412333 blocks__
of the total capacity of
__155760896 blocks__
are occupied.

(No, you need not "clean" anything, and there is also nothing that "blocks" something. These are not verbs, but an adjective and a noun.)

Revision history for this message
MadhuSoodanan (mt-madhu) said :
#8

> These are not verbs, but an adjective and a noun.

Yes, That was my problem. I didn't notice the comma. Thanks you very much for your clarification :)

Revision history for this message
Redj Leroux (redjleroux) said :
#9

Thank you "Manfred Hampl (m-hampl)"
Just a statement:
This is how I like to learn, on Linux.
Since i installed (clean) 16.04 (may '16) and then Ubuntu-Studio 16.04.1 (dec '16) I saw this text line on black screen -on two diff machines- (never got time to write it on paper...), I was always wondering what it meant, in reality, But since everything worked always fine only tonight I took the time to search about it.
There is now .05% of my sleep gained!
Thank you!