On Tuesday 25 April 2006 06:24, Mike McMullin wrote:
On Mon, 2006-04-24 at 13:08 -0400, Carl Hartung wrote:
On Monday 24 April 2006 06:45, Leendert Meyer wrote:
Don't forget to use the -d option when umounting a loop-mounted file:
umount -d /mountpoint
Otherwise you will keep using loop devices until you run out of them. ;)
Thanks for the heads-up, Leen.
perhaps this quick script then?
umount -d /mnt/mountiso mount -o loop $1.iso /mnt/mountiso
Uhh, yes, this is possible. How about this: #! /bin/bash # use /mnt/mountiso as default: d="${2-/mnt/mountiso}" mount -o loop $1 $d # umount when the script exits: trap "umount -d $d" EXIT konqueror $d With konqueror running in the foreground, the scripts waits until you close konqueror and then umounts. ;) Cheers, Leen