public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Cannot remove empty directory: "cannot remove `APR-13-2011': Directory not empty"
@ 2011-08-05 20:05 Hilco Wijbenga
       [not found] ` <4E3C54C7.1060707@asyr.hopto.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Hilco Wijbenga @ 2011-08-05 20:05 UTC (permalink / raw
  To: Gentoo User

Hi all,

I use a USB key to transfer files between my printer/scanner and my
computer. This all works fine except that I am unable to delete empty
directories on the USB key.

The following applies to both user 'hilco' and 'root'!

centaur usb # mount
<snip/>
/dev/sdc1 on /mnt/usb type vfat (rw,noexec,nosuid,nodev,user=hilco)
centaur usb # find .
.
./APR-13-2011
<snip/>
./AUG-05-2011
centaur usb # rm -rf *
rm: cannot remove `APR-13-2011': Directory not empty
<snip/>
rm: cannot remove `AUG-05-2011': Directory not empty
centaur usb # mkdir xyz
centaur usb # rmdir xyz

(I should note that any files in the MMM-DD-YYYY directories *are* removed.)

I could reformat the USB key of course but I would prefer to be able
to simply delete old directories.

Any ideas what might be causing this?

Cheers,
Hilco



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Cannot remove empty directory: "cannot remove `APR-13-2011': Directory not empty"
       [not found] ` <4E3C54C7.1060707@asyr.hopto.org>
@ 2011-08-05 21:13   ` Hilco Wijbenga
  2011-08-05 21:17     ` Michael Mol
  2011-08-08 20:08     ` Paul Hartman
  0 siblings, 2 replies; 4+ messages in thread
From: Hilco Wijbenga @ 2011-08-05 21:13 UTC (permalink / raw
  To: Gentoo User; +Cc: Thanasis

On 5 August 2011 13:38, Thanasis <thanasis@asyr.hopto.org> wrote:
> umount /dev/sdc1 && fsck /dev/sdc1

Wow. Just wow. The printer/scanner somehow renamed '.' and '..' to '.
   ~1' and '..     ~1' respectively.

Sigh, I guess I'll just reformat.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Cannot remove empty directory: "cannot remove `APR-13-2011': Directory not empty"
  2011-08-05 21:13   ` Hilco Wijbenga
@ 2011-08-05 21:17     ` Michael Mol
  2011-08-08 20:08     ` Paul Hartman
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Mol @ 2011-08-05 21:17 UTC (permalink / raw
  To: gentoo-user

On Fri, Aug 5, 2011 at 5:13 PM, Hilco Wijbenga <hilco.wijbenga@gmail.com> wrote:
> On 5 August 2011 13:38, Thanasis <thanasis@asyr.hopto.org> wrote:
>> umount /dev/sdc1 && fsck /dev/sdc1
>
> Wow. Just wow. The printer/scanner somehow renamed '.' and '..' to '.
>   ~1' and '..     ~1' respectively.
>
> Sigh, I guess I'll just reformat.

Ok, that's impressive.


-- 
:wq



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Cannot remove empty directory: "cannot remove `APR-13-2011': Directory not empty"
  2011-08-05 21:13   ` Hilco Wijbenga
  2011-08-05 21:17     ` Michael Mol
@ 2011-08-08 20:08     ` Paul Hartman
  1 sibling, 0 replies; 4+ messages in thread
From: Paul Hartman @ 2011-08-08 20:08 UTC (permalink / raw
  To: gentoo-user

On Fri, Aug 5, 2011 at 4:13 PM, Hilco Wijbenga <hilco.wijbenga@gmail.com> wrote:
> On 5 August 2011 13:38, Thanasis <thanasis@asyr.hopto.org> wrote:
>> umount /dev/sdc1 && fsck /dev/sdc1
>
> Wow. Just wow. The printer/scanner somehow renamed '.' and '..' to '.
>   ~1' and '..     ~1' respectively.
>
> Sigh, I guess I'll just reformat.

Wow, indeed. Win95 called, they want their LFN back. :)

But seriously I would check if there's a firmware update available for
the printer that maybe fixes it. Or find a USB stick that has a
hardware read-only switch to prevent the printer from ruining the
filesystem.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-08 20:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-05 20:05 [gentoo-user] Cannot remove empty directory: "cannot remove `APR-13-2011': Directory not empty" Hilco Wijbenga
     [not found] ` <4E3C54C7.1060707@asyr.hopto.org>
2011-08-05 21:13   ` Hilco Wijbenga
2011-08-05 21:17     ` Michael Mol
2011-08-08 20:08     ` Paul Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox