double/erraneous fsck bug

sofar sofar at foo-projects.org
Thu Mar 2 18:02:38 UTC 2006


people who have NO systems setup for fsck-ing are hit with this bug. The
proper code is a lot simpler and I just committed this to moonbase:

sed 's/#.*$//g' /etc/fstab | awk '($6>0){print$6}' | sort -n

in any case, please confirm that the fix works for you by:

- waiting 10 minutes from now (until a new moonbase is available), and then
- lin moonbase
- lin e2fsprogs
- reboot

Auke


On Thu, 2 Mar 2006 17:43:51 +0000, sofar <sofar at foo-projects.org> wrote:
> 
> 
> On Thu, 2 Mar 2006 10:02:51 -0700, "Alex Hunsaker" <badalex at gmail.com>
> wrote:
>> On 3/2/06, Sebastian Kärgel <mailing at wodkahexe.de> wrote:
>>> On Thu, 2 Mar 2006 17:09:34 +0100
>>> samuel verstraete <samuel.verstraete at gmail.com> wrote:
>>>
>>> >
>>> > i might sometimes say very stupid things... and my bash skillz suck
>>> > monkeyballs but that specific thing i checked myself already... and
>>> > they are not listed twice ;)
>>> > gr,S.
>>> >
>>>
>>> Same problem here with /dev/hda1 and /dev/hda2
>>> You're not alone ;)
>> 
>> I fixed it with this patch
> 
> this patch below makes no sense, unless you have a line with a non-number
> in the fs_passno field.
> 
> Can you execute the code snipplet below and paste me the output? Also,
> please send me a FULL copy of your fstab
> 
> sed 's/#.*$//g' /etc/fstab | awk '{if($6>0){print$1,$6}}' | sort -n
> 
> 
> Auke
> 
>> 
>> --- mount.old   2006-03-02 10:01:24.000000000 -0700
>> +++ mount       2006-03-02 10:01:55.000000000 -0700
>> @@ -214,7 +214,7 @@ start()
>>                 fi
>> 
>>                 # check filesystems
>> -               FSCKLEVELS=$(sed 's/#.*$//g' /etc/fstab | tr -s
>> '[:blank:]' | awk '{print $6}' | sort -n | grep -v -w 0)
>> +               FSCKLEVELS=$(sed 's/#.*$//g' /etc/fstab | tr -s
>> '[:blank:]' | awk '{print $6}' | sort -n | grep -v -w 0 | egrep
>> '[0-9]+')
>>                 if [ -n "$FSCKLEVELS" ]; then
>>                         echo "Checking file systems:"
>>                         for FSCKLEVEL in $FSCKLEVELS; do
>> 
>>> _______________________________________________
>>> Lunar mailing list
>>> Lunar at lunar-linux.org
>>> http://foo-projects.org/mailman/listinfo/lunar
>>>
>> _______________________________________________
>> Lunar mailing list
>> Lunar at lunar-linux.org
>> http://foo-projects.org/mailman/listinfo/lunar
> 
> _______________________________________________
> Lunar mailing list
> Lunar at lunar-linux.org
> http://foo-projects.org/mailman/listinfo/lunar
> 



More information about the Lunar mailing list