--- wikisrc/ports/evbarm/beaglebone.mdwn 2013/01/07 17:45:10 1.3 +++ wikisrc/ports/evbarm/beaglebone.mdwn 2013/11/20 13:53:44 1.4 @@ -64,3 +64,43 @@ WARNING: using filesystem time WARNING: CHECK AND RESET THE DATE! init: copying out path `/sbin/init' 11 """]] + + + - Growing the root file-system + - During the partitioning process, do not delete or format the + first MSDOS (FAT) partition, as the Raspberry pi firmware is + hard coded to boot on the SDCAD / 1st MSDOS partition / Firmware + updates and boot loader. + - Copy /boot/cmdline.txt to /boot/cmdline.txt.orig + - Edit /boot/cmdline.txt and add the '-s' flag to the end of the first line of text to boot into single-user mode. + - Reboot, and at the prompt to enter the passname of shell, press + return for the default (/bin/sh). + - At the # prompt, type + + "disklabel -i ld0" and press return. + - At the partition> prompt type "A" and press return. + + Adjust disklabel sector from 4194304 to 62333952 [n]? + Type "y" and press return. + - partition> prompt type "a" and press return. + + Filesystem type prompt, press return to use the current value (4.2BSD). + Start offset prompt, press return to use the current value. + Partition size prompt, type "$" and press return to grow the + partition to use all available free space. + - partition> prompt type "W" to save the changes to the disklabel. + + Confirm this choice by typing "y" at the Label disk prompt. + Type "Q" and press return to quit disklabel. + - At the # prompt (shell), type + + fsck -fy /dev/rld0a + resize_ffs -y /dev/rld0a + - This may take a few minutes, be patient! + + fsck -fy /dev/rld0a + mount_msdos /dev/ld0e /boot + mv /boot/cmdline.txt.orig /boot/cmdline.txt + reboot + - When the system comes back up, the root file-system will have been expanded to + fill the SD card.