Re: How to set 'e2fsck' to run at boot?

2000-01-09 Thread Jim B
Apologies if this has already been answered.  I just subscribed so I may
have missed it if so.

Anyways, you can create a file in / named "forcefsck" if you really want
to do this:

touch /forcefsck


See /etc/rcS.d/S30checkfs.sh to see why.  :)


Re: How to set 'e2fsck' to run at boot?

2000-01-08 Thread Nathan E Norman
On Sat, 8 Jan 2000, Wayne Topa wrote:

[ snip ]

 : Quoting Nathan E Norman([EMAIL PROTECTED]):
 : >| On Fri, 7 Jan 2000, Wayne Topa wrote:
 : >| 
 : >|  : run man fstab.  Then search for fs_passno.
 : >|  : 
 : >|  : You have to set the 6th field of fstab to 1 for the root fs and 2 for
 : >|  : the others.
 : >| 
 : >| This still doesn't force a fsck run if the filesystem is marked "clean"
 : >| on shutdown.
 : 
 : I don't want my system to waste time in checking a 'clean' fs.
 : Why would you want to do that every time you boot?  My system only runs
 : fstab on bootup if the FS _isn't_ clean.

Gee, really?  Gosh, that's amazing.

I don't want my system to waste time either - I'm just answering the
original quesiton.

 : I don't have the original post so can't check on what he said before.

Well then , I'll ignore your comments :)  The original question was, as
I recall, "How do I force fsck on boot?"

--
Nathan Norman
MidcoNet  410 South Phillips Avenue  Sioux Falls, SD
mailto:[EMAIL PROTECTED]   http://www.midco.net
finger [EMAIL PROTECTED] for PGP Key: (0xA33B86E9)



Re: How to set 'e2fsck' to run at boot?

2000-01-08 Thread Colin Marquardt
* Francois Deppierraz <[EMAIL PROTECTED]> writes:

> Brad <[EMAIL PROTECTED]> wrote:
>> Actually, the last field should be one only for the root partition. Any
>> other partitions you want fscked on boot should have a 2 there instead.
>> Partitions that should never be fscked should have a 0.

> Why does the last field depends on the partition type ?

> Man fstab say nothing about that.

It does:

   The  sixth field, (fs_passno), is used by the fsck(8) pro­
   gram to determine the order in which filesystem checks are
   done at reboot time.  The root filesystem should be speci­
   fied with a fs_passno of 1, and other  filesystems  should
   have a fs_passno of 2.  Filesystems within a drive will be

Notice "the order"? I guess it's because if the root (which holds
/sbin) is corrupted, then fsck could screw the other partitions if
fsck itself is screwed.


Re: How to set 'e2fsck' to run at boot?

2000-01-08 Thread Konrad Mierendorff
Mihaly Gyulai wrote:
> Q. How can I set 'e2fsck' to run, whenever I want ?

Umount the filesystem you want to check and run e2fsck. If you cannot
umount the filesystem because some important program uses it change to
runlevel 1:

# init 1

After that you should be able to umount the filesystem, don't be afraid
to umount the root-filesystem, you *won't crash* your system as an
"umount /" puts the root-filesystem into read-only mode. You can check
that if you do a "cat /proc/mounts".

It is _save_ to repair the filesystem when it is mounted read-only.

When you did the checks be carefull to remount the root partition:

# mount -o remount,rw /

Then change the runlevel again:

# init 2

If you follow this procedure you don't have to reboot _at_all_!

Hope it helps...

- Konrad Mierendorff


Re: How to set 'e2fsck' to run at boot?

2000-01-08 Thread Wayne Topa

Subject: Re: How to set 'e2fsck' to run at boot?
Date: Fri, Jan 07, 2000 at 11:12:25PM -0600

In reply to:Nathan E Norman

Quoting Nathan E Norman([EMAIL PROTECTED]):
>| On Fri, 7 Jan 2000, Wayne Topa wrote:
>| 
>|  : run man fstab.  Then search for fs_passno.
>|  : 
>|  : You have to set the 6th field of fstab to 1 for the root fs and 2 for
>|  : the others.
>| 
>| This still doesn't force a fsck run if the filesystem is marked "clean"
>| on shutdown.

I don't want my system to waste time in checking a 'clean' fs.
Why would you want to do that every time you boot?  My system only runs
fstab on bootup if the FS _isn't_ clean.

I don't have the original post so can't check on what he said before.

It seemed to me that he did not have anything in the fs_passno field
and that, on bootup, his filsystems were not being checked 'and that
they did have errors in them'.  Nothing in the fs_passno field would
cause that.

That is all I could gleam from the mount and fstab man pages.
-- 
Ever notice how fast Windows runs? Neither did I...
___


Re: How to set 'e2fsck' to run at boot?

2000-01-08 Thread Francois Deppierraz
Brad <[EMAIL PROTECTED]> wrote:

> Actually, the last field should be one only for the root partition. Any
> other partitions you want fscked on boot should have a 2 there instead.
> Partitions that should never be fscked should have a 0.

Why does the last field depends on the partition type ?

Man fstab say nothing about that.

-- 

Francois Deppierraz  student
http://www.ctrlaltdel.ch
ICQ: 176 770 09


Re: How to set 'e2fsck' to run at boot?

2000-01-08 Thread Brad
On Fri, Jan 07, 2000 at 11:58:28AM +, Francois Deppierraz wrote:
> 
> Ton run e2fsck on a partition at boot the last field in /etc/fstab must
> be a 1.
> 
> /dev/hdb5   /   ext2   defaults,errors=remount-ro   0   1
>   ^^

Actually, the last field should be one only for the root partition. Any
other partitions you want fscked on boot should have a 2 there instead.
Partitions that should never be fscked should have a 0.

man fstab for more info.


-- 
  finger for GPG public key.
  8 Jan 2000 - Old email addresses removed from key, new added


pgpdlcxWjxn2S.pgp
Description: PGP signature


Re: How to set 'e2fsck' to run at boot?

2000-01-08 Thread Nathan E Norman
On Fri, 7 Jan 2000, Wayne Topa wrote:

 : run man fstab.  Then search for fs_passno.
 : 
 : You have to set the 6th field of fstab to 1 for the root fs and 2 for
 : the others.

This still doesn't force a fsck run if the filesystem is marked "clean"
on shutdown.

--
Nathan Norman
MidcoNet  410 South Phillips Avenue  Sioux Falls, SD
mailto:[EMAIL PROTECTED]   http://www.midco.net
finger [EMAIL PROTECTED] for PGP Key: (0xA33B86E9)



Re: How to set 'e2fsck' to run at boot?

2000-01-08 Thread Nathan E Norman
On Fri, 7 Jan 2000, Mihaly Gyulai wrote:

 : On Thu, 6 Jan 2000 16:40:56Nico De Ranter wrote:
 : 
 : >> At boot, there is a message about 'running e2fsck is recommended'
 : >> because the mounting of partitions happened too many times.
 : >> How can I set to run 'e2fsck' after a given number of days ?
 : 
 : >Normaly the filesystem will automaticaly be checked after a number
 : >of mounts. You shouldn't do anything yourself.  You'll notice
 : >when he starts checking the filesystem, it will take ages to boot :-)
 : 
 : The problem is: I did not notice the expected 'e2fsck' running,
 : however it should run (since 3 months). And there is the warning
 : message that fsck is needed.
 : 
 : Q. How can I set 'e2fsck' to run, whenever I want ?
 : 
 : (I know that one should not run fsck on a mounted partition,
 : so it's not that easy to run it...)

You can always force fsck on reboot by using "-F" as an argument to
`shutdown' e.g

  shutdown -F -r now # reboot and force fsck on all filesystems with
 # flag "auto" in /etc/fstab ("defaults" implies
 # "auto").

HTH,

--
Nathan Norman
MidcoNet  410 South Phillips Avenue  Sioux Falls, SD
mailto:[EMAIL PROTECTED]   http://www.midco.net
finger [EMAIL PROTECTED] for PGP Key: (0xA33B86E9)



Re: How to set 'e2fsck' to run at boot?

2000-01-07 Thread Wayne Topa

Subject: Re: How to set 'e2fsck' to run at boot?
Date: Fri, Jan 07, 2000 at 03:28:45AM -0800

In reply to:Mihaly Gyulai

Quoting Mihaly Gyulai([EMAIL PROTECTED]):
>| On Thu, 6 Jan 2000 15:31:04Martin Fluch wrote:
>| 
>| >> At boot, there is a message about 'running e2fsck is recommended'
>| >> because the mounting of partitions happened too many times.
>| 
>| >Usualy e2fsck should automaticaly be run on demand at boottime. Do you use
>| >the -f option (skip fsck on reboot) when executing the shutdown command?
>| 
>| No, I did not use the 'skip fsck at boot' option for shutdown.
>| 
>| I use this config for more than 3 months, and there was no
>| fsck running since then.
>| 
>| What can I do to set 'e2fsck' run at boot ?

run man fstab.  Then search for fs_passno.

You have to set the 6th field of fstab to 1 for the root fs and 2 for
the others.

HTH
-- 
Basic, n.:
A programming language.  Related to certain social diseases in
that those who have it will not admit it in polite company.
___


Re: How to set 'e2fsck' to run at boot?

2000-01-07 Thread Henrique M Holschuh
On Fri, 07 Jan 2000, Mihaly Gyulai wrote:
> Q. How can I set 'e2fsck' to run, whenever I want ?

umount the partition, and fsck it. If it's your root partition, or /var
(which has this nagging tendency to not be unmountable due to being busy)
then the safest way I know requires a reboot, and requires that your "fsck
on boot" works (which right now it doesn't, according to you).

You _could_ try running fsck in a read-only partition, in check-only mode
(no repair). But that won't help much, I think.

You could always get one of those linux-in-one-floppy distros, boot from it,
and use its fsck. Do be careful, ext2 from kernels 2.0.x may not handle ext2
partitions created under 2.2.x... and most linux-in-one-floppy use 2.0.3x
kernels.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh 


Re: How to set 'e2fsck' to run at boot?

2000-01-07 Thread Francois Deppierraz
Mihaly Gyulai <[EMAIL PROTECTED]> wrote:

> At boot, there is a message about 'running e2fsck is recommended'
> because the mounting of partitions happened too many times.

> How can I set to run 'e2fsck' after a given number of days ?

Ton run e2fsck on a partition at boot the last field in /etc/fstab must
be a 1.

/dev/hdb5   /   ext2   defaults,errors=remount-ro   0   1
  ^^
-- 

Francois Deppierraz  student
http://www.ctrlaltdel.ch
ICQ: 176 770 09


Re: How to set 'e2fsck' to run at boot?

2000-01-07 Thread Henrique M Holschuh
On Fri, 07 Jan 2000, Mihaly Gyulai wrote:
> On Thu, 6 Jan 2000 15:31:04Martin Fluch wrote:
> >> At boot, there is a message about 'running e2fsck is recommended'
> >Usualy e2fsck should automaticaly be run on demand at boottime. Do you use
> I use this config for more than 3 months, and there was no
> fsck running since then.

As long as you're using Debian (potato?) and have the e2fsprogs package
installed (it's a required package, and should never be removed unless you
know VERY well what you're doing), and have not screwed up with /etc/init.d
and /etc/rc*.d, it should do the fsck on bootup.

Try "apt-get remove e2fsprogs && apt-get install e2fsprogs" if you want to
make sure the package is in there, and correctly installed. But do be
careful, if this screws up, you will lose all the userland suport for ext2.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh 


Re: How to set 'e2fsck' to run at boot?

2000-01-07 Thread Mihaly Gyulai
On Thu, 6 Jan 2000 16:40:56Nico De Ranter wrote:

>> At boot, there is a message about 'running e2fsck is recommended'
>> because the mounting of partitions happened too many times.
>> How can I set to run 'e2fsck' after a given number of days ?

>Normaly the filesystem will automaticaly be checked after a number
>of mounts. You shouldn't do anything yourself.  You'll notice
>when he starts checking the filesystem, it will take ages to boot :-)

The problem is: I did not notice the expected 'e2fsck' running,
however it should run (since 3 months). And there is the warning
message that fsck is needed.

Q. How can I set 'e2fsck' to run, whenever I want ?

(I know that one should not run fsck on a mounted partition,
so it's not that easy to run it...)

Mihaly Gyulai


--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.


Re: How to set 'e2fsck' to run at boot?

2000-01-07 Thread Mihaly Gyulai
On Thu, 6 Jan 2000 15:31:04Martin Fluch wrote:

>> At boot, there is a message about 'running e2fsck is recommended'
>> because the mounting of partitions happened too many times.

>Usualy e2fsck should automaticaly be run on demand at boottime. Do you use
>the -f option (skip fsck on reboot) when executing the shutdown command?

No, I did not use the 'skip fsck at boot' option for shutdown.

I use this config for more than 3 months, and there was no
fsck running since then.

What can I do to set 'e2fsck' run at boot ?

Mihaly Gyulai


--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.


Re: How to set 'e2fsck' to run at boot?

2000-01-07 Thread aphro
is that message you get in debian? on my debian machines e2fsck will
*automatically* run when they have been mounted too many times..it will
say something like

/dev/sda1 exceeded maximum mount count check forced..

nate

On Thu, 6 Jan 2000, Mihaly Gyulai wrote:

gyulai >I am a newbie to Debian, I've used RedHat 5 for 2 yrs.
gyulai >
gyulai >At boot, there is a message about 'running e2fsck is recommended'
gyulai >because the mounting of partitions happened too many times.
gyulai >
gyulai >How can I set to run 'e2fsck' after a given number of days ?
gyulai >
gyulai >Mihaly Gyulai
gyulai >
gyulai >
gyulai >--== Sent via Deja.com http://www.deja.com/ ==--
gyulai >Share what you know. Learn what you don't.
gyulai >
gyulai >
gyulai >-- 
gyulai >Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
gyulai >

[mailto:[EMAIL PROTECTED] ]--
   Vice President Network Operations   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--
4:51pm up 140 days, 4:49, 3 users, load average: 1.71, 1.60, 1.54


Re: How to set 'e2fsck' to run at boot?

2000-01-06 Thread Martin Fluch
On Thu, 6 Jan 2000, Mihaly Gyulai wrote:

> I am a newbie to Debian, I've used RedHat 5 for 2 yrs.
> 
> At boot, there is a message about 'running e2fsck is recommended'
> because the mounting of partitions happened too many times.
> 
> How can I set to run 'e2fsck' after a given number of days ?

Usualy e2fsck should automaticaly be run on demand at boottime. Do you use
the -f option (skip fsck on reboot) when executing the shutdown command?

Martin

-- 
Where do you want to go today? - As far from Redmond as possible!

For public PGP-key: finger [EMAIL PROTECTED]


How to set 'e2fsck' to run at boot?

2000-01-06 Thread Mihaly Gyulai
I am a newbie to Debian, I've used RedHat 5 for 2 yrs.

At boot, there is a message about 'running e2fsck is recommended'
because the mounting of partitions happened too many times.

How can I set to run 'e2fsck' after a given number of days ?

Mihaly Gyulai


--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.