Questions tagged [sparsefile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Does `xxd -r hexdump.raw sparse.iso` -- xdd in reverse format to sparse file preserves the sparseness? [duplicate]

I have a hexdump of some disk -- that is almost empty aside from MBR records -- in the sparse format (collapsing rows with zeros) and I wanted to recreate a sparse iso file from that dump by writing ...
user avatar
  • 11
0 votes
1 answer
135 views

Why can't I create sparse files on my NTFS partition under Linux?

I have a very large sparse file on an EXT4 partition, and I want to copy that file to an NTFS partition. The file has a size of about 2 TB, but since it is a sparse file it uses only 700 GB on disk. ...
user avatar
  • 450
0 votes
0 answers
49 views

How to compare huge sparse files efficiently?

There are two sparse files. They are proved identical by diff. But it took 20 minutes (too long time) to compare. I am thinking of taring them into tiny files to speed up the comparison. But they tar ...
user avatar
  • 481
0 votes
2 answers
42 views

How can I create a scenario to test zerofree?

What I am doing I am studying the filesystem image sparse tool: zerofree. I imagine the steps to create the scenario should be that: create a file system image. use some way to fill it. clear it, but ...
user avatar
0 votes
1 answer
83 views

Is it safe to interrupt when "fallocate --dig-holes" is running?

I use fallocate --dig-holes on very large disk images to make it sparse in-place. I'm worried that this operation may not be atomic. My questions are, Is my data guaranteed to be safe (holes are ...
user avatar
  • 123
0 votes
0 answers
86 views

File NOT set as sparse but sparse attribute is seen set on windows explorer

There is a test file in windows machine where it is seen having sparse file attribute (P). But suing fsutil sparse queryflag says the file is not sparse. Even queryrange range says the same. This is ...
user avatar
6 votes
0 answers
176 views

Determining status of cloned file on APFS

Apple is now using APFS across several product lines, including macOS. This new filesystem has some nice features for minimizing how much actual disk space is consumed, such as sparse file support ...
user avatar
  • 168
0 votes
0 answers
19 views

Compact transfer of partially empty blockdevice images for further compression

I like to do backups from a bunch of linux block devices on remote machines. Currently I am transferring the complete block device, albeit almost empty, to the backup machine and compress or ...
user avatar
  • 1,780
1 vote
1 answer
712 views

Looking for the best way to backup and restore a directory of sparse files

We have a directory of sparse files (du returns 240M for one of these files; ls returns 960M). When we copy one of these files over to S3, we end up uploading the entire 960M, and on downloading ...
user avatar
  • 840
1 vote
1 answer
825 views

NTFS support on Linux, dealing with large sparse files, impact on performance

Background : I attempted to recover data from a failing HDD using ddrescue on a recent Knoppix environment. At first I stored the output to a NTFS partition, but at some point the copying rate ...
user avatar
  • 797
1 vote
2 answers
985 views

ddrescue, “size on disk” lower than total size, with possible impact on performance when writing to NTFS

The backstory is in my previous question and my own answer to it. At one moment I had two partial images created by ddrescue: one file on NTFS filesystem and the other on ext4. I had noticed quite ...
user avatar
  • 797
0 votes
1 answer
703 views

Why does unxz return this invalid argument error?

I'm using the command unxz on Linux (Ubuntu) to convert an .img.xz file to just an .img file. The command I'm entering is as follows: unxz kali-2017.01-rpi2.img.xz But it just returns this error: ...
user avatar
4 votes
1 answer
507 views

Huge Docker file and `tar` behavior

When I did a backup on my Linux system with tar -czv, I noticed that the process is stuck very long at /var/lib/docker/devicemapper/devicemapper/data (way longer than a copy of all my images and ...
user avatar
  • 43
19 votes
1 answer
18k views

Why didn't `dd conv=sparse` save space as I expected?

I was going to make an image of my old USB drive. I had good reasons to expect there were some blocks filled with zeros on the device, so to save some space I used conv=sparse option: dd if=/dev/sdb ...
user avatar
0 votes
2 answers
654 views

How to remove sparsefile attribute

Answers to how to remove the sparsefile file attribute appear to revolve around: fsutil sparse setflag <filename> 0|1 This does not work for me. I am on Windows 7 Pro 32-bit NTFS, as an ...
user avatar
  • 101
2 votes
4 answers
3k views

How To Format A Disk Image To Be Recognized By MS-DOS?

I'm trying to emulate windows with bochs on my android device. I've got the following drives: an empty disk image to install windows on, a virtual vvfat drive with the setup files, and a cdrom drive ...
user avatar
1 vote
2 answers
1k views

How To Make A Sparse File On Android With Terminal

I'm trying to make a sparse file on android. For this I'm using Android Terminal Emulator. I have installed Busybox so I can use the dd command. Other commands like truncate aren't installed. My ...
user avatar
0 votes
0 answers
564 views

Sparse file performance on Windows with an SSD

Does anyone have any data or experience with sparse file performance on SSDs under Windows, with the NTFS filesystem? It seems like performance should be excellent since seek time is effectively zero,...
user avatar
0 votes
1 answer
217 views

How to access files on a zfs pool of which only the vdev is left?

I set up a zfs pool mypool with one sparse file as vdev. After a system crash only the undamaged vdev is left. Is there any chance to get files and folders out of it? I don't care to create another ...
user avatar
0 votes
1 answer
2k views

sparse file moving/copying over NFS

I created a sparse file with truncate -s 4T image.img on an ext4 file system which I mount over NFS. The following test shows that the system has trouble with the recognition of sparse files: both ...
user avatar
2 votes
1 answer
10k views

Change sparse attribute from an .iso file on Windows 8.1

I have few very large .iso files in my computer altogether about 1TB. All of them are sparse files and i want to remove the sparse flag/attribute from them, is there a way how to do it? Maybe some ...
user avatar
  • 123
7 votes
4 answers
5k views

copy|move sparse files on NTFS with Windows

How can I copy or move a sparse file from one NTFS volume to another NTFS volume while maintaining the sparseness using the native tools included with Windows? If there is no way to do this with the ...
user avatar