How to get the freedom to skip the forced disk check?

Hi all,

After each 27 reboot, my file system is being scanned for errors, there is no options to skip it and this is driving me mad when I am in a rush. I consider it as a lack of respect as I want to stay in control of what my computer does.

I searched the Web but I didn’t find much. Does anyone can help, or point me out any documentation that could help me to change this configuration?

Many thanks in advance.

On 2011-09-25 14:26, JeromeQc wrote:
>
> Hi all,
>
> After each 27 reboot, my file system is being scanned for errors, there
> is no options to skip it and this is driving me mad when I am in a rush.
> I consider it as a lack of respect as I want to stay in control of what
> my computer does.

Don’t skip it.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Well, if I wouldn’t mind to be controlled by my computer I would be using Windows or Apple. I don’t agree with this philosophy and as I am stubborn, I want to figure out how to customize this option and share the solution with other users who want to stay in control of their computers.

Does anyone else know where this is done to customize this annoying behavior?

man fstab

.

Again a question without even telling what level of openSUSE you use. Sigh …

And as this has something to do with the file system, the type of file system migh also be interesting.

Now beacuse of lack of information, the following assumes that you have at least one ext3 file system and that your openSUSE level is high enough to not only support ext4, but also to use it by default. When that is the case, you could convert your ext3 file system(s) to ext4. The check is not there any more by default.

Like Carlos, I would not switch off the test on an ext3 system (it is possible, if you insist I will post the way how to). It wasn’t there for nothing in ext3 (and it is switched off for ext4 also because of applying reason).

JeromeQc wrote:

>
> Well, if I wouldn’t mind to be controlled by my computer I would be
> using Windows or Apple. I don’t agree with this philosophy and as I am
> stubborn, I want to figure out how to customize this option and share
> the solution with other users who want to stay in control of their
> computers.
>
> Does anyone else know where this is done to customize this annoying
> behavior?
>
>

I would concur with the previous poster that running fsck occasionally is a
Good Thing ™, but it’s your machine - look into ‘man tune2fs’ and you’ll
find what you’re looking for.

Sorry, If forgot to mention I am running 11.3 and my partitions are on ext3. I don’t remember why I picked ext3 over ext4 but I will simply switch to ext4. I just did my backups so I have nothing to loose. If it fails, it will be the occasion to switch on Debian earlier than I thought…

Many thanks!

I managed a Debian machine, now running openSUSE. It had checking on for all partitions, also forced on both a number of reboots and number of days.

Hello Knurpht,

In fact I have no problem with openSUSE and I think it is a very nice distribution but it is been a while I am planning to switch on Debian anyway. For now my configuration is still usable and I really enjoy it.

I would be surprised if there is no option to skip the disk check on Debian thought, this option is even available on Ubuntu…

Cheers!

Why don’t you read was is posted to you. The answer is allready given and it is completely independent of the distribution because it is dependent on the file system type. I repeat, read

man tune2fs

Henk, I read everything that was posted and I don’t understand what made you think I didn’t read.

I wanted to know how to be able to skip the check disk routine when desired, I never wanted to disable it. So unless I am an idiot who can’t read, I don’t see any tune2fs parameter to allow the user to skip this check. I rather think some boot script would have to be modified to allow the user to do so.

I remember on Ubuntu with ext3, when the system has to run a check disk I still had the option to skip it.

I will let you know if I find a solution to control the way tune2fs is executed.

On 09/25/2011 10:56 PM, JeromeQc wrote:
>
> I wanted to know how to be able to skip the check disk routine when
> desired, I never wanted to disable it.

oh!! you want there to be a switch presented at the time the check is
supposed to begin, and it give you the chance to say “Not now, later.”
right?

i really didn’t realize that was your question…hey, pretty cool the
way some of the other distros do it…

no that does not exist on openSUSE…instead the boot script checks,
and if its ‘sees’ that it is set to check at a certain whatever (you
said 27 boots, i didn’t know it was set to that as default…my 10.3 was
set to 60 days)…and, if the conditions set are met then it just
begins…i guess the person who pushes the boot button in the morning
and wanders off to make coffee, visit the necessary room, and come back
15 minutes later might not like it that the machine has been doing
nothing waiting for the decision to check or not…

but you can have what you wish, just change the boot script to your
needs…i’d guess you could strip the gold out of the Debian script…

or, you could disable it and run the as often as you wish, when you are
in the mood…

OR, you could count the boots and when you have (say) 20 then do it
soon, when you have time…

or, use a distro that gives you everything you want…

or…


DD
Caveat
openSUSE®, the “German Automobiles” of operating systems

On 2011-09-25 22:56, JeromeQc wrote:
> I wanted to know how to be able to skip the check disk routine when
> desired, I never wanted to disable it. So unless I am an idiot who can’t
> read, I don’t see any tune2fs parameter to allow the user to skip this
> check.

Not possible, unless somebody comes with a patch to the boot scripts that
postpones checking if requested.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

I fail to understand the problem here. fsck -A (started from boot.localfs) won’t check filesystems which have a fs_passno value of 0. So simply put a value of 0 in the sixth field of the line mounting the filesystem you don’t want to check in /etc/fstab. I didn’t say it’s wise though. You would normally also put 0 in the fifth field (fs_freq). Excluding filesystems from checking makes sense when you have many filesystems that you will regularly mount and check under other distros (or releases) but don’t want to check systematically in the booting system, especially if you don’t mount them automatically.

I am sorry if I did not understand your question as you thought I should have understood it. My comfort is that I was not the only one (as you can read above).

But you failed to tell us why GeoBatltz suggestion to use tune2fs failed to meet your needs. Thus my conclusion that you did not study that man page.

Also telling “I remember on Ubuntu with ext3, when the system has to run a check disk I still had the option to skip it” is very vague. You better refresh then your memory and tell exactly what happened there, where you got the change to skip (in the boot screen, otherwise?) so we get an idea what you are after. Or are you only seeking advice from people that have Ubuntu knowledge?

I know the screen he means. He’s referring to this. It’s an option at the boot screen to abort the disk check with the ESC key. (I should have looked for a web page with a screenshot, but that was really the OP’s job. :slight_smile:

How to Change The Periodic Disk Check in Ubuntu (fsck) ~ Web Upd8: Ubuntu / Linux blog

As Carlos notes, the boot scripts would have to be modified to watch for an ESC keypress.

… but that was really the OP’s job.

Exactly. The only thing that is even worse in this type of “explanations” is: “… like on Windows …”. >:)