Unable to remove directory

JosephK joseph at oxtedonline.net
Sat Apr 12 20:43:25 UTC 2008


On 20:08 Sat 12 Apr     , Markus Schönhaber wrote:
> JosephK wrote:
> 
> > On 18:57 Sat 12 Apr     , Markus Schönhaber wrote:
> 
> >> Did you try
> >> rmdir /mnt/music/mp3s/Bj*
> >> ?
> > 
> > Cannot even delete the containing directory. This is on a smb shared
> > folder on an xfs server. All files are backed up so I think I'll just
> > delete the share and reinstall it.
> 
> One thing that might work is deleting the dir without using it's name
> directly but by using it's inode number. I. e. do something like
> ls -i /mnt/music/mp3s/Bj*
> which should tell you the inode number of the dir. And then
> find /mnt/music/mp3s -inum <inode number shown by ls -i> -exec rmdir {} \;
> 
If it happens again I'll try that, thanks. For now I deleted the share
and recreated it and restored the backup. All back to normal now.

-- 
Regards, Joe




More information about the ubuntu-users mailing list