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

CreatePersistentImg.sh | Unknown minimal value for the persistence size #1384

Closed
1 task done
Ricky-Tigg opened this issue Jan 14, 2022 · 1 comment
Closed
1 task done

Comments

@Ricky-Tigg
Copy link

Official FAQ

  • I have checked the official FAQ.

Ventoy Version

1.0.64

What about latest release

Yes. I have tried the latest release, but the bug still exist.

BIOS Mode

Both

Partition Style

MBR

Disk Capacity

4 GiB

Disk Manufacturer

No response

Image file checksum (if applicable)

No response

Image file download link (if applicable)

No response

What happened?

Distros | Tested ISO | Label | Notes
Fedora | Fedora-Workstation-Live-x86_64-33-1.2.iso | vtoycow | Need to add selinux=0 in the boot option

  • Command executed – which i conceived is valid when aimed to apply to a Fedora Linux disk image; sh CreatePersistentImg.sh -s 16 -t xfs -l pysyvyys.

Investigating the minimal valid value of persistence size, leads me to conclude that it is 16 MiB. That minimal value may be worth a mention in the document and the README file of the Ventoy installation archive for Linux since specified values superior to null and inferior to that value, cause those messages.

# sh CreatePersistentImg.sh -s 1 -t xfs -l pysyvyys
Invalid size 1
# sh CreatePersistentImg.sh -s 2 -t xfs -l pysyvyys
2+0 records in
2+0 records out
2097152 bytes (2.1 MB, 2.0 MiB) copied, 0.0215541 s, 97.3 MB/s
size 512 of data subvolume is too small, minimum 4096 blocks
Usage: mkfs.xfs
(...)
			devicename
<devicename> is required unless -d name=xxx is given.
<num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
      xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
<value> is xxx (512 byte blocks).
@ventoy
Copy link
Owner

ventoy commented Jan 15, 2022

I add a check for size in CreatePersistentImg.sh

@ventoy ventoy closed this as completed Jan 15, 2022
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

2 participants