Corrupt files on USB flash drive won't delete!!
I have a Kingston 8GB flash drive that I backed up some of my pictures on while I was on vacation and although I was able to retrieve 95% of them there are about a dozen or so that must be corrupt or something and I am unable to remove/delete them. I use xubuntu as an os and I'm wondering what can be done to clean these remaining files out? When I go to delete them the computer freezes and I have to crash the computer and start over only to do the same thing.
Can a flash drive be formatted with a utility like parted magic or similar? If so what are some simple instructions because I've never done something like that on a flash drive. All my other flash drives work flawlessly and perhaps this Kingston flash is junk?
Thanks if you can help!!
OK, if the stuff on 8gb usb is trash, try reformatting it using Gparted
simply open gparted on usb with, as root
where xx is usb name; sdb1, sda1, sdf1, etc
make sure of usb name, use fdisk -l as root
assuming the format is fat32?
so, just re-format fat32.
right-click on line displaying usb in gparted and choose format, to fat32.
then, if you want run a check by again right-clicking line, choose "check"
also, before doing all that; make sure you have "show hidden files" enabled
in file manager.
if you see a folder like .trash-100 or similar delete it.
Treat any usb flash drive as any other usb external drive...gParted..qtParted or any partionner software will do....If you have problems within your distro, I suggest you dowload and burn gParted live-cd and then boot from it to do your tasks...It is a Linux system with gParted and a few utility in full GUI that will run from the CD-Rom and load in RAM..It is very handy and I always prefer doing disk operations when all my drives are not being mounted or used by the OS.
linus72, just a question: suppose formatting solve the problem, would it possible to recover remaining not backupped files?
Thanks. So what if I used parted magic and reformatted it to ext3 filesystem? Will that work?
I managed to remove the files by opening and simply deleting them using w/xp. (go figure) But when I ran parted magic I noticed that the flash drive is formatted in Fat32. Since I use it with my Linux machines should I reformat it to ext3?
OK, I don't really know much about data recovery, though there are Pro's here, so maybe
start a new post with "how to recover data from corrupted usb"
or something like that...I do know that programs like testdisk, photorec are good
systemrescuecd, pmagic and similar all have them probably.
I don't know if you can recover files after formatting..
no problems with either.
2GB is formatted fat32, whole device
4gb is formatted ext3, whole device
very good grub/ext3/usb install here
( http://natureheals.info/linux/tiny/instau.html )
this works Flawlessly dude;
very important notes....
1) dis-connect hd when using above method.
2) don't need to partition usb
3) using grub, even pc's that can't boot from usb
can boot using plop bootmanager or a grub.iso(most pc's)
also, never put a swap parttion on usb, it's bad
other things bad for usb-
full installs, eg slack, debian, etc
using options like home=sdxx opt=sdxx etc
again, lots of writes
best to use frugal distro's
I have 7 distro's on ext3 4gb usb now
they all run good too, some with persistence.
you wanna experiment with playing with pmagic, clonezilla
and data recovery tools?
you need portable-qemu and install some shit and hack it down, then try to
see this post, and if you have a suggestion I'd appreciate it
( http://www.linuxquestions.org/questi...d.php?t=733680 )
and some single-partition portable distro's
( http://multidistro.com/downloads/por...portables.html )
like a fox
need help, I'm around
I'm not trying to recover any data. I was wanting to totally delete it (which I've done now)
I just want to know if its safe to reformat a flash from Fat32 to Ext3 file system? I can leave it Fat32 for all I care but I just thought since I use Linux based distros 95% of the time I would use ext3 or 4 probably 3.
Indy452, yes, you can format you drive with ext3 - just use mk3fs /dev/sdb (or whatever your device with USB stick is). However, I would still use vfat filesystem type (in which case use mkfs -f vfat /dev/sdb).
Point is: linux can read (and write) any contemporary Microsoft filesystem, but Microsoft can not read ext3. By formatting your USB stick with vfat, you cast a wider net...
It is safe to use any filesystem you may want to try. You can always reformat later to wathever you like.
Your jump drive will work perfectly in ext3, but only on UNIX systems. Microsoft does not support filesystems other than fat16-fat32 and ntfs.
Linux on the other hand supports fat and ntfs.
For a jump drive fat32 is the way to go. It gives you total compatibility across platforms and different systems.
If you intend to use your drive only on UNIX machines, then ext3 will do just fine. It is a personal choice.
...And most of the times losing the data on these little thing can be disastrous, hahaha! So I would stick to the basics.
If you need to recover files from a thumbdrive, I would recommend cloning the device as a first step. Run any recovery software (such as photorec) on a copy of your image file so you can start over. Do this before reformatting.
It is also possible that the device is going bad. You might want to keep a close eye on it. If the errors you received were I/O errors, the device may be bad. If it was due to a corrupt filesystem, then you may be OK to continue using the device. It could be simply a case where the thumbdrive was removed before cached writes were written to the device.
Deepdp the spambot has been reported.
As for the corrupted USB drive, be weary that if it does this it may be failing, don't store important info on it.
|All times are GMT -5. The time now is 06:22 PM.|