You are here

CHKDSK on a Portable Hard Drive

11 posts / 0 new
Last post
J Neutron
Offline
Last seen: 7 months 2 weeks ago
Joined: 2008-06-10 19:26
CHKDSK on a Portable Hard Drive

Somehow, a file on my portable hard drive has become corrupt. The file is the .ini file for adblockplus, an add-on for Firefox.

  • Adblockplus and Firefox don't complain about the corruption.
  • Toucan and 7-Zip give corruption warnings.
  • Text editors give corruption warnings.
  • Delete does not work and gives Windows-level corruption/error messages, as does rename.
  • Uninstalling the add-on in Firefox won't help either, since the self-delete does not work. Reinstall of the add-on merely uses the same directory and files.

So far, I have partially solved the problem by first uninstalling the add-on, renaming the directory, and then reinstalling the add-on. This has forced Adblockplus/Firefox to make and use a new directory. However, I still have the old directory there.

I have also tried to do a CHKDSK on the portable hard drive, expecting the offending clusters to be marked BAD. The Windows system says it will perform the CHKDSK on restart, but since the USB hard drive isn't mounted until well after restart, the CHKDSK never happens.

Also, I can't defrag/optimize the hard drive, because the CHKDSK is pending.

My next step is the question... the only thing I can think to do is to copy/backup the entire portable hard drive, format it, and then put everything back onto the drive.

Does anybody have any other suggestions?

Jim

Bobert
Bobert's picture
Offline
Last seen: 14 years 10 months ago
Joined: 2008-06-10 20:43
Boot into some Linux distro

Boot into some Linux distro (I recommend Ubuntu or Puppy Linux live CD) and try deleting it from there. That always worked for me when I had that problem. (Well, I actually dual-boot), but that should work.

There's no place like 127.0.0.1

Bahamut
Bahamut's picture
Offline
Last seen: 13 years 2 weeks ago
Joined: 2006-04-07 08:44
If you have it plugged in

If you have it plugged in during boot, Windows will mount it and should run chkdsk.

Vintage!

J Neutron
Offline
Last seen: 7 months 2 weeks ago
Joined: 2008-06-10 19:26
Doesn't work

Yeah, that's what I figured, too... but it doesn't work. It never recognizes the USB drive soon enough in the boot process.

Something I haven't tried is to make CHKDSK run for Drive C: and maybe it will catch the portable drive too.

Jim

neutron1132 (at) usa (dot) com

Bahamut
Bahamut's picture
Offline
Last seen: 13 years 2 weeks ago
Joined: 2006-04-07 08:44
Why not just run chkdsk after

Why not just run chkdsk after it's booted? Close any programs/files on the drive and run chkdsk [drive letter]: /R /X. You must've had something on the drive being used and Windows wouldn't run the check until a boot.

Vintage!

Tim Clark
Tim Clark's picture
Offline
Last seen: 13 years 8 months ago
Joined: 2006-06-18 13:55
also try renaming any

also try renaming any auto.inf type stuff so it won't load, even an icon.
Disable System Restore for that Drive ONLY.

Safely remove the drive and plug it in again.
Don't do ANYTHING except run a full check disk on the drive.

Tim

Things have got to get better, they can't get worse, or can they?

Bahamut
Bahamut's picture
Offline
Last seen: 13 years 2 weeks ago
Joined: 2006-04-07 08:44
That's what the /X switch is

That's what the /X switch is for ;).

Vintage!

J Neutron
Offline
Last seen: 7 months 2 weeks ago
Joined: 2008-06-10 19:26
X marks the spot!

CHKDSK with the /r /x parameters did the trick.

I thought the process died the first time through, so I stupidly interrupted it. After that, couldn't access ANYTHING on the drive. Restarted the CHKDSK again and walked away from the computer (watched some of the Olympics). This time it completed, marked the clusters "bad", and fixed other stuff.

I've been backing up my Firefox and Thunderbird profiles. Now it is time to start thinking about the other stuff, too.

Thanks for the CHKDSK tip!

Jim

neutron1132 (at) usa (dot) com

Bahamut
Bahamut's picture
Offline
Last seen: 13 years 2 weeks ago
Joined: 2006-04-07 08:44
/X closes all handles on the

/X closes all handles on the drive so that chkdsk can do its job properly and without interruptions. Just don't use it on your Windows drive. Wink

Vintage!

J Neutron
Offline
Last seen: 7 months 2 weeks ago
Joined: 2008-06-10 19:26
That wouldn't be good

Sounds like an excellent way to trash any boot drive!

Jim

neutron1132 (at) usa (dot) com

Bahamut
Bahamut's picture
Offline
Last seen: 13 years 2 weeks ago
Joined: 2006-04-07 08:44
It wouldn't trash the drive.

It wouldn't trash the drive. Either chkdsk would recognize it's acting on a root filesystem or (more likely) Windows would crash.

Vintage!

Log in or register to post comments