file with no name -- cannot be deleted
rpowersau at gmail.com
rpowersau at gmail.com
Mon Nov 6 12:32:06 UTC 2006
On 11/6/06, Barry <barrynyc at gmail.com> wrote:
> I tried find with -inum -exec rm and received the error that the
> directory was not empty.
Can you cd into yyy?
If so try this once in there to list whata files are in the directory:
find . -inum 4232799 -exec ls {} \;
Then you can create a link to the inode:
find . -inum 4232799 -exec ln -s {} ./mylink \;
and delete the files in the directory:
rm -f ./mylink/*
Then the directory should be empty and you can delete it?
I hope? ;)
>
> It's a separate ext3 partition, so I unmounted it and ran fsck and am
> told it's clean. Wouldn't that be equivalent to running off the live
> cd?
>
> Barry
>
> On 11/6/06, ruscook <ruscook_oz at yahoo.com.au> wrote:
> > Could be a corrupted file system. You could try booting from the live
> > cd, and running fsck on the file system (not what type it is and what
> > dev/hdXX it's on before rebooting).
> >
> > Be prepared to wait a while. I had a file I could not delete on a 273GB
> > reiserfs system and fsck took 2 hrs to repair (stupid me left the fix
> > switch off and ended up having to run fsck twice!). This may not be a
> > bad option if you want to see what the utility thinks is wrong before
> > letting it touch the filesystem - just be prepared to wait!
> >
> > Russ
> >
> > Barry wrote:
> > > I have an annoying situation. I had a directory with a large number of
> > > files that I deleted with rm -rf, but one of the subdirectories was
> > > left with a file with no name -- seems to be an empty string. It looks
> > > like the inode for the directory and the inode for this file are one
> > > in the same.
> > >
> > > First, I call ls -li on the parent directory and see this
> > > $ ls -li
> > > 4232799 drwxr-xr-x 2 user user 16384 2006-11-05 17:31 yyy
> > >
> > > So it looks like it has stuff in it, but there is no name to the file within:
> > >
> > > $ ls -li yyy
> > > total 16
> > > 4232799 drwxr-xr-x 2 user user 16384 2006-11-05 17:31
> > >
> > > Of course I get:
> > > $ rm -rf yyy
> > > rm: cannot remove directory `yyy': Directory not empty
> > >
> > > and,
> > > $ rm yyy/*
> > > rm: cannot remove `yyy/': Is a directory
> > >
> > > and
> > > $ rmdir yyy/*
> > > rmdir: yyy/: Directory not empty
> > >
> > > Different utilities say different things:
> > >
> > > $ du -sh
> > > du: cannot access `yyy/': No such file or directory
> > > 16K yyy
> > >
> > > Can anyone suggest what might have happened and how can I delete this.
> > >
> > > Tia
> > >
> > >
> >
> > --
> > Kind Regards Russell
> > ==================
> > www.windsorcycles.com.au
> > bikes.no-ip.info
> > Linux user #369094
> > ==================
> >
> >
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
> >
> >
> >
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
Regards,
Russ
More information about the ubuntu-users
mailing list