Cov txheej txheem:

Raspberry Pi 3 Nrog Bootable SSD Drive: 10 Kauj Ruam
Raspberry Pi 3 Nrog Bootable SSD Drive: 10 Kauj Ruam

Video: Raspberry Pi 3 Nrog Bootable SSD Drive: 10 Kauj Ruam

Video: Raspberry Pi 3 Nrog Bootable SSD Drive: 10 Kauj Ruam
Video: Raspberry Pi 4B в корпусе Argon ONE M.2 c SSD диском 128 ГБ, собираем сервер для Home Assistant 2024, Hlis ntuj nqeg
Anonim
Raspberry Pi 3 Nrog Bootable SSD Drive
Raspberry Pi 3 Nrog Bootable SSD Drive
Raspberry Pi 3 Nrog Bootable SSD Drive
Raspberry Pi 3 Nrog Bootable SSD Drive

Ua ntej tshaj plaws, kuv xav qhia, koj ua ntej luam (Snapshot ntawm koj lub HA uas twb muaj lawm) thiab sim cov txheej txheem no nrog kev teeb tsa tshiab ntawm Tsev Pabcuam thiab sim nws ob peb hnub, yog tias tsis muaj qhov yuam kev. Khaws koj daim npav SD nrog tam sim no Hass.io muaj kev nyab xeeb, yog li yog tias muaj teeb meem, koj tuaj yeem yooj yim hloov SSD tsav nrog SD Card thiab rov qab mus rau Lub Tsev Pabcuam yav dhau los hauv feeb.

Koj tau ceeb toom !

Kauj Ruam 1: Yuav Tsum Tau:

Raspberry Pi 3b thiab 3b+ (tsuas yog Pi 3 kev txhawb nqa USB khau raj)

- OLD ResinOS Lub Tsev Pabcuam version (HassOS tam sim no TSIS txhawb nqa USB Boot)

- mSATA SSD tsav (pom zoo tsawg kawg 16GB)

- x850 cia lub rooj nthuav dav nthuav dav

- USB flash drive (tsawg kawg 1GB)

- GParted CD/USB khau raj duab (https://gparted.org/livecd.php)

- Tam sim no tab tom ua haujlwm lossis ResinOS tshiab (ntawm SD Card)

Yog tias koj muaj Raspberry Pi 3b+, tej zaum koj tuaj yeem hla qib 1 (Kuv tsis muaj, yog li kuv tsis paub meej txog nws). Yog tias koj muaj Raspberry Pi 3b, mus txuas ntxiv.

CEEB TOOM:

Cov txheej txheem no TSIS MUAJ TSEEB. Ib zaug USB BOOT raug teeb tsa, nws tsis tuaj yeem hloov kho

Txawm hais tias qhov no tsis cuam tshuam dab tsi, zoo li koj tseem tuaj yeem siv daim npav SD tom qab ntawd, yog tias koj xav tau.

Kauj ruam 2:

Duab
Duab

Koj yuav tsum pab kom USB boot, los ntawm kev ntxiv cov cai hauv qab no hauv qab ntawm config.txt cov ntaub ntawv:

program_USB_boot_mode = 1

Cov ntaub ntawv nyob ntawm qhov muab faib-khau raj. Nws tsuas yog FAT muab faib rau ntawm koj daim npav SD, uas yog hauv Raspberry Pi. Cias muab nws tso rau hauv koj lub khoos phis tawj thiab txav mus rau qhov muab faib ua cov khau tawv, nqes mus rau kab kawg thiab ntxig rau saum cov cai thiab txuag ntawm kev tawm. Nyab xeeb tshem SD Card los ntawm lub khoos phis tawj, muab nws rov qab rau hauv koj li Raspberry Pi 3b thiab txuas lub zog txuas. Cia nws khau raj. Nws yuav tsum khau raj li qub.

Tam sim no koj Raspberry Pi 3 muaj peev xwm khau raj ntawm USB.

Kauj ruam 3:

Rub GParted Live CD/USB duab thiab txuag nws hauv koj lub computer

gparted.org/livecd.php

Siv Etcher, nyem nws rau USB stick.

Kauj ruam 4:

Duab
Duab
Duab
Duab
Duab
Duab

Rub tawm thiab txuag OLD ResinOS version ntawm Tsev Pabcuam (Raspberry Pi3 version)

github.com/home-assistant/hassio-build/rel…

Siv Etcher, kom nyem nws rau koj li SSD Drive (lossis Cov Ntaus USB sib txawv)

Kauj ruam 5:

Tom qab ua tiav tiav, nyab xeeb tshem tawm SSD tsav thiab txuas nws dua (yog tias yog vim li cas, kev faib cov khau raj tsis pom hauv Kuv Lub Khoos phis tawj, nyem rau ntawm My Computer> Tswj> Tswj tsav> txoj nyem nyem Resin-boot muab faib> Hloov Disk Letter thiab muab daim ntawv tsav tshiab los ntawm tus kheej).

Kauj Ruam 6:

Reboot koj lub PC rau BIOS thiab hloov kev xaiv khau raj, yog li nws khau raj los ntawm koj GParted USB lo.

Tom qab khoos phis tawj khau raj los ntawm USB lo, koj yuav tsum tsis hloov pauv tiag tiag, tsuas yog nias Enter 4x, yog li nws thauj mus rau GParted GUI. (Koj lub SSD tsav yuav tsum tau txuas nrog lub khoos phis tawj, yog li GParted pom nws zoo).

Kauj ruam 7:

Duab
Duab

Tam sim no, hauv GParted, nco ntsoov tias koj tau xaiv qhov tsav raug (SSD tsav). Tam sim no koj yuav tsum hloov qhov loj ntawm ob ntu:

dev/sdb4 thiab dev/sdb6 (Qhov no kuj tuaj yeem yog sda4 lossis sdc4 thiab sda6 lossis sdc6, nyob ntawm seb muaj pes tsawg tus tsav tau pom).

Nws yuav tsum tsis muaj teeb meem tiag tiag, ntau npaum li cas koj yuav hloov (nce) qhov loj ntawm dev/sdb4. Kuv tus kheej, Kuv tau mus los ntawm 1GB txog 3GB (Koj tuaj yeem mus tom ntej thiab yooj yim sim siv tag nrho qhov chaw muaj).

Tam sim no, koj tuaj yeem nce qhov loj ntawm dev/sda6, uas yuav tsum tau hloov pauv mus rau qhov muaj txiaj ntsig zoo tom qab hloov qhov loj ntawm dev/sdb4 (hauv qhov yooj yim, sdb6 muab faib yog hauv sdb4).

CEEB TOOM:

Siv BAR ntawm TOP TO CHANGE SIZE. Ua kom ntseeg tau tias SIZE ntawm qhov pib ntawm ntu tsis hloov pauv (Hauv kuv li CASE nws yog 4MB), Lwm yam uas koj tuaj yeem tau txais cov ntaub ntawv, uas tsav tsheb yuav tsis khau looj plab hlaub

Tom qab hloov qhov ntau thiab tsawg, Thov nws thiab tos kom txog thaum nws ua tiav.

Tam sim no koj tuaj yeem kaw GParted thiab khau raj rau Windows dua.

Kauj ruam 8:

Duab
Duab
Duab
Duab

Rov qab mus dua rau Resin-boot muab faib hauv Kuv lub computer thiab nrhiav ob daim ntawv:

config.txt

cmdline.txt

Kho kom raug config.txt yog tej zaum xaiv tau, vim tias peb Raspberry Pi 3 twb muaj peev xwm ntawm khau raj los ntawm USB, tab sis kuv tsuas ua raws lwm cov lus qhia:

Hauv config.txt dua, ntxiv kab hauv qab no hauv qab ntawm cov ntawv: program_USB_boot_mode = 1

Hauv cmdline.txt, hloov cov hauv qab no:

hauv paus =/dev/mmcblk0p2 (lossis zoo sib xws) rau hauv paus =/dev/sda2 (TSIS sdb2 lossis sdc2, zoo li koj yuav muaj nws hauv GParted).

YOOJ YIM: Kuv tau teeb tsa "resin-sample" cov ntaub ntawv nrog kuv lub network teeb tsa (IP zoo li qub tau muab rau kuv Raspberry Pi3). Yog tias koj muaj ib yam, koj tuaj yeem hloov cov ntaub ntawv qub nrog koj li hauv/resin-boot/system-txuas/cob-piv txwv)

Tom qab khaws ob daim ntawv, nyab xeeb tshem tawm SSD Drive thiab txuas nws rau koj li Raspberry Pi 3.

Kauj Ruam 9: Ua tiav…

Ua tiav …
Ua tiav …
Ua tiav …
Ua tiav …

Qhov ntawd zoo nkauj heev, koj li Raspberry Pi 3 yuav tsum tam sim no khau raj los ntawm USB thiab pib teeb tsa txheej txheem ntawm Tsev Pabcuam, uas yuav tsum siv li 10-15 feeb. Tom qab ntawd, Lub Tsev Pabcuam piv txwv yuav tsum muaj ntawm 192.168.xxx.xxx:8123 (xijpeem IP koj teeb tsa rau koj Pi3).

Kauj Ruam 10: XWB …

XAUS …
XAUS …

Lwm cov kauj ruam hauv qab no kuj tseem yog qhov ua tau:

- Teeb tus account tshiab

- Nkag mus rau koj HA

- Nruab thiab teeb tsa samba addon

- Nkag mus rau HASSIO qhia tawm ntawm koj lub computer

- Luam Snapshots ntawm yav dhau los ua thaub qab ntawm koj Lub Tsev Pabcuam thiab muab tshuaj txhuam rau hauv cov thaub qab sib qhia

- Pib dua Tus Pab Tsev

- Snapshots yuav tsis muaj tam sim ntawd, muab nws ob peb feeb thiab nias lub khawm Refresh nyob rau saum kaum sab xis

- Xaiv qhov Snapshot tshiab kawg thiab rov teeb tsa (Kuv YUAV TSUM tsis rov kho Tus Pab Tsev nws tus kheej, tsuas yog teeb tsa cov ntaub ntawv, yog li nco ntsoov tias koj tsis xaiv Tsev Pabcuam)

- Nias Restore Xaiv (Tsis txhob nias WIPE & RESTORE) - Muab nws ob peb feeb rau cov txheej txheem kom tiav -

YOOJ YIM: Txhawm rau zam kev ua yuam kev, rho tawm cov ntaub ntawv home-assistant_v2.db hauv cov ntawv tais ceev tseg.

Pom zoo: