Help! Deleting directory under root?

cns5p

New Member


Messages: 14

#1
Forgive me as I am inexperienced with using freebsd. I accidentally created a director called "restore" in the root directory and now I want to delete the directory. I try to cd to the directory but it says "not found/" Any ideas?
 
OP
OP
C

cns5p

New Member


Messages: 14

#3
Thanks for the quick response? Why can I not cd to the directory to see whats in there before deleting it?
 

cy@

Member
Developer

Thanks: 2
Messages: 21

#9
If you're logged in as root and still cannot delete the directory, assuming the filesystem is mounted rw and securelevel is set to -1, you might have some filesystem corruption that is prohibiting you from deleting the directory. I haven't seen this on a FreeBSD system before however I've had to deal with this many times on Solaris systems. In those cases the system ran nicely however at reboot the filesystem in question was so badly corrupted it required a newfs and restore from backup.
 
Top