rm -rf doesn't work in Ubuntu 10.04

Discussions about using Linux guests in VirtualBox.
Post Reply
ngagun
Posts: 4
Joined: 6. May 2010, 18:40
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04

rm -rf doesn't work in Ubuntu 10.04

Post 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?
dmcgraw
Volunteer
Posts: 808
Joined: 24. Jun 2008, 17:16
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Ubuntu 9.10
Location: St. Louis, MO, USA

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

Post by dmcgraw »

This definitely sounds like an Ubuntu problem and not a VB problem.
ngagun
Posts: 4
Joined: 6. May 2010, 18:40
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04

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

Post 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 ~).
ngagun
Posts: 4
Joined: 6. May 2010, 18:40
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04

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

Post by ngagun »

So I think it's a problem related to the share, i.e. it's (in part) a VirtualBox problem.
ngagun
Posts: 4
Joined: 6. May 2010, 18:40
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04

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

Post 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.
Post Reply