Yeah, personally I have never run boot-repair. I'm just reporting the issue.
Originally Posted by oldfred
I guess the person running it missed the warning (?) not to run it when not on a live CD. (Again I'm not sure whether there is such a warning).
Or maybe boot-repair could just enforce that since it's pretty simple to check whether you're running on a CD/USB.
Edit: actually better still, since you can mount a partition from a live CD, it should just check whether the partition is mounted before allowing fsck. For a Wubi install it's a little more complicated to see if it's mounted, but not much:
Also, having the mountpoint of /host is also a clue that the Wubi install is running.
while read DEV MTPT FSTYPE OPTS REST; do
case "$DEV" in
loop_file=`losetup "$DEV" | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
if [ "$loop_file" = "$virtualdisk" ]; then
# run away
done < /proc/mounts