LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-10-2017, 03:07 AM   #1
Paolopd
Member
 
Registered: Mar 2010
Distribution: Debian Jessie/Xfce4
Posts: 46

Rep: Reputation: 0
File system error e2fsck


Hi there,
it happens for two times that my system crashed after rebooting the machine. The errors was done by fsck where it founds some error.
I have corrected the error by using this comand:
Code:
# fsck /dev/sdc1; echo $?
# fsck /dev/sdc6; echo $?
These commands have solve the problem, but the question is WHY do I get these errors?
Here images for:
http://i68.tinypic.com/2iqebkz.jpg
http://i66.tinypic.com/jv4paf.jpg
 
Old 07-10-2017, 04:05 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,079

Rep: Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104
You seem to know why you are getting the errors - the system crashed. Why is another question, but you provide no information. A better question is why is the system crashing? Normal in windows, not normal in linux.

Give the disks a good check after reading the e2fsck man page you can choose suitable options Ideally do it booted from an install cd or something other than the disk you're checking.

Then look into the crashes.
 
Old 07-10-2017, 05:03 PM   #3
Paolopd
Member
 
Registered: Mar 2010
Distribution: Debian Jessie/Xfce4
Posts: 46

Original Poster
Rep: Reputation: 0
Thank you for your answer.
The installation was done using a dvd image from Debian.org. The disk I am using is one SSD Samnsung 850 Evo 250Gb.
I am using this disk just few months only using Debian. That's all.
What I am thinking is that the iso image has been corrupted or the ssd disk is going to break down. Any other option I don't know.
 
Old 07-11-2017, 03:23 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,079

Rep: Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104
SSDs are fine. You might use some sensible mount options in /etc/fstab if you're worried about wear (funny word for something with no moving parts). Here's my ssd mount options
Code:
/dev/sda3        /                ext4        noatime,diratime,discard         	1   1
/dev/sda2        swap             swap        noatime,diratime,discard         	0   1
/dev/sda6	 /media/hd0	  ext4	      noatime,diratime,discard         	0   0
/dev/sda1	 /boot            auto        noatime,diratime,discard  	1   2
/dev/sda5        /home            ext4        noatime,diratime,discard         	1   2
/dev/sda7	 /mnt/virtual     ext4        noatime,diratime,discard,user     1   2
I stick to a standard format pattern: 1=boot; 2=swap; 3= / of main system; 4=extended partition(Yes, I'm still using fdisk);5=/home; then other stuff with a partition at the end of the disk (sda7 in this instance) for VMs.
 
Old 07-11-2017, 09:01 AM   #5
Paolopd
Member
 
Registered: Mar 2010
Distribution: Debian Jessie/Xfce4
Posts: 46

Original Poster
Rep: Reputation: 0
Thanks, here mine fstab as was set automatically by the system:
Code:
/               ext4    errors=remount-ro 0       1
/home           ext4    defaults          0       2
none            swap    sw                0       0
 
Old 07-11-2017, 11:06 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,079

Rep: Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104Reputation: 1104
I set those options because of wear concerns. The system accesses things every 5 seconds with an atime update, which gets in on an SSD. It's for setting access times. Relatime lengthens it to 15 seconds, noatime sacrifices timing accuracy for disk reliability. Diratime is similar, and I honestly forget what discard is about.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
is e2fsck change the file system attributes.? mpasha06 Linux - General 2 05-11-2017 12:49 AM
***** FILE SYSTEM WAS MODIFIED ***** on e2fsck -c (badblocks check) alpha01 Linux - Server 4 03-22-2012 05:35 PM
Manual file system fixing with e2fsck -- are my files permanently lost? the theorist Linux - Software 5 04-04-2007 01:18 AM
umount & e2fsck on root file system (/) windycity_linux Linux - Newbie 2 03-09-2007 03:30 AM
Running fsck (or e2fsck) on root file system... xbill311x Linux - Newbie 2 01-02-2006 10:54 PM

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

All times are GMT -5. The time now is 02:12 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration