LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to check JFS disks (fsck.jfs) at every boots using tune2fs like tool? (http://www.linuxquestions.org/questions/linux-general-1/how-to-check-jfs-disks-fsck-jfs-at-every-boots-using-tune2fs-like-tool-807987/)

frenchn00b 05-15-2010 06:31 AM

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?

H_TeXMeX_H 05-16-2010 05:23 AM

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.

frenchn00b 05-16-2010 05:47 AM

Quote:

Originally Posted by H_TeXMeX_H (Post 3970339)
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.

H_TeXMeX_H 05-16-2010 08:33 AM

What distro is this ? I mean on Slackware it is run on every boot, or whenever it shutdown improperly.

JZL240I-U 05-21-2010 07:43 AM

Try "shutdown -h -F now" that'll force a check on the next reboot.

frenchn00b 05-21-2010 12:49 PM

Quote:

Originally Posted by H_TeXMeX_H (Post 3970431)
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


All times are GMT -5. The time now is 11:11 AM.