--- usr/share/initramfs-tools/scripts/casper.ori 2008-05-05 21:49:39.000000000 +0200 +++ usr/share/initramfs-tools/scripts/casper 2008-05-04 23:36:10.000000000 +0200 @@ -403,7 +403,10 @@ setup_unionfs() { fi fi - mount ${cowdevice} -t ${cow_fstype} -o rw,noatime,mode=755 /cow || panic "Can not mount $cowdevice on /cow" + log_warning_msg "Checking the casper-rw partition ${cowdevice}" + e2fsck -v -y ${cowdevice} || log_warning_msg "Not able to check the ${cowdevice} partition" + log_warning_msg "Mounting the casper-rw partition" + mount ${cowdevice} -t ${cow_fstype} -o rw,noatime /cow || panic "Can not mount $cowdevice on /cow" mount -t ${UNIONFS} -o noatime,dirs=/cow=rw:$rofsstring ${UNIONFS} "$rootmnt" || panic "${UNIONFS} mount failed"