Falsely claims that drive is busy. #10

Closed
opened 2020-05-07 17:05:19 +03:00 by Barafu · 6 comments
Barafu commented 2020-05-07 17:05:19 +03:00 (Migrated from github.com)

USB drive has no partitions on it, only gpt table. It can not be busy.
Manjaro Linux.

OK 16:59:17 [barafu] ~/Downloads >>>
sudo ./windows2usb-0.1.5-x86_64.AppImage /dev/sdf Win10_1909_EnglishInternational_x64.iso gptntfs
 == Working with ISO CCCOMA_X64FRE_EN-GB_DV9 ==
 == Creating new GPT-formatted partition table ==
Checking that no-one is using this disk right now ... OK

Disk /dev/sdf: 15 GiB, 16059990016 bytes, 31367168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: A37AA70F-3913-42AB-B4DD-341C49F5927E

Old situation:

>>> Script header accepted.
>>> Done.
Created a new GPT disklabel (GUID: 316AA4D1-FB0E-A641-98F6-DBF5C74D4C98).

New situation:
Disklabel type: gpt
Disk identifier: 316AA4D1-FB0E-A641-98F6-DBF5C74D4C98

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
 == Creating UEFI FAT and Microsoft NTFS partitions ==
Checking that no-one is using this disk right now ... FAILED

This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.

sfdisk: Use the --force flag to overrule all checks.
umount: /run/windows2usb.LIK5PVuVWl: not mounted.

Error 1 16:59:21 [barafu] ~/Downloads >>>
USB drive has no partitions on it, only gpt table. It can not be busy. Manjaro Linux. ``` OK 16:59:17 [barafu] ~/Downloads >>> sudo ./windows2usb-0.1.5-x86_64.AppImage /dev/sdf Win10_1909_EnglishInternational_x64.iso gptntfs == Working with ISO CCCOMA_X64FRE_EN-GB_DV9 == == Creating new GPT-formatted partition table == Checking that no-one is using this disk right now ... OK Disk /dev/sdf: 15 GiB, 16059990016 bytes, 31367168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: A37AA70F-3913-42AB-B4DD-341C49F5927E Old situation: >>> Script header accepted. >>> Done. Created a new GPT disklabel (GUID: 316AA4D1-FB0E-A641-98F6-DBF5C74D4C98). New situation: Disklabel type: gpt Disk identifier: 316AA4D1-FB0E-A641-98F6-DBF5C74D4C98 The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. == Creating UEFI FAT and Microsoft NTFS partitions == Checking that no-one is using this disk right now ... FAILED This disk is currently in use - repartitioning is probably a bad idea. Umount all file systems, and swapoff all swap partitions on this disk. Use the --no-reread flag to suppress this check. sfdisk: Use the --force flag to overrule all checks. umount: /run/windows2usb.LIK5PVuVWl: not mounted. Error 1 16:59:21 [barafu] ~/Downloads >>> ```
ValdikSS commented 2020-05-07 19:17:34 +03:00 (Migrated from github.com)

Could it be you have automount configured somewhere in operating system (udisks?) or in desktop environment?
After you get this error, what shows mount command? Does it list the partition as mounted?
If not, this could be a race condition of some sort, try adding
sleep 3
on line 227 of the file.

Could it be you have automount configured somewhere in operating system (udisks?) or in desktop environment? After you get this error, what shows `mount` command? Does it list the partition as mounted? If not, this could be a race condition of some sort, try adding `sleep 3` on line 227 of the file.
Barafu commented 2020-05-12 07:31:56 +03:00 (Migrated from github.com)

No, I checked that. Mount shows nothing, lsof shows nothing. And what can they show on a drive without partitions and fs table? I'll try editing the file soon.

No, I checked that. Mount shows nothing, lsof shows nothing. And what can they show on a drive without partitions and fs table? I'll try editing the file soon.
ValdikSS commented 2020-05-26 17:33:52 +03:00 (Migrated from github.com)

So, have you tried? What's the result?

So, have you tried? What's the result?
ValdikSS commented 2020-08-09 19:00:36 +03:00 (Migrated from github.com)

Any update?

Any update?
asafalg commented 2020-08-13 13:05:59 +03:00 (Migrated from github.com)

I had the same issue, seems like adding sleep 3 worked.

I had the same issue, seems like adding sleep 3 worked.
ValdikSS commented 2020-08-15 11:00:39 +03:00 (Migrated from github.com)

Should be fixed in new version.

Should be fixed in new version.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Max/ValdikSS_windows2usb#10