Element14 DIY Pi Desktop User Manual Download Page 10

 

 

 
 

 

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

 

Summary of Contents for DIY Pi Desktop

Page 1: ...V4 0 Element14 element14 com PiDesktop 1 User Manual...

Page 2: ...ice Settings OPTIONAL 7 2 6 1 Partition and Format the SSD 7 2 6 2 Initialize Booting from the SSD 10 2 7 Camera Installation OPTIONAL 13 2 7 1 Setting up the Camera Hardware 13 2 7 2 Setting up the C...

Page 3: ...intelligent and safe power controller a real time clock and a high capacity Solid State Drive SSD expansion card socket for additional storage 1 2 Features Intelligent On Off power switch mSATA SSD s...

Page 4: ...ge the file system and or hardware It is recommended to use an official Raspberry Pi power supply 5V 2 5A with Pi3 5V 2A with Pi2 2 3 Assembly Instructions 1 Remove the protective film from the bottom...

Page 5: ...mSATA connector and mount the other end using the provided two small screws Refer to section 2 6 for further SSD instructions 9 Finally align the enclosure lid with the flap power button so that it i...

Page 6: ...5 Software Installation To enable the power control RTC and the SSD USB boot feature a software package will need to be installed To do so follow the instructions below 1 Connect your Pi Desktop to th...

Page 7: ...e ppp hdclone piclone to move the exist file system to you SSD you do not need to create a partition table and format the partition This is because piclone can do these automatically If instead you us...

Page 8: ...on t want to To mount the drive we must first know how Linux is referring to it Linux has the majority of its hardware listed under the dev folder structure with connected devices typically using the...

Page 9: ...w the prompts 2 fdisk mkfs The fdisk command is a text based utility for viewing and managing hard disk partitions on Linux Assume that the un partioned disk is mounted at dev sdc sudo fdisk dev sdc F...

Page 10: ...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...

Page 11: ...PiDesktop directly from the SSD otherwise select no n You will now be asked to reboot your system to implement the new configuration and put it into effect Once you have successfully rebooted your sy...

Page 12: ...p 12 Step 3 Click OK to complete the copy Step 4 You will now be asked if you want to switch the rootfs to your USB device If so make sure the former copy process has been successful and input y You w...

Page 13: ...he connector It should slide up easily and be able to move back and forth slightly Fully insert the ribbon cable into the slot ensuring it is straight and that the blue backing is facing towards the A...

Page 14: ...3 Camera the image orientation within the software will need to be rotated 180 degrees To do so use the command rotation rot This sets the rotation of the image 0 359 in viewfinder and resulting imag...

Page 15: ...ced Shutdown Hold the button pressed for about approx 5 seconds to cutoff power regardless of any other conditions Command Line GUI A reboot command can be sent from the command line or GUI During the...

Page 16: ...iDesktop power switch to be utilized to perform safe and reliable startup and shutdown procedures Action Button Time Startup at least 150ms Switch off 2 seconds Force switch off 5 seconds Software The...

Page 17: ...30 seconds of entering the Waiting restart OFF state the MCU will go into the ON state If Pin2 0 after 30 seconds the MCU will go into the OFF state NOTE In states other than the Initialize and OFF s...

Page 18: ...y Pi what time it is To ensure accuracy the time will need to be set on the system initially Note Installing the software package then rebooting the system will enable the RTC 3 3 1 Adding a Real Time...

Page 19: ...nd of the file dtoverlay i2c rtc pcf8563 Save your script and then restart by running sudo reboot Step2 Disable the fake hwclock service Run sudo systemctl disable fake hwclock service Step3 Comment o...

Page 20: ...done run sudo hwclock w to write the time followed by sudo hwclock r to read the time Once the time is set make sure the coin cell battery is inserted so that the time is saved You only have to set th...

Page 21: ...RTC using the following command sudo hwclock r Within the debian package there is a systemd service set up called sync hwclock This writes the latest time onto the RTC on boot and power off 4 Softwar...

Page 22: ...er control does not work How do I fix this First ensure you install the software package Once this has been done reboot the system Can I use a third party power charger as the power supply To ensure s...

Reviews: