LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-26-2017, 12:19 PM   #1
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Rep: Reputation: Disabled
Disk check on every boot


Hi,

Using Debian 9. Problem is I see disk checks on every boot.

A progress bar goes from left to right and then it boots to

GUI.

Any ideas ?

I am using a Samsung SSD.
 
Old 08-26-2017, 02:39 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
man tune2fs

Presuming ext? filesystems, you can set how regularly it checks.
 
Old 08-26-2017, 05:23 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
or maybe there's a reason?

maybe the drive's slowly dying?
 
Old 08-26-2017, 07:36 PM   #4
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
The thing is my motherboard is slowly failing. The PC shuts down randomly. I have replaced the PSU but no improvement. I guess it is because of these frequent shutdowns a filesystem damage has occured.

Do you think if I zero fill the drive and then recreate the partition table this damage will go away ?
 
Old 08-26-2017, 07:44 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
No.
 
Old 08-26-2017, 07:59 PM   #6
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
How are you shutting down?
 
Old 08-26-2017, 08:09 PM   #7
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
How are you shutting down?
The random shutdowns I mentioned are not intentional the PC shuts down all by itself.

When shutting down deliberately I shutdown using Debian (OS).
 
Old 08-26-2017, 08:43 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Quote:
The PC shuts down randomly
This is likely what is triggering the disk checks. The system is checking file system journals to verify file system integrity.

The most common cause of random poweroffs is overheating. If you have not already done so, before you blame the motherboard, check that the ventilation slots and the CPU heat sink are free of dust and lint. These days, cans of compressed air for doing such a cleanup are readily available; I get mine from my local drug store.

Last edited by frankbell; 08-26-2017 at 08:44 PM.
 
Old 08-26-2017, 08:49 PM   #9
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
This is likely what is triggering the disk checks. The system is checking file system journals to verify file system integrity.
But the disk checks are occuring even when shutdown properly.

Quote:
Originally Posted by frankbell View Post
The most common cause of random poweroffs is overheating. If you have not already done so, before you blame the motherboard, check that the ventilation slots and the CPU heat sink are free of dust and lint. These days, cans of compressed air for doing such a cleanup are readily available; I get mine from my local drug store.
I use my PC case open

I have manually checked the CPU temp by touching the CPU heatsink. Its cold/normal.

Also I regurlary clean using a blower.

Last edited by hifi100; 08-26-2017 at 08:50 PM.
 
Old 08-26-2017, 09:10 PM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Cold heatsink means nothing, well, it may indicate there is poor thermal contact between CPU and heatsink. Have seen this before, poor quality thermal paste.
 
Old 08-27-2017, 04:25 AM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
As has been said, random shutdowns are likely heat related, occasionally software, not motherboard.

Repeated disk checks are adjustable - see post #2. Try each mounted partition in this line in the /dev/sd** format
Code:
sudo tune2fs -l <partition> |grep -e count -e interval
and post the results
 
Old 08-27-2017, 11:27 AM   #12
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
As has been said, random shutdowns are likely heat related, occasionally software, not motherboard.

Repeated disk checks are adjustable - see post #2. Try each mounted partition in this line in the /dev/sd** format
Code:
sudo tune2fs -l <partition> |grep -e count -e interval
and post the results

Code:
# tune2fs -l /dev/sda1 |grep -e count -e interval
Inode count:              1525920
Block count:              6103271
Reserved block count:     305163
Mount count:              1
Maximum mount count:      -1
Check interval:           0 (<none>)
Code:
# tune2fs -l /dev/sda2 |grep -e count -e interval
Inode count:              3276800
Block count:              13107200
Reserved block count:     131071
Mount count:              1
Maximum mount count:      -1
Check interval:           0 (<none>)
sda1 is the partition which is getting checked every boot.

Last edited by hifi100; 08-27-2017 at 01:18 PM.
 
Old 08-27-2017, 03:20 PM   #13
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
I'm unfamiliar what a mount count of '-1' means. This on each drive sets a sensible figure.
Code:
sudop tune2fs -c 60 -i 30 /dev/sda1
That would give 30 days or 60 mounts between checks. Adjust as you see fit. It's your box.
 
Old 08-28-2017, 02:44 AM   #14
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
I'm unfamiliar what a mount count of '-1' means. This on each drive sets a sensible figure.
Code:
sudop tune2fs -c 60 -i 30 /dev/sda1
That would give 30 days or 60 mounts between checks. Adjust as you see fit. It's your box.
Did

Code:
tune2fs -c 60 -i 30 /dev/sda1
as root but its still checking disk on every boot. Should I format and reinstall ?
 
Old 08-28-2017, 03:24 AM   #15
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
If it's still checking sda1 on bootup, then it's in the startup stuff. All systems check drives not cleanly unmounted. A check like
Code:
grep -rn fsck /etc/rc.d/*
might get you the details on your distro. Systemd works differently, and I'm not sure where to check there.
 
  


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
FSCK auto disk check on boot and read-only FS coffeecoffee Linux - Newbie 2 10-29-2009 05:05 PM
Check the disk on boot hraposo Ubuntu 1 10-23-2006 04:50 AM
Turning off disk check on boot paddyjoy Linux - Newbie 2 07-04-2006 07:12 PM
Windows wants to do a check disk if i boot to winXP from grub BFGeier Linux - Newbie 2 01-11-2006 02:20 AM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 02:10 AM

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

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