[fedora-arm] Resize procedure - Re: Pi2B remix

Robert Moskowitz rgm at htt-consult.com
Fri Mar 6 13:00:15 UTC 2015


This is interesting.  Can this be a part of the installer script to 
resize the partition after the xzcat?

How would you do this?


On 03/06/2015 07:15 AM, Adrian wrote:
> My resize procedure (works well)
>
> [root at raspi2 ~]# yum install rootfs-resize
> <<<snip>>>
>
> Installed:
> rootfs-resize.noarch 0:2.0-5.fc21
>
> Dependency Installed:
> python-psutil.armv7hl 0:1.2.1-5.fc21
>
> Complete!
> [root at raspi2
>
> [root at raspi2 ~]# nano /boot/headless
>
> RESIZE
>
> cntrl X > y > enter to save
>
> [root at raspi2 ~]# touch /.rootfs-repartition
> [root at raspi2 ~]# touch /.resized
> [root at raspi2 ~]# echo $swap | grep -o '[0-9]*' > /.swap
>
> [root at raspi2 ~]# df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/root 3.1G 1.5G 1.6G 50% /
> devtmpfs 484M 0 484M 0% /dev
> tmpfs 488M 0 488M 0% /dev/shm
> tmpfs 488M 436K 487M 1% /run
> tmpfs 488M 0 488M 0% /sys/fs/cgroup
> /dev/mmcblk0p1 488M 22M 467M 5% /boot
> tmpfs 98M 0 98M 0% /run/user/0
> [root at raspi2 ~]#
>
> # reboot
>
> RESIZE Successful
>
> [root at raspi2 ~]# df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/root 6.7G 1.5G 5.2G 23% /
> devtmpfs 484M 0 484M 0% /dev
> tmpfs 488M 0 488M 0% /dev/shm
> tmpfs 488M 340K 487M 1% /run
> tmpfs 488M 0 488M 0% /sys/fs/cgroup
> /dev/mmcblk0p1 488M 22M 467M 5% /boot
> tmpfs 98M 0 98M 0% /run/user/0
> [root at gb7de ~]#
>
> [root at raspi2 ~]# rm /boot/headless
>
> DONE
>
> Adrian ... vk4tux
> _______________________________________________
> arm mailing list
> arm at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/arm



More information about the arm mailing list