Skip to main content

Questions tagged [sparsefile]

The tag has no usage guidance.

1 vote
1 answer
112 views

Is there a tool like `dd` but respect sparse-ness of input file?

I am creating disk images with multiple ext4 partitions on it. Each ext4 partition content is created with mkfs.ext4 and the resulting filesystem image files are "sparse". When I use dd to ...
1 vote
1 answer
117 views

dphys-swapfile on btrfs volume fails

I have used dphys-swapfile with the default path of /var/swap and a 2048M swap file. However, since /var/swap is on a SD card, I wanted to move the swap file to a magnetic disk. So I ran sudo dphys-...
11 votes
1 answer
2k views

How can I remove holes in a sparse file on Linux?

How do I remove all holes in a sparse file on Linux? On Windows, I believe the procedure is fsutil sparse setflag <file> 0 What is the Linux equivalent? (I know cp <file> <file>.cp; ...
2 votes
2 answers
1k 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. ...
0 votes
1 answer
573 views

How to shrink sparse files in same way as rsync does in linux after copied them without "-S" operator?

I try to take a backup of a disk. I use rsync to backup files between disks. However, while used --delete option in rsync alone and then backup, destination disk is almost full while source not. By ...
1 vote
0 answers
219 views

Is there a Windows equivalent to fallocate --punch-holes?

I'm looking for a way to punch holes in files on Windows such that the actual size-on-disk goes down, and the area that is punched gets deleted. Identical to the behavior of fallocate --punch-holes on ...
0 votes
0 answers
140 views

How does my spinning HDD reach 320 MB/s?

While creating an image of a (mostly empty) 1TB spinning hard disk, I was expecting a read speed of around 120 MB/s, and on the first blocks it was like that, but after that, most of the time it was ...
3 votes
1 answer
423 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 ...
0 votes
1 answer
565 views

How to re-sync already transfered sparse file with rsync?

I have completely transferred a file using rsync without the use of the --sparse, -S option. I don't want to waste space and thus re-sync the file and turn it into a sparse file. Is there a way to ...
0 votes
1 answer
62 views

Can I somehow split one single file between drives? Windows

I want to split a bigger file (virtual machine disk) between my available drives. Is it possible? If so, how would one do it? Simple use case: In today's world, you may have many different drives in ...
21 votes
1 answer
24k 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 ...
0 votes
2 answers
264 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 ...
9 votes
4 answers
6k 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 ...
0 votes
1 answer
189 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 ...
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 ...

15 30 50 per page