Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needed a sleep 1 before mkfs.ext4 #45

Open
evertheylen opened this issue Jul 4, 2024 · 0 comments
Open

Needed a sleep 1 before mkfs.ext4 #45

evertheylen opened this issue Jul 4, 2024 · 0 comments

Comments

@evertheylen
Copy link

Hello, I don't have the time to really look into this in depth, but I still thought it was useful to let someone know. I was trying to make qcow2 images, with ext4, and it kept giving me this error:

mkfs.ext4: Device size reported to be zero.  Invalid partition specified, or
        partition table wasn't reread after running fdisk, due to
        a modified partition being busy and in use.  You may need to reboot
        to re-read your partition table.

I tried out the commands manually and it worked fine. Assuming it was a timing issue of some sort, I added a sleep 1 before the mkfs line here:

mkfs.$ROOTFS -L root $mkfs_args "$root_dev"

And that fixed it. I've only had this problem recently, last time I ran it (maybe 4 months ago or more), it worked fine. Currently running QEMU 9.0.1, e2fsprogs 1.47.1-4, kernel 6.9.7-arch1-1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant