How to remove a damaged file

John Summerfield debian at herakles.homelinux.org
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.


-- 

Cheers
John

-- spambait
1aaaaaaa at coco.merseine.nu  Z1aaaaaaa at coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)




More information about the test mailing list