Token导航 LogoToken导航TokenDH.com
效率可写文件clawhub未标认证来源可访问clear审计提醒

exfat-recovery脂肪回收

Agent Skill

exfat-recovery 用于辅助测试设计、自动化测试和回归验证,适合在 OpenClaw 中需要补充测试、分析失败日志或验证功能改动时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,280

周安装

134

GitHub Stars

公开资料未说明

下载量

1,051
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:exfat-recovery(脂肪回收)
来源仓库:https://github.com/solomonneas/exfat-recovery
安装命令:
openclaw skills install exfat-recovery
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install exfat-recovery

简介

用于诊断与修复 Windows 下损坏的 exFAT USB 驱动器。

  • 适合存储设备故障排查、数据恢复与预防性维护时使用。
  • 需在 OpenClaw 中通过 clawhub 安装,结合设备路径调用工具。
  • 建议确认是否具备磁盘读写权限及系统底层操作许可。
  • 适用于硬件故障应急处理与文件系统修复场景。exfat-recovery 属于效率类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
exfat-recovery
version
1.0.0
description
Recover corrupted exFAT USB drives on Windows without formatting. Diagnose boot region corruption, repair with chkdsk or TestDisk, and prevent future corruption with write cache fixes, shutdown flush scripts, and automated boot region backups. Covers the 'needs to be formatted' panic scenario.
tags
category
tools

exFAT Recovery — Fix "Needs to be Formatted" Without Losing Data

When Windows says your external drive "needs to be formatted," your data is almost always fine. The exFAT boot region got corrupted (usually from write caching + unexpected shutdown). This skill walks through diagnosis, repair, and prevention.

When to Use

  • External USB drive suddenly says "needs to be formatted"
  • Drive shows in Disk Management but filesystem is blank
  • chkdsk reports "Corruption was found while examining the boot region"
  • Any exFAT drive that won't mount after a crash or reboot

Diagnosis

Step 1: Confirm the drive is recognized

Get-Disk | Format-Table Number, FriendlyName, Size, PartitionStyle, OperationalStatus, HealthStatus -AutoSize

If HealthStatus: Healthy and OperationalStatus: Online, the hardware is fine. If not, you have a hardware problem (different fix).

Step 2: Check the partition exists

Get-Partition -DriveLetter H | Format-Table PartitionNumber, DriveLetter, Size, Type -AutoSize

Partition visible = partition table intact. Good sign.

Step 3: Check filesystem status

Get-Volume -DriveLetter H | Format-List DriveLetter, FileSystem, Size, SizeRemaining, HealthStatus

If FileSystem is blank and Size is 0, the filesystem metadata is corrupted but the partition is there.

Step 4: Read-only chkdsk to confirm

chkdsk H:

Look for: Corruption was found while examining the boot region. This confirms it's fixable.

Recovery

Option 1: chkdsk /F (try this first)

Run as Administrator:

chkdsk H: /F

Repairs the exFAT boot region from the backup copy (exFAT stores backup boot sectors at sectors 12-23). For an 8TB drive with ~140K files, takes a few minutes.

Verify after:

Get-Volume -DriveLetter H
Get-ChildItem H:\ | Select-Object Name | Format-Table -AutoSize

Option 2: TestDisk (if chkdsk fails)

  1. Download from https://www.cgsecurity.org/wiki/TestDisk
  2. Run testdisk_win.exe as Administrator
  3. Select physical disk → GPT → Advanced → Boot
  4. TestDisk rebuilds the boot sector from the backup copy

Option 3: Data recovery tools (last resort)

If the filesystem is unrecoverable:

  • R-Studio (paid, best for exFAT) — recovers directory structure
  • PhotoRec (free) — recovers files by type, loses filenames
  • DMDE (free tier) — good at exFAT reconstruction

Prevention

1. Disable write caching (most important)

Write caching is the #1 cause of exFAT corruption on external drives.

Device Manager method:

  1. Device Manager → Disk drives → your external drive
  2. Properties → Policies tab
  3. Select "Quick removal" (disables write cache)

PowerShell (scriptable):

# Adjust Ven_ and Prod_ to match your drive
$devPath = "HKLM:\SYSTEM\CurrentControlSet\Enum\SCSI\Disk&Ven_Samsung&Prod_PSSD_T5_EVO"
$instances = Get-ChildItem $devPath
foreach ($inst in $instances) {
    $diskParamPath = Join-Path $inst.PSPath "Device Parameters\Disk"
    if (Test-Path $diskParamPath) {
        Set-ItemProperty -Path $diskParamPath -Name "UserWriteCacheSetting" -Value 0 -Type DWord
    }
}

2. Shutdown flush script

Insurance even with write caching disabled. Use scripts/safe-shutdown.ps1 and register it as a Group Policy shutdown script. See references/prevention-scripts.md for the full setup.

3. Weekly boot region backup

Use scripts/backup-boot-region.ps1 to save a copy of the exFAT boot region every week. If corruption happens again, restore from backup instead of hoping chkdsk works.

4. Restore from backup

# Run as Admin - writes raw bytes to disk
$disk = "\\.\PhysicalDrive3"  # adjust
$offset = 16777216             # partition offset in bytes
$backupFile = "C:\path\	o\exfat_boot_region_YYYYMMDD.bin"

$buf = [System.IO.File]::ReadAllBytes($backupFile)
$fs = [System.IO.File]::Open($disk, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Write, [System.IO.FileShare]::ReadWrite)
[void]$fs.Seek($offset, [System.IO.SeekOrigin]::Begin)
$fs.Write($buf, 0, $buf.Length)
$fs.Flush()
$fs.Close()
# Then: chkdsk H: /F

Key Facts

  • "Needs to be formatted" almost always means corrupted metadata, NOT lost data
  • exFAT doesn't journal like NTFS, so it's fragile on unexpected shutdowns
  • exFAT keeps a backup boot region at sectors 12-23 of the partition
  • chkdsk /F fixes most cases by restoring from this backup
  • Write caching on external drives is the #1 cause. Disable it.
  • DO NOT format the drive. That actually destroys the data.

Root Cause

exFAT has no journaling. When Windows has write caching enabled for an external drive and the system reboots (crash, update, power loss), dirty cached writes never flush. The boot region (filesystem's "table of contents") gets partially written and becomes unreadable. The actual file data on disk is untouched.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

87.51%
按下载量换算920

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills