Linux SD card set up two partitions

Source: Internet
Author: User

This paper mainly introduces the operation flow of SD card to establish two partitions in Linux environment:

Operating environment: Linux Ubuntu 2016.4

Purpose of Operation: the SD card is divided into two partitions: the first partition format is FAT32, size 500M. The second partition is ext4, which takes up all the space left to install the Ubuntu file system

The specific operation is as follows;

One. Using LSBLK or fdisk-l to view the storage device on the system, find out the SD card device name, the device name of the SD card on my system is:/dev/sdb, contains a partition, the partition name is SBB1

Two. To start a partition using the command fdisk

1. Sudo fdisk/dev/sdb

2. Partition instructions can be entered in M view

3. Enter D to delete an existing partition

4. Enter n to create a new first partition, enter p to Select Use primary partition, enter 1 to indicate this is the First partition, press ENTER to use the default start sector , enter +500m to allocate partition size

5. Enter n to create a new first partition, enter p to Select Use primary partition, enter 1 to indicate this is the first partition, enter two times use default size

6. Set the boot flag and partition type:

7. Enter P to view the partition status

8. Input W Write partition information

9. Format each partition

So far, two partitions have been set up ~ ~

Linux SD card set up two partitions

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.