Raspberry Pi Expansion SD System card

Source: Internet
Author: User
Step 1: Restart your PC, do not start x Windows

Step 2: $ sudo df-h
you should see/mount on Rootfs (has used 97% or so).

Step 3: $ sudo fdisk/dev/mmcblk0
command: Press P (print)
you should see three partitions, now write down the partition 2 information (/DEV/MMCBLK0P2).
command: Press D (delete partition 2)
command: Press P (print)
you should now see 2 partition
commands: press N (plus partition)
select P (main)
in partition 2 Select 2
first space Enter the beginning of the original partition 2
last Space Enter default value
command: Press P (print)
you should see Partition 2 fill all Space
command: Press W (SAVE)

Step 4: $sudo reboot
after reboot, Using RESIZE2FS to repair partitions 2

Step 5: $ sudo resize2fs/dev/mmcblk0p2
wait about 2-3 minutes

Step 6: $ sudo df-h
you should see/ Attached to ROOTFS (if you use a 8G SD card, you will now only have 22% use)

so you can make the most of the rest of the SD card space.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.