Перейти к содержанию

Навигация

Создание microSD-карты с образом/en: различия между версиями

Нет описания правки
(Новая страница: «Unmount the file system: <pre> umount /media/user/rootfs </pre>»)
Метки: правка с мобильного устройства правка из мобильной версии
 
(не показано 8 промежуточных версий 2 участников)
Строка 31: Строка 31:
*find out the name of the device corresponding to the map. This is usually /dev/mmcblk0 or /dev/sdX (where X is the letter). This command can help  <pre>dmesg | tail</pre>
*find out the name of the device corresponding to the map. This is usually /dev/mmcblk0 or /dev/sdX (where X is the letter). This command can help  <pre>dmesg | tail</pre>
*:<b> Do not confuse the device name! Incorrectly specifying the name of the device, you will lose all data on your computer forever!</b>
*:<b> Do not confuse the device name! Incorrectly specifying the name of the device, you will lose all data on your computer forever!</b>
*umount partitions of the map I remontiroval Linux automatically:
*unmount the map partitions that Linux mounted automatically:
**if the device is called / dev /mmcblk0, the partitions are called/dev /mmcblk0p1,/dev /mmcblk0p2, etc.
**if the device is called /dev/mmcblk0, the partitions are called /dev/mmcblk0p1, /dev/mmcblk0p2, etc.
**if the device is called / dev /sdb, the partitions are/dev /sdb1,/dev /sdb2, etc.
**if the device is called /dev/sdb, the partitions are /dev/sdb1, /dev/sdb2, etc.
*An example of a command:<pre>umount /dev/mmcblk0p1</pre>
*An example of a command:<pre>umount /dev/mmcblk0p1</pre>
*flash the card:<pre>sudo dd if=sdcard.dd of=/dev/mmcblk0 bs=4M</pre>
*flash the card:<pre>sudo dd if=sdcard.dd of=/dev/mmcblk0 bs=4M</pre>
Строка 64: Строка 64:
*copy the root filesystem to the second partition
*copy the root filesystem to the second partition


First you need to find out the name of the device with the flash card. Use the search. You can, for example, try to run the program GParted and see it. Dev / dev / sdb, and may look like / dev /mmcblk0
First you need to find out the name of the device with the flash card. Use the search. You can, for example, try to run the program GParted and see it. Dev /dev/sdb, and may look like /dev/mmcblk0


When the device is found, we create a variable to facilitate the use of the following commands
When the device is found, we create a variable to facilitate the use of the following commands
Строка 115: Строка 115:




===Creating an image building file===
===Creating FS===


Find the name of the second section on the flash drive and write it in a variable
Find the name of the second section on the flash drive and write it in a variable
Строка 134: Строка 134:




See also[[Special:MyLanguage/Сборка образа/en|Image Building]]
See also [[Special:MyLanguage/Сборка образа/en|Image Building]]


<pre>
<pre>
Строка 156: Строка 156:




==Пример==
==Example==


ОС Ubuntu, свежая SD-карта подключенная к встроенному считывателю и определяющаяся как /dev/mmcblk0.
Ubuntu OS, SD card is connected to the built-in reader and defined as /dev/mmcblk0.  
[https://github.com/contactless/wirenboard/ Репозиторий] скачан, мы находимся в его корне.
[https://github.com/contactless/wirenboard/ The repository] is downloaded, we are in its root.


Образ rootfs.tar.gz находится внутри папки rootfs.
Image file rootfs.tar.gz is located inside the rootfs system folder.


<pre>
<pre>
Строка 182: Строка 182:




См. также [[Special:MyLanguage/Стандартный образ ФС|Стандартный образ ФС]].
See [[Special:MyLanguage/Стандартный образ ФС/en|FS standart image]].
translator, wb_editors
4268

правок