Can't delete files

Status
Not open for further replies.

peterh

Patron
Joined
Oct 19, 2011
Messages
315
looks like a scool problem.
Better start filling in the missing information : is it a local or netwok filesystem
what os, what filesystem, any acl involved, what permissions and possible links are involved etc.
any hiddencharacters in filenams immutable properties etc.
 

Ismael Duarte

Contributor
Joined
Jun 13, 2011
Messages
154
Thank you for your answer.
It's Freenas 8.0.4 Beta2.
I've root access to Freenas by SSH2. Don't understand why does not work.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Ismael,

Post the output of "df". You probably need to unmount the directory or some subdirectory first.
 

Ismael Duarte

Contributor
Joined
Jun 13, 2011
Messages
154
Here it is. Don't see anything about JD_chroot
[root@MyFreeNas] ~# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ufs/FreeNASs2a 948903 364858 508132 42% /
devfs 1 1 0 100% /dev
/dev/md0 4663 1903 2387 44% /etc
/dev/md1 823 2 756 0% /mnt
/dev/md2 152791 8896 131672 6% /var
/dev/ufs/FreeNASs4 20263 726 17916 4% /data
DISCO 1438862354 1238359519 200502834 86% /mnt/DISCO
DISCO/satelite 10485760 6496 10479264 0% /mnt/DISCO/satelite
[root@MyFreeNas] ~#
[root@MyFreeNas] ~#
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Hmm, you're right. Ok, well try this but be very careful because if you put the wrong path you could delete everything:

rm -rf /mnt/tank/JD_chroot

Make sure you specify the exact complete path to that folder. That command will forcefully delete every file and folder from JD_chroot and under it. It's *always* a good practice to put the complete path because if you only specify only the folder you may not be where you think you are and accidently delete the wrong stuff.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Hmmm.... Give this a try and then repeat the "rm -rf /mnt/DISCO/JD_chroot":

chflags -R noschg /mnt/DISCO/JD_chroot/*
 
Status
Not open for further replies.
Top