RUVIDEO
Поделитесь видео 🙏

Create a custom Raspberry OS Image [.img] (Windows & Linux)

⊞⊞⊞ Please README!!! ⊞⊞⊞

Hello Everyone!
In this video, I'm going to show you how to create a custom Raspberry OS Image (.img file), with 2 different procedures on Windows (with WSL) and Linux.
I hope that you enjoy this video and can be useful.
Thanks always to NCS for the music, Bye.
Fabrizio

First method (executed on windows)
With this procedure, we will make an image of all sd card partition, after will be shrinked. The final .img file, can be rewrite on a new micro sd card and on first boot will be automatically resized about partition size.

Programs needed:
- Raspberry Pi Imager: https://bit.ly/2LAn9KT
- Win32 Disk Imager https://bit.ly/2Lj9bxg
- WSL 2* https://bit.ly/2LC6qXA
- PiShrink https://bit.ly/3oyG7Qy
- Gparted https://bit.ly/2XoKguy


00:00:00 Intro
00:00:22 Step 1 Insert Micro SD and Write Raspberry OS
00:01:47 Step 2 Eject Micro SD, insert into Raspberry and boot
00:02:58 Step 3 Install and configure custom settings and programs
00:03:29 Step 4 Insert Micro SD and clone
00:05:13 Step 5 Resize image with Pishrink

Pishrink command used (see official github repo for more info):

sudo apt-get install gparted
wget https://raw.githubusercontent.com/Drewsif/PiShrink/master/pishrink.sh
sudo chmod 777 pishrink.sh
sudo mv pishrink.sh /usr/local/bin/
close and reopen wsl2
cp /mnt/c/windows/path/to/your/img /home/username
chmod 777 filename.img
pishrink.sh filename.img filename_NEW.img
chmod 777 filename_NEW.img
cp filename_NEW.img /mnt/c/windows/path/

*Note: Wsl 2 is only compatible with Windows 10 version from 1909 to latest (you can check wsl machine version with command "wsl -l -v").
If you don't have compatible OS version, for Step 5 you can use a normal Linux machine or also a vm.

Second method (executed on linux)
With this procedure, we will make directly a resized image of sd card active partitions. The .img file, can be rewrite on a new micro sd card and with raspi-config you can manually resize rootfs partition.

Programs needed:
- Raspberry Pi Imager: https://bit.ly/2LAn9KT

00:10:13 Step 1 Insert Micro SD and Write Raspberry OS
00:11:13 Step 2** Disable automatic resize partition
00:12:07 Step 3 Eject Micro SD, insert into Raspberry and boot
00:12:32 Step 4 Install and configure custom settings and programs
00:13:12 Step 5 Insert Micro SD and clone
00:15:55 Step 6 Resize partition on new Micro SD

Commands used to clone sd card active partitions (can be different depending on your sd card size and linux distro):

sudo fdisk -l
sudo fdisk -l /dev/sdb/
sudo dd if=/dev/sdb of=filename.img bs=num_block_size count=num_count

**Note: to disable automatic resize partition before first boot of raspberry os, enter on the boot partition and open cmdline.txt
After remove "quiet init=/usr/lib/raspi-config/init_resize.sh" and save.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Create a custom Raspberry OS Image [.img] (Windows & Linux)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.