[Fedora-livecd-list] Interrupted livecd-creator leaves hungloopback mount
Elias Hunt
hunt at m2s.com
Tue May 15 20:16:23 UTC 2007
Andy,
I hit the same problems while testing against T4. I don't remember if I
performed a lazy unmount first or dumped the loop device. But
effectively you need to clear the loop device to tidy things up.
losetup -d /dev/loop0
If that alone doesn't allow you to unmount, or that fails with a mount
issue, try running unmount with the "-l" flag for lazy unmount. That
clears the mount from the mount tables without waiting on processes.
-Eli
-----Original Message-----
From: fedora-livecd-list-bounces at redhat.com
[mailto:fedora-livecd-list-bounces at redhat.com] On Behalf Of
asmith11 at cox.net
Sent: Thursday, May 10, 2007 12:35 PM
To: fedora-livecd-list at redhat.com
Subject: [Fedora-livecd-list] Interrupted livecd-creator leaves
hungloopback mount
Hi,
I've been using the livecd-creator with FC7-t3 and am mostly pretty
happy with the results. I have noticed one problem. If I try to CTRL-C
the livecd-creator during the RPM-installation step (which for my
current spin takes 10 minutes or so) I end up with a hung /dev/loop0
mount that I cannot umount. I find I have to reboot to clear the mount.
I'm working on a customized application DVD with many custom RPMs --
this means that frequently during the RPM installation phase of
livecd-creator I see an issue I want to address and I would rather not
wait for it to finish so I would like to be able to CTRL-C things right
there.
Here's an example of what I see after an interrupted livecd-creator
session and what I try to do to clear it (I modified livecd-creator to
use /repo/tmp rather than /var/tmp on my machine but that's the only
change):
[root at mca proc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda8 5.9G 4.3G 1.5G 75% /
tmpfs 1007M 0 1007M 0% /dev/shm
/dev/sda7 4.9G 2.2G 2.8G 45% /images
/dev/sda9 25G 6.9G 18G 29% /repo
/dev/loop0 3.4G 1.3G 2.1G 39%
/repo/tmp/livecd-creator-o_09S3/install_root
[root at mca proc]# umount /repo/tmp/livecd-creator-o_09S3/install_root
umount: /repo/tmp/livecd-creator-o_09S3/install_root: device is busy
umount: /repo/tmp/livecd-creator-o_09S3/install_root: device is busy
[root at mca proc]# lsof | grep
/repo/tmp/livecd-creator-o_09S3/install_root
[root at mca proc]# lsof | grep loop0
loop0 3445 root cwd DIR 8,8 4096 2
/
loop0 3445 root rtd DIR 8,8 4096 2
/
loop0 3445 root txt unknown
/proc/3445/exe
[root at mca proc]# ps auxww | grep 3445
root 3445 0.5 0.0 0 0 ? S< 16:05 0:04 [loop0]
root 5140 0.0 0.0 4000 704 pts/0 R+ 16:18 0:00 grep
3445
[root at mca proc]#
I'd appreciate any help or insight into how I can either umount the
/dev/loop0 mount or more cleanly interrupt the livecd-creator.
Thanks!
-Andy Smith
--
Fedora-livecd-list mailing list
Fedora-livecd-list at redhat.com
https://www.redhat.com/mailman/listinfo/fedora-livecd-list
More information about the Fedora-livecd-list
mailing list