Remove DS_Store Files on macOS Show OneDrive (work or school) OneDrive (home or personal) More...Less Corrupted .DS_Store files can prevent OneDrive from syncing correctly. Deleting the corrupted files can help restore normal sync operation. No data is lost by deleting the corrupted files as Mac Finder only creates .DS_Store files to store viewing options, such as the positions of icons, size of the Finder window, and window backgrounds.
Need more help?Need more help?Short answer: yes, almost any changes you make on the disk have a possibility of causing further damage. Back up anything important (making minimal changes as you do so), then try to diagnose and fix it. Long answer: there are several different levels where you could have data corruption/damage:
Problems at any of these levels can cause secondary problems at higher levels. Hardware problems can cause volume data and/or file contents to get garbled, and volume problems can cause things like parts of files getting overwritten or lost. So if you see problems at one level, keep in mind that the root cause might be at a lower level. Conversely, trying to fix (or just change) things at a higher level than the root cause can cause additional damage. If you've got damaged volume data structures, creating, deleting, or even editing files can cause the damage to snowball. If you have a hardware problem, trying to repair the volume data structures (e.g. with Disk Utility's First Aid feature) might just cause additional secondary problems at that level. In your situation, the first thing I'd do is make sure any important files/data is backed up (or as sure as possible under the circumstances). If possible, do this while booted from something else, with the suspect volume mounted read-only to avoid further corruption. (That's probably not possible, so don't worry about it too much. But don't make any unnecessary changes on the disk until the backup's done.) Then and only then, try running hardware tests, like Apple Hardware Test (for models introduced before June 2013) or Apple Hardware Diagnostics (for models introduced after June 2013) (more info here), or a third-party test utility. If the hardware tests don't find anything wrong, then start looking at the volume data structures. I don't have any experience repairing APFS yet, but I'd try Disk Utility First Aid first (probably booted in recovery mode). Frankly, if that can't fix it, I'd erase the disk (not just the volume) and reinstall/recover from scratch. Afterward, maintain good ongoing backups in case there's some underlying problem that didn't get detected/fixed. How do I delete a corrupt file on Mac?Log into your account and locate the file you want to delete. Since your Mac is in Safe Mode, you might be able to delete the corrupted file. Drag the file to the Trash. You can also click to select the file in Finder, then go up to the menu and select Move to Trash.
How do I force a corrupted file to delete?Type the following command Del /F /Q /A < file path > and press Enter.. "/F" means to force delete files.. "/Q" means to delete read-only files,. "/A" means to select files with the archiving attribute.. < file path > is the corrupted file's location. For example, you might have "Del /F /Q /A C:\Users\XXX\Downloads".. How do you force delete a file that won't Delete on a Mac?When a file is locked, you need to unlock it first in order to move to Trash.. Ctrl-click the file you cannot delete and select Get Info.. Expand the General tab and find the Locked checkbox. Deselect it if it's turned on.. Go back to select the file and delete it again.. How do I repair a corrupted file on a Mac?Mac's Built-In Repair Shop
Open up your Applications folder, and click “Utilities.” Open up the Disk Utility application in that list to have access to the repair tool. Now simply drag your damaged DMG file onto the Disk Utility window. Click the damaged file, and then select “Repair Disk” in the First Aid tab.
|