Re: Deletion of files from usb-key
On Wed, Nov 07, 2007 at 09:22:54PM -0500, Haines Brown wrote:
What device are we talking about: What device and what partition on the
device?
> # dd if=/dev/zero of=/sdd bs=512 count=1
> 1+0 records in
> 1+0 records out
> 512 bytes (512 B) copied, 0.00394563 seconds, 130 kB/s
>
Note that this is /sdd (this is a file called sdd in /)
> This didn't get rid of the files.
>
> You suggested second:
>
> # mkdosfs -I -v /dev/sdd
> mkdosfs 2.11 (12 Mar 2005)
> /dev/sdd has 16 heads and 62 sectors per track,
Note that this is /dev/sdd
> Files still there.
>
> Important relevant information:
>
> $ df /media/mirror
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/sda1 964500 124352 791152 14% /
Note: this is sda1
>
> I next tried to repair the file system;
>
> # dosfsck -av /dev/sdd
> dosfsck 2.11 (12 Mar 2005)
> dosfsck 2.11, 12 Mar 2005, FAT32, LFN
> Logical sector size is zero.
>
> Zero?
>
Note that this is /dev/sdd
> I said that running mformat failed. What I meant is that I only get
> the usage help, but nothing happens:
>
> # mformat -v /dev/sdd
> Mtools version 3.9.10, dated March 2nd, 2005
> Usage: ...
>
> I tried:
>
> # fdisk /dev/sdd
>
> and print partition table:
>
> Disk /dev/sdd: 512 MB, 512483328 bytes
> 16 heads, 62 sectors/track, 1009 cylinders
> Units = cylinders of 992 * 512 = 507904 bytes
>
> Device Boot Start End Blocks Id System
> /dev/sdd1 1 1009 500433 b W95 FAT32
>
> This looks OK.
Reply to: