Reputation: 23062
I tried to create a directory /data
as a mount point but that failed for other reasons, now I've got a weird file/data thing in my root directory that just won't die:
user@PC:~$ sudo ls /data
ls: cannot access /data: Transport endpoint is not connected
user@PC:~$ sudo rm -rf /data
rm: cannot remove ‘/data’: Is a directory
I initially created it using mkdir
but if I browse to the file in ubuntu it looks like a file in the file browser. How do I get rid of this thing?
Upvotes: 1
Views: 300
Reputation: 404
First try unmounting then you should be able to delete it.
Then if that fails, and this is going to sound like a Windows solution but it might work, try rebooting and doing unmount/remount delete again.
Upvotes: 1