Warning: session_start(): open(/tmp/sess_4f4a9ee2c32033895aa9a2a6de939f9c, O_RDWR) failed: No space left on device (28) in /var/www/html/inc/init.php on line 265

Warning: session_start(): Failed to read session data: files (path: ) in /var/www/html/inc/init.php on line 265
Writing /var/www/html/data/log/error/2024-06-17.log failed

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/init.php:265) in /var/www/html/inc/auth.php on line 432
Writing /var/www/html/data/log/error/2024-06-17.log failed

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/init.php:265) in /var/www/html/inc/actions.php on line 38
resize_rootfs_raspberrypi [Ben's notes]

Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


resize_rootfs_raspberrypi

Raspbian - resize rootfs

  • As root.
    fdisk /dev/mmcblk0
  • Delete the second partition /dev/mmcblk0p2
    d
    2
  • Create a new primary partition and use default sizes prompted. This will then create a partiton that fills the disk
    n
    p
    2
    enter
    enter
  • Save and exit fdisk.
    w
  • Now reboot. Once rebooted:
    resize2fs /dev/mmcblk0p2
resize_rootfs_raspberrypi.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1