Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
Re: [SLE] Mount ISO image using Konqueror
  • From: Mike McMullin <mwmcmlln@xxxxxxxx>
  • Date: Tue, 25 Apr 2006 11:15:25 -0400
  • Message-id: <1145978126.7513.3.camel@xxxxxxxxxxxxxx>
On Tue, 2006-04-25 at 16:45 +0200, Leendert Meyer wrote:
> 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. ;)

A much better solution, Leen. Thanks.


< Previous Next >