How to remove a damaged file

John Summerfield debian at
Wed Apr 23 14:46:47 UTC 2008

Anne Wilson wrote:
> On Wednesday 23 April 2008 15:15, John Summerfield wrote:
>> Anne Wilson wrote:
>>> Due to a loss of concentration I have a damaged directory called Packages
>>> on my pen-drive.  I can't rm it - Input/output error.  I've cleared
>>> everything else off. How can I get rid of this?
>> mkfs
>> If that doesn't work, try fdisk and then mkfs. If it still doesn't work,
>> <plonk>
> I've used fdisk and mkfs on a blank disk, but I'm confused about this.  I 
> guess it's getting around the problem of FAT file-systems, but it appears to 
> have one parition of 8GB and three empty ones.  Something like LVM, I 
> presume.
> I don't feel that I know what I'm doing, here.

Did you try mkfs alone first?
fdisk can delete partitions. Read its help. Delete the partitions then 
pretend it's blank.

btw You don't _have_ to put a FAT filesystem on it.



-- spambait
1aaaaaaa at  Z1aaaaaaa at
-- Advice

You cannot reply off-list:-)

More information about the test mailing list