LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-15-2010, 05:31 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
How to check JFS disks (fsck.jfs) at every boots using tune2fs like tool?


Hello,

Fstab has at the end some values: 0 1 for / or 0 2 for /home or others.

It is nice to set tune2fs -c 2 for disks that have to be reliable and increase the security of the data.

tune2fs is not working for JFS. How to make this check at every single boot of the Debian/ubuntu machine?
 
Old 05-16-2010, 04:23 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
tune2fs is only for ext* filesystems. What exactly do you want to do, I think making 'fsck' run on every boot will do what you want. If not, be more explicit about what you need to do and why.
 
Old 05-16-2010, 04:47 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by H_TeXMeX_H View Post
tune2fs is only for ext* filesystems. What exactly do you want to do, I think making 'fsck' run on every boot will do what you want. If not, be more explicit about what you need to do and why.
Usually for the EXT3 I was using
Code:
tune2fs -c 2
Anyhow this resulted in corrupted disks / FS, and I lost lot of data. Maybe I shall buy a better stabilized power supply.

I have set all disks with tune2fs -c 2 and the disks with JFS (which is more stable than ext) has no way to be set to be checked at every single boot.

I boot once or twice a week, and I hope this can fix and cure all bad clusters from the disks. Still for JFS there is nothing done. I hoped that all lost clusters are fixed, and disks clean most of the time, and ultimately that the data never lost. But although this tune2fs -c experience proved that EXT are very fragile, i.e. not within the data but at the beginning of the disk. A deeper check of all disks, JFS & ext, at every single boot would be the aim.
 
Old 05-16-2010, 07:33 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
What distro is this ? I mean on Slackware it is run on every boot, or whenever it shutdown improperly.
 
Old 05-21-2010, 06:43 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Try "shutdown -h -F now" that'll force a check on the next reboot.
 
Old 05-21-2010, 11:49 AM   #6
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by H_TeXMeX_H View Post
What distro is this ? I mean on Slackware it is run on every boot, or whenever it shutdown improperly.
It is debian testing. at boot I see many lines moving, and it seems it does look some harddisks a bit. But I am sure it is not a big deep seeking. It shall fix the disks better cuz it lasts 1-2 secs
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Complaint: no fsck.jfs when booting slackware64 13.0 as live DVD, why ? H_TeXMeX_H Slackware 5 03-07-2010 07:48 AM
[SOLVED] Root file sys check on JFS during boot fails with e2fsck message catkin Slackware 2 02-21-2010 05:29 AM
FSCK and JFS problem beno1990 Linux - Server 2 10-20-2009 10:24 AM
JFS filesystem parisa_kian Fedora 4 02-01-2009 05:49 AM
JFS Filesystem, boot fs check fails. Romanus81 Slackware 3 10-14-2008 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:41 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
Open Source Consulting | Domain Registration