Page 1 of 1

rm -rf doesn't work in Ubuntu 10.04

Posted: 6. May 2010, 18:45
by ngagun
I am running Ubuntu 10.04 guest under Windows XP host.

I want to get rid of a folder full of files. So i type:

rm -rf foldername

and it hangs indefinitely... When I hit ctrl-C, it stops, and I find that the files in the folder have been deleted, but not the folder itself.

If I do this, it works:

rm foldername/*
rm -rf foldername

Weird, huh? Any ideas?

Re: rm -rf doesn't work in Ubuntu 10.04

Posted: 6. May 2010, 18:47
by dmcgraw
This definitely sounds like an Ubuntu problem and not a VB problem.

Re: rm -rf doesn't work in Ubuntu 10.04

Posted: 6. May 2010, 18:52
by ngagun
Oh and one more thing. This happens on a share drive that I have mounted. It doesn't happen if the folder is in the virtual hard drive (e.g. home ~).

Re: rm -rf doesn't work in Ubuntu 10.04

Posted: 6. May 2010, 18:53
by ngagun
So I think it's a problem related to the share, i.e. it's (in part) a VirtualBox problem.

Re: rm -rf doesn't work in Ubuntu 10.04

Posted: 6. May 2010, 18:55
by ngagun
By the way, the mount command is issued in /etc/rc.local as follows:

mount -t vboxsf g /mnt/g

where g is the name of the share in VirtualBox.