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

Support compression #817

Open
2 tasks
TPS opened this issue Mar 28, 2021 · 7 comments
Open
2 tasks

Support compression #817

TPS opened this issue Mar 28, 2021 · 7 comments

Comments

@TPS
Copy link

TPS commented Mar 28, 2021

@ventoy All the listed currently-supported disk image formats are typically uncompressed, which is wasteful when supporting multiple disk images on an often limited-space USB drive. Could compression be supported in @ least 1 of these ways?:

@ventoy
Copy link
Owner

ventoy commented Mar 29, 2021

As I said in #645
Ventoy depends on the file's location on the disk and map these blocks to a virtual device.
So the file in the filesystem can NOT be compressed.
So brtfs and other filesystems with compression enabled can NOT be supported.

@TPS
Copy link
Author

TPS commented Mar 29, 2021

Are the rest possible?

@whocares0101
Copy link

How about mame chd support?
https://github.com/rtissera/libchdr

@HaleTom
Copy link

HaleTom commented Jan 27, 2022

For other Googlers, to find this issue:

error: module `ntfscomp` isn't loaded
error: read MFT 0x53 fails.

Work-around: You don't need to uncompress the whole drive, just the .iso itself, or perhaps the folder containing your boot ISOs :)

@derzahla
Copy link

cant img/iso files compressed with various tools be uncompressed to a ramdisk and treated the same as uncompressed images? That would be a great feature

@HaleTom
Copy link

HaleTom commented Jun 28, 2023

@derzahla that's a good idea -- feel free to raise it as a separate issue :)

Even so, the ISO couldn't be loaded into ramdisk as per your suggestion because of this current issue: the data in the ISO couldn't be read if the ISO was compressed and residing on NTFS.

@polarathene
Copy link

polarathene commented Jul 24, 2023

Ventoy depends on the file's location on the disk and map these blocks to a virtual device.
So the file in the filesystem can NOT be compressed.
So brtfs and other filesystems with compression enabled can NOT be supported.

Is there a particular resource that clarifies this limitation?

I would have thought that the filesystem was responsible for managing it's data and how it compresses and stores the extents of a file. Other software would just take the file and could modify any part of it completely oblivious to filesystem features like compression, without any issue.

What is different with how Ventoy approaches it?


A 128 GB fixed size .img (with a linux OS install) compressed to 7GB disk usage on host BTRFS (with compression enabled) disk, but without using specialized utility like compsize, most generic software still considers it as 128 GB file.

I would have thought that Ventoy would map the 128GB file as per usual, and BTRFS would handle the compression behind the scenes without any issues/differences?

I tried to look up compression limitation with device mapper but wasn't finding any helpful results :(

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

6 participants