Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error: Directory not empty, while trying to remove a directory after killing copy operation running on it.

14 views
Skip to first unread message

sajuptpm

unread,
Mar 21, 2012, 7:26:26 AM3/21/12
to
Error: Directory not empty, while trying to remove a directory after
killing copy operation running on it.

1)
# ps -aux | grep dd
root 5727 17.8 0.2 109336 4748 ? Ss 16:42 0:01 dd
if=/dev/vg_block/block_vm_3gb.disk.xm bs=4096k of=/mnt/share/IMG_e15/
disk1.xm

2)
# kill -9 5727

3)
# ps -aux | grep dd
root 5727 13.4 0.2 109336 4732 ? Rs 16:42 0:03 dd
if=/dev/vg_block/block_vm_3gb.disk.xm bs=4096k of=/mnt/share/IMG_e15/
disk1.xm

4)
# rm -rf /mnt/share/IMG_e15
rm: cannot remove `/mnt/share/IMG_e15': Directory not empty

4a)
In separate terminal
$ ps -aux | grep dd
root 5727 28.9 0.0 0 0 ? Ds 16:42 0:14 [dd]

5)
# rm -rf /mnt/share/IMG_e15

sajuptpm

unread,
Mar 21, 2012, 7:35:15 AM3/21/12
to
i want to delete a directory after killing copy operation running on
it, note: directory location is in /mnt/share (NFS)

DennisW

unread,
Mar 21, 2012, 9:24:06 PM3/21/12
to
On Mar 21, 5:35 am, sajuptpm <sajup...@gmail.com> wrote:
> i want to delete a directory after killing copy operation running on
> it,  note: directory location is in /mnt/share (NFS)

_*Never*_ use kill -9 as a first resort. Only as a _*last resort*_
should kill -9 be used. _*Ever*_

Your problem is not a Bash problem. You need to ask on an OS list or
an NFS list.
0 new messages