Running fsck before mounting removable media

Andrey Borzenkov arvidjaar at mail.ru
Sat Apr 28 10:28:15 PDT 2007


On Sunday 22 April 2007, Danny Kukawka wrote:
> On Sonntag, 22. April 2007, kitts wrote:
> > I use a USB hard drive to backup my system. Everyonce in a while i have
> > to run fsck on its 2 partitions for reliability.
> >
> > Instead, i would like fsck to be run automatically everytime i plug it
> > in. If the filesystem needs a check it will be done. I see no harm in
> > running it by default on all mounts.
>
> No, it isn't a good idea to run a fsck check on every plugin time. 

But it is a good idea to check if filesystem was unmounted cleanly and warn 
user if it is dirty. Then user may decide to check or not to check. I am not 
sure if Linux has some standrd wy to do it, but other Unices do 
have "fsck -p" for that.

-andrey

> This is 
> in the most cases not needed and the most user don't like to get a fsck
> check every time they plugin their USB harddisk or USB-stick, at least not
> if you have a big disk and a journaling filesystem. If you always umount
> the partition correctly there is no need to run always fsck.
>
> Danny
>
>
> _______________________________________________
> hal mailing list
> hal at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/hal


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070428/69022697/attachment.pgp


More information about the hal mailing list