执行低级格式化后数据居然没丢? - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
请不要把任何和邀请码有关的内容发到 NAS 节点。

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

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

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

  •  
  •   ChaosAttractor 2024-12-12 02:04:43 +08:00 2485 次点击
    这是一个创建于 370 天前的主题,其中的信息可能已经有所发展或是发生改变。

    将一块 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  
       2024-12-12 02:11:27 +08:00 via iPhone
    合理,你进行的创造根本不是低格。
    ChaosAttractor
        2
    ChaosAttractor  
    OP
       2024-12-12 03:16:37 +08:00
    @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  
       2024-12-12 03:27:32 +08:00   1
    @ChaosAttractor 如果是 lba addressing 改 sector size 不会有任何影响,而现在没什么程序还在用 sector addressing 了。总而言之这和低格没关系。
    Ipsum
        4
    Ipsum  
       2024-12-12 06:17:56 +08:00
    Fastfomat 不会用 0 填充,只是把 metadata 删了而已。
    xiao9469
        5
    xiao9469  
       2024-12-12 07:59:09 +08:00 via iPhone   1
    有一种方法可以判断有没有用 0 覆盖,你看执行的总时长就知道了。300MB 每秒的写入速度,你写完 10TB 的 0 ,总共需要 9.7 个小时。如果你 10 秒就格完了这个硬盘,那数据肯定还在
    Hookery
        6
    Hookery  
       2024-12-12 09:17:30 +08:00
    看名字是 fastformat 啊。。。
    C02TobNClov1Dz56
        7
    C02TobNClov1Dz56  
       2024-12-12 10:39:24 +08:00
    执行 fastFormat 就不可能是低格了
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2989 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 27ms UTC 13:33 PVG 21:33 LAX 05:33 JFK 08:33
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86