2026-07-26 11:46 UTC
Replies (1)
-
@lucy18@alive.bar 2026-10-11 03:33
NTFS: New Technology File System, 微软(MS)Windows 文件系统。 一般移动硬盘(USB), 默认是 NTFS 文件系统。 如果因为突然断电, 或者非正常关机, 导致移动硬盘(USB)损坏, 不能登录, 要用 Windows 操作系统命令 chkdsk 来修复。 Linux 操作系统命令: fsck、e2fsck、ntfsfix 不能修复 NTFS 文件系统的移动硬盘(USB)。 一、Windows 实体机电脑 1、插入移动硬盘(USB) 2、打开 Windows terminal, 输入命令, 在 Windows 系统内, 任意位置, 鼠标右键单击, 显示 “Open in Terminal” 选项, 点击, 即打开 Windows terminal/Windows PowerShell。 chkdsk e: /f 假定移动硬盘(USB)的盘符是 E, 请将 e 换成实际的移动硬盘名称。 二、Linux 实体机电脑 1、下载、校验、安装虚拟机软件 VirtualBox 和 VirtualBox Extension Pack https://www.virtualbox.org/wiki/Downloads 2、下载 Windows ISO 文件 鄙人是在 the piratebay 海盗湾, 下载英文版 Windows-11, 已经预先激活。 3、在 VirtualBox 安装 Windows-11, 耗时较长 4、在 Linux 实体机电脑,插入已经损坏的移动硬盘(USB) 5、登录虚拟机 Windows-11 6、在虚拟机 Windows-11, 连接移动硬盘(USB) VirtualBox 界面顶部第一行 →点击 Devices/设备, →USB/USB设置, 下方显示多个 USB 选项, →勾选 XYZ-品牌 USB(举例), 在虚拟机 Windows-11 系统内, This PC, 显示新增一个硬盘 E, 表明虚拟机 Windows-11 已经成功连接移动硬盘(USB)。 备注:如果取消勾选, 即断开虚拟机与移动硬盘的连接。 7、打开 Windows terminal, 输入命令: chkdsk e: /f 假定移动硬盘(USB)的盘符是 E, 请将 e 换成实际的硬盘名称。 不到一分钟, 就修复了已经损坏的 2T 移动硬盘(USB)。 现在, 虚拟机、实体机, 都可以连接这个移动硬盘, 打开其中的文件。 举一反三: 可以在 Windows 实体机安装 Linux 虚拟机, 用来修复 Linux 文件系统的移动硬盘(USB)。 -------------- 附录: DistroWatch https://distrowatch.com/ Linuxtracker https://linuxtracker.org/ Linux 相关命令 1、sudo fdisk -l 2、sudo umount /dev/sdb 3、sudo fsck -y /dev/sdb 4、sudo e2fsck -b 8193 /dev/sdb 5、sudo e2fsck -b 32768 /dev/sdb 6、sudo ntfsfix /dev/sdb 这些 Linux 命令, 似乎在做无用功, 但是最后一个命令提示要用 chkdsk, 而 chkdsk 只能在 Windows 操作系统使用。 努力不会白费, 现在总算找到了正确答案。 ------------- 1、 sudo fdisk -l Disk /dev/sdb: 1.82 TiB Device Size Type /dev/sdb1 1.8T Microsoft basic data 表明移动硬盘(USB)是 MS 文件系统。 2、 sudo umount /dev/sdb 或者手工点击, 卸载移动硬盘(USB),但不是拔掉。 3、 sudo fsck -y /dev/sdb fsck from util-linux 2.41.5 e2fsck 1.47.2 (1-Jan-2025) ext2fs_open2: Bad magic number in super-block fsck.ext2: Superblock invalid, trying backup blocks... fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb The superblock could not be read or does not describe a valid ext2/ext3/ext4 filesystem. If the device is valid and it really contains an ext2/ext3/ext4 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 or e2fsck -b 32768 Found a gpt partition table in /dev/sdb 4、 sudo e2fsck -b 8193 /dev/sdb e2fsck 1.47.2 (1-Jan-2025) e2fsck: Bad magic number in super-block while trying to open /dev/sdb The superblock could not be read or does not describe a valid ext2/ext3/ext4 filesystem. If the device is valid and it really contains an ext2/ext3/ext4 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 or e2fsck -b 32768 Found a gpt partition table in /dev/sdb 5、 sudo e2fsck -b 32768 /dev/sdb e2fsck 1.47.2 (1-Jan-2025) e2fsck: Bad magic number in super-block while trying to open /dev/sdb The superblock could not be read or does not describe a valid ext2/ext3/ext4 filesystem. If the device is valid and it really contains an ext2/ext3/ext4 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 or e2fsck -b 32768 Found a gpt partition table in /dev/sdb 6、 sudo ntfsfix /dev/sdb Mounting volume... NTFS signature is missing. FAILED Attempting to correct errors... NTFS signature is missing. FAILED Failed to startup volume: Invalid argument NTFS signature is missing. Trying the alternate boot sector Unrecoverable error Volume is corrupt. You should run chkdsk. @board