else
ro_partition "$partition"
for type in $types; do
- if mount -o ro -t "$type" "$partition" "$tmpmnt" 2>/dev/null; then
+ if mountinfo=`mount -o ro -t "$type" "$partition" "$tmpmnt" 2>&1`; then
+ debug "mounted as $type filesystem"
mounted=1
break
+ else
+ debug "mounting $partition as $type failed: $mountinfo"
fi
done
fi
else
ro_partition "$partition"
for type in $types $delaytypes; do
- if mount -o ro -t "$type" "$partition" "$tmpmnt" 2>/dev/null; then
+ if mountinfo=`mount -o ro -t "$type" "$partition" "$tmpmnt" 2>&1`; then
debug "mounted as $type filesystem"
mounted=1
break
+ else
+ debug "mounting $partition as $type failed: $mountinfo"
fi
done
fi