Opened 2 years ago
Last modified 5 months ago
#17864 new bug
filesystem tools: dd, mkfs spurious failures
Reported by: | thebuck | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | File Systems/FAT | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Tried to create a very small FAT partition file using dd
and mkfs
.
Got different errors from run to run:
~/Desktop> bash mf.sh rm: cannot remove 'imgfile': No such file or directory 1+0 records in 1+0 records out 33554432 bytes (34 MB, 32 MiB) copied, 0,188762 s, 178 MB/s Press Return to continue DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE Press Return to mount now Press Return to start cleanup now ~/Desktop> ~/Desktop> bash mf.sh rm: cannot remove 'imgfile': No such file or directory 1+0 records in 1+0 records out 33554432 bytes (34 MB, 32 MiB) copied, 0,183239 s, 183 MB/s Press Return to continue DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE DiskDeviceJobQueue::Execute(): executing job failed: Bad data mkfs: Initialization of "Test" failed: Bad data ~/Desktop> bash mf.sh rmdir: failed to remove 'imgdir': No such file or directory 1+0 records in 1+0 records out 33554432 bytes (34 MB, 32 MiB) copied, 0,18322 s, 183 MB/s Press Return to continue DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE Press Return to mount now Press Return to start cleanup now ~/Desktop> bash mf.sh rm: cannot remove 'imgfile': No such file or directory 1+0 records in 1+0 records out 33554432 bytes (34 MB, 32 MiB) copied, 0,183171 s, 183 MB/s Press Return to continue DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE Press Return to mount now mount: General system error ~/Desktop> bash mf.sh 1+0 records in 1+0 records out 33554432 bytes (34 MB, 32 MiB) copied, 0,183335 s, 183 MB/s Press Return to continue DiskDeviceJobQueue::Execute(): executing job: N8BPrivate15UninitializeJobE DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE DiskDeviceJobQueue::Execute(): executing job failed: Bad data mkfs: Initialization of "Test" failed: Bad data ~/Desktop>
The No such file or directory
messages are expected when the previous run failed.
Attachments (5)
Change History (12)
by , 2 years ago
comment:2 by , 2 years ago
This was hrev56334-x86_64 on QEMU:
qemu-system-x86_64 -cdrom haiku-master-hrev56334-x86_64-anyboot.iso -m 2.0G -accel kvm,thread=multi -machine vmport=off -smp 4 -no-hpet -device nec-usb-xhci,id=u,bus=pci.0,addr=0x4 -device usb-tablet,bus=u.0 -nic user,domainname=.
I had these issues back then at hrev55788 as well.
comment:3 by , 2 years ago
Component: | File Systems → File Systems/FAT |
---|
comment:4 by , 2 years ago
Priority: | high → normal |
---|
by , 5 months ago
Attachment: | shell-session.hrev57820.txt added |
---|
mount now reports "Invalid Argument" instead of "General system error".
by , 5 months ago
Attachment: | syslog-tail.hrev57820.txt added |
---|
comment:6 by , 5 months ago
From your script:
# a BUG: dd fails to open with "Invalid Argument" error when of=/imgfile is used instead
This isn't a bug; the rootfs (/
) does not support regular files (as it doesn't correspond to any location on the filesystem.)
comment:7 by , 5 months ago
Platform: | x86-64 → All |
---|
It's possible the remaining problems are in the DiskDevice subsystem and not in the FAT driver. Do similar problems happen with any other FS?
by , 5 months ago
Attachment: | ext4_bfs_terminal.hrev57820.txt added |
---|
script change: fat→$1. ext4 reliably "mkfs: Parameters validation failed. Check what you wrote"-"0". BFS does this also, but on alternate invocations gives "DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE" instead; eventually drops into "DiskDeviceJobQueue::Execute(): executing job: N8BPrivate15UninitializeJobE"-"DiskDeviceJobQueue::Execute(): executing job: N8BPrivate13InitializeJobE"-"Press Return to mount now"-"mount: Invalid Argument", recoverable.
by , 5 months ago
Attachment: | ext4_bfs_syslog-tail.hrev57820.txt added |
---|
The script used in the terminal session.