Skip to content

Instantly share code, notes, and snippets.

@yyolk
Last active December 22, 2015 00:08
Show Gist options
  • Save yyolk/6386673 to your computer and use it in GitHub Desktop.
Save yyolk/6386673 to your computer and use it in GitHub Desktop.
howto resize partition on alarmpi

#HOWTO deciphered from http://lol.pman.biz/archives/1052

  1. delete old partitions

  2. create new exteneded and then logical partition (2, 5)

  3. reboot

  4. use resize2fs on /dev/mmcblk0p5 your newly resized, and remade, partition

     fdisk /dev/mmcblk0
     
     d (default[5])
     default
     d (default[2])
     default
     n (extended // default[2])
     n (logical **l** // default[5] 
     
     reboot
     
     [root@alarmpi ~]# resize2fs -p /dev/mmcblk0p2
             
           
     [root@alarmpi ~]# df -h
     Filesystem      Size  Used Avail Use% Mounted on
     /dev/root        30G  446M   28G   2% /
     devtmpfs         51M     0   51M   0% /dev
     tmpfs           105M     0  105M   0% /dev/shm
     tmpfs           105M  236K  105M   1% /run
     tmpfs           105M     0  105M   0% /sys/fs/cgroup
     tmpfs           105M     0  105M   0% /tmp
     /dev/mmcblk0p1   90M   24M   67M  27% /boot
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment