I-Raspberry Pi: Nweba impilo ye-SD yakho nge-GNU / Linux

Ama-SSD noma amadiski aqinile njengoba aziwa, akuyona ubuchwepheshe obusha ngokuphelele ngoba besemakethe iminyaka eminingana, kepha uma kuqhathaniswa nama-HDD (amadiski aqinile) kuseseyingane kumanabukeni. Kodwa-ke, i- Ukusajingijolo Pi Ayinayo i-HDD noma i-SSD, kepha kune-SD, ebeyimemori khadi ... njenge-pendrive, ngokwe-Wikipedia:

I-Secure Digital (i-SD) yifomethi yememori khadi yamadivayisi aphathekayo njengamakhamera edijithali, izingcingo eziphathwayo, ama-laptops, kanye nama-consoles womdlalo (kokubili ideskithophu nokuphathekayo), phakathi kokunye okuningi.

Uma uhlala eSpain futhi unquma ukuthenga i-Raspberry Pi yakho lapho eSpain, njengokungathi uhlala kwelinye izwe bese ukhetha i-eBay, i-Amazon noma isitolo sendawo, i-Raspberry Pi yakho izofika ne-SD, enezinzuzo nezingozi zayo. Okokuqala, kwezinye izimo izosebenza ngokushesha kune-HDD, kepha inokuphila okufushane okusebenzayo, okusho ukuthi, kuzohlala kancane, ngakho-ke nazi izeluleko eziningana zokwelula impilo ye-SD ye-Raspberry Pi yakho.

Inkinga enkulu ngamakhadi we-SD amandla abo alinganiselwe okubhala. Lokho ukuthi, singabhala kuphela inani eliphakeme lezikhathi noma idatha emkhakheni / esikhaleni esinikeziwe, akusikho ukuthi singabhala, sisuse, sibhale kabusha nokunye njalo, singakwazi ukukwenza lokho unomphela, isikhathi sizofika lapho singeke qhubeka ubhalele i-SD.

Ngakho-ke, nazi izeluleko zokwelula impilo ye-SD yethu ku-Raspberry Pi:

  1. I-SD yamandla aphezulu: Kulula, uma sine-8GB SD sinesikhala se-X sokubhala imininingwane, leso sikhala sinenani elilinganiselwe lokufunda nokubhala, kepha uma i-SD (ngokwesibonelo) ingu-16GB sizoba nesikhala esithe xaxa, esihumusha sibe ngu-no kuzodingeka ukubhala izikhathi eziningi endaweni efanayo, okungukuthi, kunesikhala esithe xaxa ngaphakathi kwe-SD lapho ungabeka khona idatha.
  2. Thenga kumikhiqizo ehlonishwayo: Akuyona imfihlo, njengoba kwenzeka nge-SD kwenzeka ngezinye izinto zehadiwe. Isibonelo, ama-Smartphones, singathenga eyesiShayina ezosibiza ama- $ 30 futhi ngokusobala ngokuya ngemininingwane yezingxenyekazi zekhompyutha engenza cishe okufana ne- $ 300 Nexus, kodwa-ke ngokuhamba kwesikhathi uphawu olungandile (isiShayina) alusebenzi. Nge-SD kuyafana, kunabakhiqizi abaningi kodwa abaziwa njengophawu oluhle, ngekhwalithi azikho kangako. Kuhlala kukuhle njalo ku-Google kubakhiqizi be-SD abanekhwalithi enhle, bese ubona ukuthi asikho yini isitolo se-Raspberry Pi eSpain noma endaweni yakini enawo lawa ma-SD. Dweba iziphetho zakho maqondana nenani lemali.
  3. Setha i-Linux ukubhala ngaphezulu ku-RAM futhi ngaphansi ku-SD: Ngokufana nephoyinti 1, okuncane okubhalwe ku-SD, kuba ngcono. Singakuthola ukubhala okuningi ku-RAM futhi kuncane ku-SD sisebenzisa tmpfs

Usebenzisa ama-tmpfs

Ukutshela isistimu ukuthi ibhalele okuningi ku-RAM nangaphansi kudivayisi yokugcina (kuleli cala, i-SD) vele ungeze umugqa ku / etc / fstab. Kulowo mugqa sikhombisa ukuthi iyiphi ifolda esifuna ukuyifaka ku-RAM hhayi ku-SD, ngokwesibonelo:

tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=100m 0 0

Ngendlela, uma udinga okungaphezu kwe-100mb kulolo hlukelo, shintsha lelo nani kulayini, ubeke usayizi omkhulu esiqinisekisa ukuthi awudli yonke i-RAM. Bese uqala kabusha ikhompyutha futhi yilokho kuphela.

Ukucaciswa, yonke into efakwe ngama-tmpfs (ngokwesibonelo, / var / izingodo) izolahleka lapho ikhompyutha iqala kabusha, okusho ukuthi, lapho beqala kabusha ngeke babe nazo izingodo, ngeke zibe nalutho, njalonjalo kufolda ngayinye abayikhwele.

Isiphetho!

Lezi zeluleko zilungele kahle i- Ukusajingijolo Pi kanye nokuthi banePiPad. Angazi ukuthi iyiphi enye imishini engaba wusizo ngoba, angazi enye i-hardware engasebenzi nge-HDD noma i-SSD futhi yebo ngekhadi le-SD, woza, ngaphandle kokuthi akuyona ikhamera camera

Ngiyethemba ukuthi ukuthole kuthakazelisa, ikakhulukazi ukwazi ithiphu lokuthi i-tmpfs isebenza kanjani


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-9, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   I-Laegnur kusho

    Kuhle

    Enye inketho yokwelula impilo esebenzisekayo ye-SD, ukudlulisa ukwahlukanisa kwesistimu kusuka ku-SD kuye ku-USB HD, bese usebenzisa i-SD kuphela njengebhuthini ...

  2.   zagur kusho

    Ndoda, angicabangi ukuthi kuyisixazululo esihle ukufaka izingodo kwimemori, ngoba i-RPi ine-512 MB kuphela ye-RAM ... Lokho okushiwo nguLaegnur kunengqondo eningi kakhulu, sebenzisa i-SD njengebhuzu kanye nediski yangaphandle ye / var kanye / ekhaya.

  3.   UMnu Linux kusho

    Kuhle ukwazisa ukuthi akuwona wonke ama-SD ahambisana ne-Raspberry Pi, ngishiya isixhumanisi lapho kuchazwa khona ukuthi yimaphi ama-SD futhi awahambelani.
    http://elinux.org/RPi_SD_cards#SD_card_performance.

  4.   i-vidagnu kusho

    I-athikili enhle kakhulu, ngicabanga ukuthi inketho ngayinye inobuhle nobubi bayo, ukubeka idrayivu ku-raspberry yakho kususa ukuthwala, kukhulisa usayizi wayo, njll. Ngicabanga ukuthi into engcono kakhulu ongayenza ukuyishiya njengoba injalo, ama-SD ashibhile noma kunjalo.

    Ukulawula,

  5.   Ama-Vctrsnts kusho

    Kuhle

    Lawa ngamazwana wami wokuqala kule webhusayithi engiyilandelayo. Ngine-RPI esebenza njengeseva engu-1 × 24 ene-amule nokudluliswa okuxhunywe kwi-HD, indlela enconywa ngayo esimweni sokusebenzisa i-RPI njengeseva engu-7 × 24, ukuthi ku-SD kuphela kukhona ukwahlukanisa / i-boot nokuthi konke konke okunye ukwahlukanisa kungaphakathi kwe-HD, lapho kudingeka, ukuze i-HD ixhunywe (njengoba kusho uLaegnur)
    Futhi kuze kube manje, angibanga nankinga ... Futhi lokho kuqhubeka .... 😉

  6.   Nestor kusho

    Ngisanda kufaka i-SSD ne-HD kwi-PC yami yedeskithophu futhi lokhu kungifanele.

    Ku-SSD yami ngiyifakile i-Wheezy ku-ext4 futhi ngeza ku-fstab

    UUID = i-xxx / ext4 ezenzakalelayo, isikhathi sasemini, i-nodiratime, lahla u-0 1
    i-tmpfs / tmp tmpfs ezenzakalelayo, i-noexec, i-nosuid 0 0
    tmpfs / var / run tmpfs size = 1024M, nr_inodes = 10k, imodi = 777 0 0
    tmpfs / var / lock tmpfs size = 1024M, nr_inodes = 10k, imodi = 777 0 0
    tmpfs / var / log tmpfs size = 1024M, nr_inodes = 10k, imodi = 777 0 0

    futhi ngaba nebhadi lokunqamuka kukagesi ngalolo suku futhi ngenxa yalokho, impande yazihlanganisa ngokuthi "funda kuphela". Nge-mount -o remount, i-rw ibingaxazululwa kepha angicabangi ukuthi kuwumqondo omuhle ukuhambahamba ngokuhlukanisa okonakele.

    Kusuka kolunye uhlelo ngenze i-fsck futhi ngabheka isheke kusuka ku-gparted futhi kwaqhubeka nenkinga efanayo.
    Ngikulungisile ngokufaka kabusha ama-btrfs.

    Ngiyabuza. Ngabe kuphephile ukwenza / var / log kushintshashintshe? Akukho lutho olubalulekile lapho ukuthi isistimu idinga ukululama ekucimeni okubi?

    Ngibuza ngoba kuyaxaka ukuthi kwenzekeni kimi. Bengilokhu ngisebenzisa i-Linux kusukela ngo-2011, ngihlushwa ugesi kodwa akukho okunje okwake kwenzeka kimi. Usuku olufanayo engilubeke nge-tmpfs to / var / log kanye nezinye izinkomba, lokho kwenzeka kimi.

  7.   U-Ainus Solheim kusho

    Ahem kudala ngabhala ibhukwana le-Debian ARM ukunweba impilo ye-SD, ku-raspberry kuyafana futhi kungasetshenziswa, lokhu kungcono kakhulu, awunaphutha kepha eminye imininingwane ibingatholakali.

    http://kirbian.wordpress.com/2013/01/11/reduce-disk-write-sdcard/

  8.   montcoes kusho

    Nsuku zonke kunamadiski amaningi e-SDD nokulungiswa okuxubile kwe-SDD + HDD futhi lo myalo uzophinde wandise impilo yabo ewusizo.
    Futhi njengoba i-RAM ishibhile impela njengamanje, ngeke kulimaze ukungena kuzilungiselelo ezahlukahlukene ezingasiza ukuthuthukisa ukusebenza kwedeskithophu futhi.

    I-PS: Ngingathanda ukuthi umuntu abhale izindatshana ngabaphrinta, ikakhulukazi i-multifunction b / w laser, uMfowethu wenze kahle kuze kube manje, kepha imodeli yokugcina engiyi-odile inginikeze inkinga nge-feeder yesithwebuli sesithwebuli - ngizo ukubuya - futhi ngiye kobheka ukuqhathanisa nemibono, futhi kuyabonakala ngokungabikho kwabo, ngeSpanishi nangesiNgisi -

    Akukho "konke noma kakhulu noma i-phoronix" yamaphrinta - uma kwenzeka othile efuna ukuyenza -, kodwa okwamanje, uma othile esebenza ngokuthengisa lezi zinhlobo ze-multifunction B / W zohlobo lwe-laser ezisetshenziswa emahhovisi amancane noma ngokuthengisa nje ama-inki, bangaqoqa ukwaneliseka kwamakhasimende abo nge lolu hlobo lwamamodeli bese wabelana ngalo lapha noma lapho kubonakala kufaneleke kakhulu ngokuxhumana ngalo.

  9.   Mariano kusho

    Siyabonga ngolwazi. Iwusizo kakhulu. Impumelelo!