$ gunzip -d < >.img.gz
$ sudo dd if= < >.img of=/dev/mmblck0 bs=4M
$ sync
$ ssh root@ip_address
# mount -o remount,rw /flash# nano /flash/config.txt
dtoverlay=lirc-rpi
# killall lircd# mode2 -d /dev/lirc0
# cd /storage/.config# irrecord -d /dev/lirc0 lircd.conf
# irrecord -list namespace
# umount /dev/sda1# parted /dev/sdaGNU Parted 3.2Using /dev/sdaWelcome to GNU Parted! Type 'help' to view a list of commands.(parted) mklabel GPTmklabel GPTWarning: The existing disk label on /dev/sda will be destroyed and all data onthis disk will be lost. Do you want to continue?Yes/No? yesyes(parted) mkpart primary 2048s 100%mkpart primary 2048s 100%(parted) qqInformation: You may need to update /etc/fstab.# mkfs.ext4 /dev/sda1
# mkdir /tmp/hdd# mount /dev/sda1 /tmp/hdd
# cp -rf /storage/. /tmp/hdd
# umount /dev/sda1# rmdir /tmp/hdd
# blkid /dev/sda1
# mount -o rw,remount /flash# nano /flash/cmdline.txt
boot=/dev/mmcblk0p1 disk=UUID=95013338-89b1-43af-8471-9b30efc85d98 quiet
# parted -s /dev/mmcblk0 rm 2
Source: https://habr.com/ru/post/ar396967/More articles:اشتري بسرعة وببساطة في الولايات المتحدة الأمريكية من خلال موقع Pochtoy.com (+ هدية للقراء)الفيزياء في عالم الحيوان: ثعبان البحر الكهربائي و "محطة الطاقة" الخاصة بهمن يقوم ببناء مفاعل الاندماجكيفية شراء iPhone مستعملاعتراض محادثة على الهاتف أو كيفية إجراء تحكم لاسلكي بسيط عند 39 ميجاهرتزإنتل الآن الأخ في الأسلحةيقترح إحياء عيدر بلا أجنحة بمساعدة الهندسة الوراثية.لا يحق للمصنعين في الولايات المتحدة رفض الضمان بعد إزالة ملصق الضمان. ماذا يوجد في روسيا؟كمبيوتر في السيارة ، عام 2016الذكاء الاصطناعي يعاني من مشاكل لغويةAll Articles