openSeaChest icon indicating copy to clipboard operation
openSeaChest copied to clipboard

[BUG] - openSeaChest_Format causes system crash

Open Temtaime opened this issue 4 months ago • 5 comments

Describe the bug I was able to reproduce twice with two of those HDDs. System hangs completely. No messages in logs, no kernel crash message, no output on the monitor. Just freezes.

To Reproduce Steps to reproduce the behavior:

  1. Buy ST24000DM001 HDD
  2. Install a debian system, for example, i can reproduce on Proxmox 9.0 with AMD Ryzen 9950X3D
  3. openSeaChest_Format -d /dev/sda --setSectorSize 4096 --confirm this-will-erase-data-and-may-render-the-drive-inoperable

Expected behavior Command completes successfully.

Verbose Output

==========================================================================================
 openSeaChest_Format - openSeaChest drive utilities - NVMe Enabled
 Copyright (c) 2014-2025 Seagate Technology LLC and/or its Affiliates, All Rights Reserved
 openSeaChest_Format Version: 3.4.0 X86_64
 Build Date: Jul 30 2025
 Today: 20250823T011326 User: root
==========================================================================================
One or more of the options provided will perform a low-level format that cannot
be interrupted once started. All background software should be stopped, any filesystems
that are currently mounted should first be unmounted in order to reduce the risk of
interruption. Do not attempt these operations on multiple devices at the same time
to ensure the best possible outcome. Many controllers/drivers/HBAs cannot handle these
operations running in parallel without issuing a device reset.
Not all background activities can be stopped. Some are managed by the OS and are not
configurable. It is recommended that a format change is done from a live/bootable
environment to reduce the risk of these interruptions. If the OS is unable to complete
certain commands for it's background polling of the device, it may trigger a device
reset and interrupt the format, leaving the drive inoperable if it cannot be recovered.
                There is a risk when performing a low-level format/fast format that may
                make the drive inoperable if it is reset at any time while it is formatting.
                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 (SATA): Do not interrupt this operation once it has started or
                         it may cause the drive to become unusable. Stop all possible background
                         activity that would attempt to communicate with the device while this
                         operation is in progress
                WARNING: It is not recommended to do this on USB as not
                         all USB adapters can handle a 4k sector size.
                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.

If you wish to cancel this operation, press CTRL-C now to exit the software.
 0

/dev/sg0 - ST24000DM001-3Y7103 - ZXA0WHWX - DN01 - ATA
Set Sector Size to 4096
Setting the drive sector size quickly.
This command may appear to hang the utility. Do NOT interrupt this
command for at least 1 hour if it appears hung. The drive is busy
performing the sector size change and is not able to indicate its
progress during this time.
This often only takes a few minutes to complete and return completion
of this command to the utility but in some cases it may take this full
hour before the drive is ready to use.
After this command has completed successfully the drive is ready to
read and write data.
Be aware that the drive may begin performing vendor unique background
activity which may prevent idle and standby timers from taking affect
until the background activity has completed.
If this command takes an hour or the command reports a failure due to
interruption by the system with a reset, recovery will be attempted
automatically. You may attempt to run this command again if recovery
does not appear successfull.

And then it freezes. After hard reset sector size is changed

Desktop (please complete the following information):

  • OS: Proxmox(debian based)
  • Version 9.0

Hint: All openSeaChest tools support the --version option which can report this for you.

Additional context Add any other context about the problem here that would be helpful to understand. This can be a big picture overview of what you are trying to do or what background information led you to running these openSeaChest tools. Does another tool run this same operation successfully? (e.g.smartctl, hdparm, sdparm, camcontrol, etc)

# openSeaChest_Format  --version
==========================================================================================
 openSeaChest_Format - openSeaChest drive utilities - NVMe Enabled
 Copyright (c) 2014-2025 Seagate Technology LLC and/or its Affiliates, All Rights Reserved
 openSeaChest_Format Version: 3.4.0 X86_64
 Build Date: Jul 30 2025
 Today: 20250823T013502 User: root
==========================================================================================
Version Info for openSeaChest_Format:
        Utility Version: 3.4.0
        opensea-common Version: 6.0.3
        opensea-transport Version: 10.0.1
        opensea-operations Version: 9.1.1
        Build Date: Jul 30 2025
        Compiled Architecture: X86_64
        Detected Endianness: Little Endian
        Compiler Used: GCC
        Compiler Version: 11.2.1
        Operating System Type: Linux
        Operating System Version: 6.14.8-2
        Operating System Name: Debian GNU/Linux 13 (trixie)

Temtaime avatar Aug 22 '25 22:08 Temtaime