Changes

Jump to: navigation, search

Pidora SOP

1,643 bytes added, 11:33, 19 August 2014
Shrinking The Image
Example usage
* shrink disk_image.img
 
*Note sometimes this script does not unmount the tmp directory it mounts /tmp/tmp.v9ADZEWeP2.
 
script output
<pre>
Shrinking /var/tmp/diskTLTF4t.img to minimum size plus 220 MB.
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/loop0p2 2.9G 1.8G 1.1G 63% /tmp/tmp.v9ADZEWeP2
220+0 records in
220+0 records out
230686720 bytes (231 MB) copied, 2.30747 s, 100 MB/s
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/loop0p2 2.9G 2.0G 832M 71% /tmp/tmp.v9ADZEWeP2
e2fsck 1.42 (29-Nov-2011)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
rootfs: 77485/192000 files (0.1% non-contiguous), 516702/768000 blocks
 
 
Disk /var/tmp/diskTLTF4t.img: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders, total 8388608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009c1ec
 
Device Boot Start End Blocks Id System
/var/tmp/diskTLTF4t.img1 * 2048 104447 51200 c W95 FAT32 (LBA)
/var/tmp/diskTLTF4t.img2 104448 4234064 2064808+ 83 Linux
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/loop0p2 2.0G 2.0G 0 100% /tmp/tmp.v9ADZEWeP2
removed `/tmp/tmp.v9ADZEWeP2/resize-reserve'
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/loop0p2 2.0G 1.8G 133M 93% /tmp/tmp.v9ADZEWeP2
Image shrink completed.
</pre>
== Preparing Pidora Noobs distribution ==
1
edit

Navigation menu