Skip to content

Cannot mount target filesystem: ("needed_space=$(du --summarize --bytes "${source_fs_mountpoint}" | awk '{print $1}')" failed with exit status "1") #141

@Hexa3333

Description

@Hexa3333

The program does not mount the target filesystem.

To Reproduce

  1. Simply run command woeusb --device <iso_path> <disk_path> --tgt-fs NTFS
  2. Wait until the program outputs Info: Mounting target filesystem...
  3. It's a never ending loop here so interrupt it to see the error.

Teminal output

Info: Mounting source filesystem...
Info: Wiping all existing partition table and filesystem signatures in /dev/sdc...
/dev/sdc: 2 bytes were erased at offset 0x000001fe (dos): 55 aa
/dev/sdc: calling ioctl to re-read partition table: Success
Info: Ensure that /dev/sdc is really wiped...
Info: Creating new partition table on /dev/sdc...
Info: Creating target partition...
Info: Making system realize that partition table has changed...
Info: Wait 3 seconds for block device nodes to populate...
Cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
--2024-11-25 16:43:33--  https://cdn.jsdelivr.net/gh/pbatard/rufus@b30e3b387a3ca7a5e2fddebcc2c8f9538a89b868/res/uefi/uefi-ntfs.img
Resolving cdn.jsdelivr.net (cdn.jsdelivr.net)... 151.101.65.229, 151.101.1.229, 151.101.129.229, ...
Connecting to cdn.jsdelivr.net (cdn.jsdelivr.net)|151.101.65.229|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1048576 (1.0M) [application/octet-stream]
Saving to: ‘/tmp/WoeUSB.tempdir.P70a9h/uefi-ntfs.img’

uefi-ntfs.img                     100%[===========================================================>]   1.00M  --.-KB/s    in 0.1s    

2024-11-25 16:43:34 (7.28 MB/s) - ‘/tmp/WoeUSB.tempdir.P70a9h/uefi-ntfs.img’ saved [1048576/1048576]

2048+0 records in
2048+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.230149 s, 4.6 MB/s
Info: Mounting target filesystem...
^C
Warning: Recieved SIGINT, program is interrupted.
ERROR: The command "needed_space=$(du --summarize --bytes "${source_fs_mountpoint}" | awk '{print $1}')" failed with exit status "1", program is prematurely aborted

Environment

  • OS: Debian 12 bookworm x86_64
  • Bash: 5.12.15
  • WoeUSB: 5.2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions