Element14 DIY Pi Desktop Скачать руководство пользователя страница 8

 

 

 
 

 

V4.0 

Element14 | element14.com/PiDesktop  

 

Firstly, ensure you know the device identifiers. The Raspbian OS is based upon 
Debian Linux, and as such supports the majority of commands and functions that 
you would use to mount drives within this OS (these typically involve fstab - 
https://wiki.debian.org/fstab, and pmount - https://wiki.debian.org/pmount). 

From the Graphical User Interface (GUI), depending on your version of Raspbian 
and how you have it configured, when you boot your Raspberry Pi to the GUI and 
connect the attached mSATA SSD you will be prompted on what to do with your 
inserted “Removable media”. The drive will be automatically mounted. 

Note:

  It is possible that the GUI will not behave in this way and instead you will 

see a transparent icon representing the drive on your desktop. Double-clicking on 
this icon with the left mouse button will cause Raspbian to attempt to mount the 
drive again. 

From within the Command Line Interface (CLI), by mounting the drive from the 
GUI we will make the drive accessible from the CLI. Typically it is located within 
the folder ‘/media’, however it is good to have the drive accessible from the CLI 
as sometimes we can’t use the GUI or merely don’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 format of ‘/dev/sd

x

’ where ‘

x

’ is a letter ranging from 

’a’ ot ‘z’. These can even extend further with ‘/dev/sd

xn

’ where ‘

n

’ is the number 

of the partition(s) on the device. For example the USB driver with 2 partitions  can 
be recognized by the kernel like this: 

 

There are a few commands in which we can determine what the device is of a 
USB device we connect, first, connect the USB device, and then type the 
following: 

$ sudo dmesg 

This will tell you the contents of a system log, providing information about the 
device you have just plugged in. You can also issue the following commands: 

$ sudo lsusb   

 

Which will tell you about the device identifiers, and also: 

$ sudo lsblk 

This command will tell you the /dev/ mount points. 

To select a location to mount the drive, make a directory and set the permissions 
on it by issuing the following commands: 

$ sudo mkdir /media/ssd 

$ sudo chmod 755 /media/ssd 

Once we set the device mount point, you can then issue the following command: 

$ sudo mount /dev/sd /media/ssd 

Note:

  Mounting will only work if the mSATA SSD has a file system and partitions 

setup. You will want to mount the relevant partition (which has a number, such 
as /dev/sdb1) as opposed to the device itself (/dev/sdb). 

Содержание DIY Pi Desktop

Страница 1: ...V4 0 Element14 element14 com PiDesktop 1 User Manual...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: