Here is how to utilise the full capacity of your Raspberry Pi’s SD card after installing the Debian image which gives a 2GB root partition:
Step 1: Run fdisk as sudo
sudo fdisk -cu /dev/mmcblk0
Step 2: enter p to view the current partition table:
Commands (m for help): p
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2048 155647 76800 c W95 FAT32 (LBA)
/dev/mmcblk0p2 157696 3414015 1628160 83 Linux
/dev/mmcblk0p3 3416064 3807231 195584 82 Linux swap / Solaris
Step 3: Delete partitions 2 and 3 (root and swap)
Command (m for help): d
Partition number (1-4): 2
Command (m for help):d
Command (m for help): 3
Step 4: Create a new primary partition (2) starting where the previous partition 2 started (usually 157696)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First sector (155648-8058879, default 155648: 157696
Last sector, +sectors or +size{K,M,G} (157696-8058879, default 8058879): (press enter)
Your partition table will now look something like this: (The numbers will change depending on the size of your card, I am using a 4Gb card)
p
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2048 155647 76800 c W95 FAT32 (LBA)
/dev/mmcblk0p2 157696 8058879 3950592 83 Linux
Command (m for help): w
this writes the new partition table to the SD card
The Partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
Step 5: Reboot to reload the partition table
sudo shutdown -r now
Step 6: Once it has rebooted, log back in and resize partition 2 (Takes a while, be patient!)
sudo resize2fs /dev/mmcblk0p2
Done!
FOTOBETTER RGB Handheld Photography Light Portable LED Video Light Wand with Remote Control, 9 Colors, 1000 Lumen 12 Brightness Levels 3200K-5600K Adjustable, USB Rechargeable LED Video Light Stick
£51.88【9 color modes and 12-level brightness adjustable with remote control, very powerful and convenient】The FOTOBETTER LW-R48N RGB LED light wand features with 9 color modes,12-level brightness and maximum 1000 lumens, RA>95,CCT ranges from 3200K(warm) t... read more
(as of 9th April 2021 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)DisplayPort to DisplayPort Cable 2m, Snowkids 4K DisplayPort 1.2 Cable[[email protected], [email protected], [email protected]], 1.2 DP to DP Cable Gold-Plated Nylon Braided High Speed cord for Laptop,PC
£6.66💎 [Designed for Gaming Experience] Snowkids DisplayPort 1.2 Cable (2m) is specially designed for game lovers. The supported frame rates are [[email protected],[email protected], [email protected]]. Support resolution (UHD:3840x2160) and refresh rate (165HZ). There is no flicker... read more
(as of 10th April 2021 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)5Plus Group CR1220 Battery 3V Lithium 5PCS (CR 1220 / Batteries CR1220 / DL1220 / ECR1220) for watches,Remotes,LED lights,electronic devices,Toys,Car key,Scales
£3.25High Quality: Tested under Strict Quality Control Standards. CE and ROHS Certified. Grade A cells CR1220 Ensure Longer Battery Life and Long Lasting Power Get the Exact Fresh CR1220 Battery, Have Full 3 Volts Charge, 2 Years Shelf Life from 5Plus Gro... read more
(as of 10th April 2021 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Extension Lead UK Pin Plug and Cable, 4 Gang Way 2m Power Adapter, Multi Socket Mains Strip White (1 Pack)
£8.594 Gang Socket Extension Lead 2M Power Cord Essential for any Home or Business Slim Design, Discreetly Place Anywhere 13A Fuse Plug Wall Mounting Capable w/ Hole Hangs; Dimensions: (H)2.5cm x (W)24cm x (D)5cm
(as of 9th April 2021 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)