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