Skip to content

[Bug]: mkfs ERROR with AHCI disk controller #686

@ddonoro

Description

@ddonoro

Version

7.2.8

Host OS Type

Windows

Host OS name + version

Windows 11 Pro 25H2

Host Architecture

x86

Guest OS Type

Linux

Guest Architecture

x86

Guest OS name + version

Yocto scarthgap 5.0

Component

Other

What happened?

For years, we've had a problem that seems to never go away.
In our Yocto scarthgap 5.0 installer (and older versions of Yocto where the same issue occurred).
The problem occurs when we run the command “mkfs.ext2 -F /dev/boot_partition -L boot”; it also fails with “mkfs.ext4” and any direct execution of “mkfs” on a /dev/sdX. Only seems to fail with usb.vmdk (This does not happen if the drive is connected as a USB device)

To avoid this error when installing the Linux operating system, we use the PIIX4 IDE controller in the installer, and once installed, we reconfigure the disks to SATA (AHCI) again.
However, we would like to be able to use SATA again, since SATA worked perfectly for us years ago (we have always created filesystems with mkfs). More than five years ago, the SATA controller worked perfectly without the machine freezing when running “mkfs”.

Thank you very much,

VBox.log

Image

How can we reproduce this?

Add an USB as Disk usb.vmdk:
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createmedium disk --filename C:\usb.vmdk --format=VMDK --variant RawDisk --property RawDrive=\.\PhysicalDrive

1)This BUG is easy to reproduce with AHCI Controller & Uncheck "Use I/O cache".
(Memory writting seems slower when "Use I/O cache" is enabled and the bug doesn´t appear)

2)Boot from a bootable USB drive and run mkfs.ext4 /dev/sda in a terminal

Did you upload all of your necessary log files, screenshots, etc.?

  • Yes, I've uploaded all pertinent files to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions