Changes

Jump to: navigation, search

Fedora ARM Secondary Architecture/rootfs-resize

2,316 bytes removed, 13:46, 14 January 2013
no edit summary
== The rootfs-resize script ==
rootfs-resize is a script included service written in Fedora 17 ARM python which resizes the root partition and used filesystem to resize SD card images. == README == From the rootfs-resize tarball: <pre>===== rootfs-resize version 0.1 - 2012-06-08 ===== rootfs-resize is a simple bash script designed for use fill available space (typically onARM computers that use an SD card for storage. Since SD cardscan be purchased in various sizes, and since even cards of thesame nominal size may have slightly different capacities, it isimpossible to create an SD card image guaranteed to exactly fita card). It is also inefficient to have an image that is largerthan the files contained within that image, because the "extraspace" will/may slow compression, download, and SD-card burnactivities. As a result, used by the Fedora ARM SD card images typically containa boot filesystem (usually FAT/VFAT) followed by a Linux extXroot filesystem. The second filesystem is sized so that itis just big enough for the contained files. The rootfs-resize script attempts to resize the root (second)partition on the SD card to fill the device. At present, itdoes this by deleting the root partition and then recreatingit to fill the card; on the next boot, a background resize2fsis performed to resize the filesystem. Minimal basic sanity-checking is performed: the device containingthe rootfs must contain exactly two partitions, as reported by"fdisk -l". If additional partitions have been created, thescript will not run. The name of the block device containing theroot filesystem must be /dev/sdX or /dev/mmcblk0pX. In order to resize the partition, the file /.rootfs-repartitionmust be present. After the partition resize operation, this fileis removed project and the file /.rootfs-resize is created; on next boot,when the resize2fs is started, the /.rootfs-resize file isremoved. The operation of this script may be disabled in either of thesetwo ways: (1) By passing a kernel command line argument of "nofsresize" (2) By creating the file /.nofsresize If either of these suppressions flags are present, the scriptwill not run, and it will disable itself for future boots. This script and the corresponding systemd unit file are licensedunder the GPL v2, or at the user's discretion, any later version. This script is being included in Fedora 17 ARM, but the FedoraARM team intends to introduce a more advanced and robust resizingmechanism in later releasesuseful with other architectures.</pre>
== Location ==
The rootfs-resize code can be found here: httphttps://scotlandgithub.proximity.on.cacom/fedora-armctyler/rootfs-resize
== Credits ==
Please refer to the rootfs-resize script in the package/tarball for credits.
 
== Future Plans ==
 
It is intended that this script will be replaced by a more advanced and robust mechanism in future Fedora ARM releases.

Navigation menu