
V4.0
Element14 | element14.com/PiDesktop
10
w -> write table to disk and exit
x -> extra functionality (experts only)
Creating a partition table and new partitions can be done step-by-step or it
also can be done by using just one command. For example, the following
command can make two partitions on the disk:
$ echo -e "o\nn\np\n1\n\n+64M\na\n1\nt\nc\nn\np\n2\n\n\nw\n" | sudo
fdisk /dev/sdc
$ ls /dev/sdc*
sdc1 sdc2
As you see sdc1 and sdc2 appears on /dev/, which tells that two partitions
have been created on sdc.
After creating the partition you need to format it. Once this is done we can
make use of the mkfs tool. Type ‘mkfs’ then click Tab. This will allow you to
see the following types of filesystem formats:
$ mkfs
mkfs mkfs.cramfs mkfs.ext3 mkfs.ext4dev mkfs.minix mkfs.ntfs
mkfs.bfs mkfs.ext2 mkfs.ext4 mkfs.fat mkfs.msdos mkfs.vfat
For example, we choose fat to format the /dev/sdc1:
$ sudo mkfs.fat /dev/sdc1
With the default parameters set, type ‘Enter’ to finish the process.
After all, remember type 'sync' to sync all data to the disk. This is very
important for Linux OS.
3)
Write an image to the mSATA SSD
Simply, you can write an image to the mSATA SSD just as you would write an
image to an SD Card. The Raspberry Pi Foundation has instructions on how
you write images here:
https://www.raspberrypi.org/documentation/installation/installing-images/
Note:
If you write an image to your mSATA SSD, the data used and accessible
from the OS will only be of the size of the image written unless you resize the
partitions. And the image you want to write must be smaller than the disk size.
2.6.2
Initialize Booting from the SSD
If you want to clone your micro-SD card to the SSD and then boot from the SSD,
there are two methods you can follow. The main difference between these two
methods is booting with or without using a micro-SD card.
The Pi Desktop default is to utilize a micro-SD card to initialize booting from an
SSD device. In doing so, a command will call the "SD Card copier" to clone the
The default method of the Pi Desktop utilizes a micro-SD card; therefore this is
the process we will focus on below. For further details on booting without a
micro-SD card refer to the following link:
https://github.com/pi-desktop/pi-desktop/blob/master/Boot-From-a-USB-
Mass-Storage-Device/Boot-From-a-USB-Mass-Storage-Device.md