Mads,
On 2010-09-27 22:59, Mads Kiilerich wrote:
>> I get:
>>
>> loop: can't delete device /dev/loop0: Device or resource busy
>
> Yes, you won't be able to delete the loop device until after you've
> successfully umounted, because the install root is mounted via the
> loopback device. When you've managed to umount everything, the losetup
> -d should succeed.
I usually use
for x in $(cat /proc/mounts |grep ' /var/tmp/.'|cut -d' ' -f2|tac); do
umount $x; done
for l in $(losetup -a|cut -d: -f1); do losetup -d $l; done
It will fail for mounts and loppbacks still in use, but running it twice
usually resolves all the dependency chains I have.
Perfect! - many thanks!
(There was a similar issue also involving crypt/dm chains when
shutting
down the live os. See
https://bugzilla.redhat.com/show_bug.cgi?id=519155
- I'm not sure if that still is an issue.)
Will keep it mind . . just in case . .
Regards,
Phil.
--
Philip Rhoades
GPO Box 3411
Sydney NSW 2001
Australia
E-mail: phil(a)pricom.com.au