Re: Deletion of files from usb-key

2007-11-19 Thread Michelle Konzack
Am 2007-11-07 13:42:57, schrieb Haines Brown: > I have a SamDisk USB-key filled with photos (.png) which I used for a > slide show. I now would like to delete them, but whenever the device > is rebooted, the files reappear. > > $ ls -la /media/usb-key > rwxr-xr-x file.png /brownh/bro

Re: Deletion of files from usb-key

2007-11-11 Thread Christian Jaeger
Haines Brown wrote: (...) 3. Decide whether the problem is within a partition or at the level of the partition table by zeroing the partition. Unmount the device and do (example assumes the device interface is /dev/sdd): # cat /dev/zero > /dev/sdd1 or # dd if=/dev/zer

Re: Deletion of files from usb-key

2007-11-11 Thread Haines Brown
People have been very generous of their time. I've concluded the USB-key is physically shot, for I have no problems with other keys. I'd like to summarize the troubleshooting procedure for correction or to benefit lurkers. 1. The first step is to verify that the USB bus can actually see the d

Re: Deletion of files from usb-key

2007-11-10 Thread Christian Jaeger
Haines Brown wrote: I didn't realize you ran these commands on a partition rather than the device, but in any case, after doing it and mouting, the files remain. You always have to care where your filesystem resides. Usually (practically always) physical devices have a partition table on

Re: Deletion of files from usb-key

2007-11-09 Thread Haines Brown
"Douglas A. Tutty" <[EMAIL PROTECTED]> writes: > Again note that you used /dev/sdd not /dev/sdd1 # dosfsck /dev/sdd1 dosfsck 2.11, 12 Mar 2005, FAT32, LFN /dev/sdd1: 168 files, 75979/124860 clusters # mkdosfs /dev/sdd1 mkdosfs 2.11 (12 Mar 2005) #

Re: Deletion of files from usb-key

2007-11-08 Thread Douglas A. Tutty
On Fri, Nov 09, 2007 at 02:49:06AM +0100, Christian Jaeger wrote: > To check whether I should feel guilty giving that advice, I've checked > my listed procedure with my own usb stick. It survived it without any > problem and with the expected results: overwriting /dev/sda (in my case > it's sd

Re: Deletion of files from usb-key

2007-11-08 Thread Christian Jaeger
Haines Brown wrote: When I try: $ lsusb -v -D /dev/sdd Cannot open /dev/sdd That doesn't mean anything, I'm getting the same with my perfectly working usb stick. When I plug in the usb-key, the kernel log sayw: Nov 8 16:41:21 teufel kernel: usb 1-2.2:

Re: Deletion of files from usb-key

2007-11-08 Thread Raj Kiran Grandhi
Haines Brown wrote: Christian Jaeger <[EMAIL PROTECTED]> writes: For making really sure you get to a clean state, I'd use this sequence (not tested as typed, but should work; unlike the previous suggestion of writing one sector with dd, this wipes the whole stick, so really make sure that this

Re: Deletion of files from usb-key

2007-11-08 Thread Douglas A. Tutty
On Thu, Nov 08, 2007 at 11:34:40AM -0500, Haines Brown wrote: > $ df /media/usb-key > Filesystem 1K-blocks Used Available Use% Mounted on > /dev/sdd1 499440303916195524 61% /media/usb-key > > I agree that it seems to be file system corruption, but dosfsck

Re: Deletion of files from usb-key

2007-11-08 Thread Haines Brown
Christian Jaeger <[EMAIL PROTECTED]> writes: > For making really sure you get to a clean state, I'd use this > sequence (not tested as typed, but should work; unlike the previous > suggestion of writing one sector with dd, this wipes the whole > stick, so really make sure that this is ok for you a

Re: Deletion of files from usb-key

2007-11-08 Thread Christian Jaeger
Haines Brown wrote: $ df /media/usb-key Filesystem 1K-blocks Used Available Use% Mounted on /dev/sdd1 499440303916195524 61% /media/usb-key Above you're using /dev/sdd1 # dosfsck /dev/sdd Here you're using /dev/sdd (not the partition 1). # mkdo

Re: Deletion of files from usb-key

2007-11-08 Thread Haines Brown
> > Post the actual output of 'ls -la'. Also the output of 'df > /media/usb-key' with the device mounted would help > $ ls -la /media/usb-key drwxr-xr-x 2 brownh brownh20480 Dec 31 1969 . drwxr-xr-x 8 root root 4096 Jul 17 15:16 .. -rwxr-xr-x 1 brownh brownh 1071529 Aug 14 14:35 B

Re: Deletion of files from usb-key

2007-11-08 Thread Haines Brown
"Douglas A. Tutty" <[EMAIL PROTECTED]> writes: > n 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 > > Note that this is /sdd (this is a

Re: Deletion of files from usb-key

2007-11-08 Thread Haines Brown
Raj Kiran Grandhi <[EMAIL PROTECTED]> writes: > Haines Brown wrote: > > Kiran, > > Thanks for the help. I should emphazie that my promblem is not > > mounting the usb-key drive, but only deleting the files on it. I can > > copy those files, but not delete or modify them. However, if I add a > > te

Re: Deletion of files from usb-key

2007-11-07 Thread Douglas A. Tutty
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 sec

Re: Deletion of files from usb-key

2007-11-07 Thread Raj Kiran Grandhi
Haines Brown wrote: Kiran, Thanks for the help. I should emphazie that my promblem is not mounting the usb-key drive, but only deleting the files on it. I can copy those files, but not delete or modify them. However, if I add a test file, I can readily delete it. I suspect I damanged the file s

Re: Deletion of files from usb-key

2007-11-07 Thread Haines Brown
Kiran, Thanks for the help. I should emphazie that my promblem is not mounting the usb-key drive, but only deleting the files on it. I can copy those files, but not delete or modify them. However, if I add a test file, I can readily delete it. I suspect I damanged the file system by removing the

Re: Deletion of files from usb-key

2007-11-07 Thread Raj Kiran Grandhi
Haines Brown wrote: I have a SamDisk USB-key filled with photos (.png) which I used for a slide show. I now would like to delete them, but whenever the device is rebooted, the files reappear. $ ls -la /media/usb-key rwxr-xr-x file.png /brownh/brownh Post the actual output of