expand rootfs to sd card.

274 views
Skip to first unread message

earless

unread,
Nov 23, 2014, 2:46:38 PM11/23/14
to beagl...@googlegroups.com
Can i expand the rootfs to an sd card if im booting  from the  emmc or can i only do this if im booting from the sd card?

William Hermans

unread,
Nov 23, 2014, 3:33:47 PM11/23/14
to beagl...@googlegroups.com
You can pull your rootfs from anywhere you like so long as it is supported. SDcard, NFS share( network ) USB, and perhaps I am forgetting one or two options.

http://unix.stackexchange.com/questions/87580/partition-scheme-for-installation-of-debian

Although, we're talking flash media here, so I would strongly suggest you go without a swap disk.

Typically, it is easiest, and most common to mount the /home directory from additional media. In other cases, someone may mount /var/log on its own partition too. You can do this with just about any directory I think, but it become more complex as sometimes it not always possible to remount part of the file system on the system its self while it is running.

On Sun, Nov 23, 2014 at 12:46 PM, earless <gunc...@gmail.com> wrote:
Can i expand the rootfs to an sd card if im booting  from the  emmc or can i only do this if im booting from the sd card?

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

earless

unread,
Nov 23, 2014, 3:49:17 PM11/23/14
to beagl...@googlegroups.com
ok thanks for your reply. I definitely wan to go with the easiest route so i will boot from sd card instead.

William Hermans

unread,
Nov 23, 2014, 4:04:57 PM11/23/14
to beagl...@googlegroups.com
Your call. Just curious, why do you need or want to increase your file system size ? The reason I ask is because for increasing the size for say /home is rather trivial. Just 3-4 simple steps such as . . .

  1. partition and format the new media.
  2. mount the new media in a temporary location.
  3. copy the whole of /home to the new media - then unmount.
  4. edit /etc/fstab to reflect the changes- Pointing to the new media.

A quick google search would yield tons of accurate results. As in step by step how to's.

earless

unread,
Nov 23, 2014, 4:47:57 PM11/23/14
to beagl...@googlegroups.com
I want to expand root so i can install Qt embedded on my beagle bone. Im building it natively and I got a "no space left on device" error when installing.

Robert Nelson

unread,
Nov 23, 2014, 4:53:00 PM11/23/14
to Beagle Board
On Sun, Nov 23, 2014 at 3:47 PM, earless <gunc...@gmail.com> wrote:
> I want to expand root so i can install Qt embedded on my beagle bone. Im
> building it natively and I got a "no space left on device" error when
> installing.

What was the file name of the "img" did you installed, and where did
you install it to: microSD or eMMC..

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

earless

unread,
Nov 23, 2014, 5:13:51 PM11/23/14
to beagl...@googlegroups.com
I was installing the qt widget library using
wget  http://jaist.dl.sourceforge.net/project/qwt/qwt/6.1.0/qwt-6.1.0.tar.bz2
I tried to build and install it on the eMMC.

Robert Nelson

unread,
Nov 23, 2014, 5:22:29 PM11/23/14
to Beagle Board
On Sun, Nov 23, 2014 at 4:13 PM, earless <gunc...@gmail.com> wrote:
> I was installing the qt widget library using
> wget
> http://jaist.dl.sourceforge.net/project/qwt/qwt/6.1.0/qwt-6.1.0.tar.bz2
> I tried to build and install it on the eMMC.

The "os"..

For the "eMMC" most "flasher" scripts setup the full partition.. You
either get 2gb or 4gb on the eMMC...

earless

unread,
Nov 23, 2014, 5:28:26 PM11/23/14
to beagl...@googlegroups.com
yeah i have 4gb on eMMC but its not enough to build all the qt stuff.

Robert Nelson

unread,
Nov 23, 2014, 5:30:48 PM11/23/14
to Beagle Board
On Sun, Nov 23, 2014 at 4:28 PM, earless <gunc...@gmail.com> wrote:
> yeah i have 4gb on eMMC but its not enough to build all the qt stuff.

Just boot off a big microSD card..

earless

unread,
Nov 23, 2014, 8:52:37 PM11/23/14
to beagl...@googlegroups.com
I booted from an sdcard and ran the following commands grow the partition to the entire size of the sdcard(16GB)

sudo cd /opt/scripts/tools
sudo git pull
sudo
./grow_partition.sh
sudo shutdown
-r now

after reboot i ran
df -h

but the rootfs shows its size as 1.6G and im using 1.5G. I was expecting to see size at around 16G so I dont think it expanded the partition. am i missing something??

Robert Nelson

unread,
Nov 23, 2014, 9:14:56 PM11/23/14
to Beagle Board
Try again, with a 16GB card, it'll take a little bit for the 'expand'
function to work on extX..

earless

unread,
Nov 24, 2014, 1:24:12 PM11/24/14
to beagl...@googlegroups.com
thanks, works now.
Reply all
Reply to author
Forward
0 new messages