V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
请不要把任何和邀请码有关的内容发到 NAS 节点。

邀请码相关的内容请使用 /go/in 节点。

如果没有发送到 /go/in,那么会被移动到 /go/pointless 同时账号会被降权。如果持续触发这样的移动,会导致账号被禁用。
ChaosAttractor
V2EX  ›  NAS

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

  •  
  •   ChaosAttractor · 7 天前 · 1505 次点击

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

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

    使用的是 fastFormat

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

    这合理吗?

    7 条回复    2024-12-12 10:39:24 +08:00
    sNullp
        1
    sNullp  
       7 天前 via iPhone
    合理,你进行的创造根本不是低格。
    ChaosAttractor
        2
    ChaosAttractor  
    OP
       7 天前
    @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
        3
    sNullp  
       7 天前   ❤️ 1
    @ChaosAttractor 如果是 lba addressing 改 sector size 不会有任何影响,而现在没什么程序还在用 sector addressing 了。总而言之这和低格没关系。
    Ipsum
        4
    Ipsum  
       6 天前
    Fastfomat 不会用 0 填充,只是把 metadata 删了而已。
    xiao9469
        5
    xiao9469  
       6 天前 via iPhone   ❤️ 1
    有一种方法可以判断有没有用 0 覆盖,你看执行的总时长就知道了。300MB 每秒的写入速度,你写完 10TB 的 0 ,总共需要 9.7 个小时。如果你 10 秒就格完了这个硬盘,那数据肯定还在
    Hookery
        6
    Hookery  
       6 天前
    看名字是 fastformat 啊。。。
    chengyiqun
        7
    chengyiqun  
       6 天前
    执行 fastFormat 就不可能是低格了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1042 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 19:48 · PVG 03:48 · LAX 11:48 · JFK 14:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.