Tag Info

New answers tagged

0

It's in your reserve block count: ext3: Block count: 256000 Reserved block count: 0 ext4: Block count: 256000 Reserved block count: 12800 the fix: # tune2fs -m 0 e4fs


2

Firstly, writing a sparse image to a disk will not result in anything but the whole of the size of that image file - holes and all - covering the disk. This is because handling of sparse files is a quality of the filesystem - and a raw device (such as the one to which you write the image) has no such thing yet. A sparse file can be stored safely and securely ...


0

Are you wanting to create this image with a 800MB of space, so you can copy to sd cards. But not wanting to wast space when storing the image. If so may I suggest compression, such as bzip. It will depend on unused blocks being initialised to zero though.


-1

Hope I understand the question properly: To shrink a file-system and partition. Use gparted.


5

The easiest way to do this is to create your backing file as a sparse file; that is, make it 1GB with truncate -s 1G disk.img instead of dd if=/dev/zero bs=1048576 count=1024 of=disk.img (or whatever). Nicely, truncate is also far faster. If you do an ls -l on the file, it'll show as 1GB—but that's only its apparent size. du disk.img will give the actual ...



Top 50 recent answers are included