Post
Topic
Board Mining software (miners)
Re: Linux mining distro for the Raspberry PI - MinePeon
by
Malakai
on 08/08/2013, 01:40:15 UTC
does minepeon have raspi-config? how do i expand the root fs?

I am not sure if it re-sizes or not. If not this will do it.

Code:
sudo fdisk /dev/mmcblk0

In fdisk,

    Press ‘p’ to print the partition table, take note of the number in the Start column of the row starting ‘/dev/mmcblk0p2′
    Press ‘d’ to delete a partition then enter ’2′ to choose the second partition
    Press ‘n’ to create a new partition, all the default options are fine:

    Choose ‘primary’ partition type
    Partition number 2
    The starting block should be same number you took note of in step 1 (It should be the default number so press Enter)
    The default ending block should be the last available block on the SD card, this will vary depending on what size SD card you have (Press Enter)

4. Press ‘w’ to write the new partition table and return to the bash prompt

Reboot now to force the kernel to recognize the new partition table.

Code:
sudo reboot

Now you need to resize the file system

Code:
sudo resize2fs /dev/mmcblk0p2

Code:
df -h

Should now show something like:

Code:
[minepeon@minepeon ~]$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G  1.2G   13G   9% /
devtmpfs        210M     0  210M   0% /dev
tmpfs           218M     0  218M   0% /dev/shm
tmpfs           218M  264K  218M   1% /run
tmpfs           218M     0  218M   0% /sys/fs/cgroup
tmpfs           218M     0  218M   0% /tmp
/dev/mmcblk0p1   94M   24M   71M  26% /boot