执行低级格式化后数据居然没丢?

6 小时 32 分钟前
 ChaosAttractor

将一块 SAS 的希捷 EXOS 10T 从 512e 低级格式化到了 4Kn ,具体来说更新固件后执行了

openSeaChest_Format -d /dev/sg1 --formatUnit 4096 --fastFormat 1 --poll --confirm

使用的是 fastFormat

结果格式化完重新插拔后发现居然还能 mount ,从备份里验证了一下哈希居然一个不差

这合理吗?

440 次点击
所在节点    NAS
5 条回复
sNullp
6 小时 25 分钟前
合理,你进行的创造根本不是低格。
ChaosAttractor
5 小时 20 分钟前
@sNullp
```
--fastFormat [fast format mode] (SAS Only) (SBC4 required)
Use this option with the --formatUnit option
to run a fast format.
Changing sector sizes is intended for supported Seagate products
used in some hardware RAID configurations. Please consult your
hardware RAID documentation for information about compatibility and
using 4K native sectors before using this option!
Software RAID or individual/JBOD drive solutions will see no benefit as modern
file systems and modern operating systems are already 4K aware even on
512 emulation drives. Modern operating systems already align file systems to 4K
boundaries required by these drives for optimal performance.
Performing a sector size change is data destructive and has a risk that
the adapter, driver, or operating system may not know how to communicate with
the device once this has completed.
There is an additional risk when performing a low-level fast format that may
make the drive inoperable if it is reset at any time while it is formatting.
Available fast format modes:
0 - This is a standard format unit command. All logical
blocks will be overwritten. This command will take a
very long time
1 - This is a fast format unit command keeping existing
data in physical sector. This option can be used to
quickly change the the logical sector size between
5xxe and 4xxx. The media may be readable, but data
may be unspecified or may return errors on read access
according to it's error processing algorithms.
2 - This is a fast format unit command that can change the
logical sector size quickly. Media may or may not be
read accessible until a write has been performed to
the media.

WARNING: Any interruption to the device while it is formatting may render the
drive inoperable! Use this at your own risk!
WARNING: Set sector size may affect all LUNs/namespaces for devices
with multiple logical units or namespaces.
WARNING: Disable any out-of-band management systems/services/daemons
before using this option. Interruptions can be caused by these
and may prevent completion of a sector size change.
WARNING: It is recommended that this operation is done from a bootable environment
(Live USB) to reduce the risk of OS background activities running and
triggering a device reset while reformating the drive.
```
这是 fastFormat 的注释,的确 fastFormat 没有执行清除,但看起来能够完全保留数据也不是期待的结构
sNullp
5 小时 9 分钟前
@ChaosAttractor 如果是 lba addressing 改 sector size 不会有任何影响,而现在没什么程序还在用 sector addressing 了。总而言之这和低格没关系。
Ipsum
2 小时 18 分钟前
Fastfomat 不会用 0 填充,只是把 metadata 删了而已。
xiao9469
37 分钟前
有一种方法可以判断有没有用 0 覆盖,你看执行的总时长就知道了。300MB 每秒的写入速度,你写完 10TB 的 0 ,总共需要 9.7 个小时。如果你 10 秒就格完了这个硬盘,那数据肯定还在

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1096862

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX