Kana iwe uine SD memory kadhi, pendrive kana chero USB yekuchengetedza diski iwe yaunoda nyora kudzivirira, muchinyorwa chino tinokuudza nhanho nhanho uye nenzira iri nyore yekuzviita. Uye pane zvishoma zvekudzivirira-kunyora kudzivirirwa zvinotenderwa nevamwe vatyairi, vanozivikanwa se «nyora kudzivirira zvishoma»Zvichienderana nekuti iri kushanda here pa1 kana 0, inobvumidza kunyorera kuuniti kana kuti kwete. Ichi chidiki hachifanirwe kuvhiringidzwa neWP yemarejista eCUUs, anodzivirira kunyora pamusoro nekugadzira forking maitiro pane UNIX-senge masystem, nekudaro ichichengetedza ndangariro huru kubva pakunyora dhata. Kana kune chaiwo dziviriro tebhu yatinowana mune mamwe makadhi e SD kana midhiya yekuchengetedza. Mune ino kesi isu tiri kutaura nezve dziviriro inoitwa mune yechipiri yekuchengetedza midhiya.
Ipo mutungamiriri weiyo chengetedzo svikiro USB kana SD memory kadhi, kana chero nzira, kuona kuti chidimbu ichi chiri kushanda, mutyairi anodzivirira kernel kubva kuodha odha yekunyora uye nekudaro inogona kungoverenga zvirimo. Izvo chaizvo zvinoshanda kana isu tikachengeta dhata yatisingade kuchinjwa, tichidzivirira kunyora kana kubviswa nekukanganisa. Asi kana imwe yeidzi midhiya yakachengetedzwa yawira mumaoko edu uye isu tisingazive nezvekuvapo kwechinhu ichi, tinogona kutambisa maawa tichifunga kuti yedu yuniti yakanganisika, kana kusimudza nekudzikisa iyo diki tebhu iyo mamwe mapendende kana makadhi e SD anofanirwa chengetedza ivo pasina mhedzisiro. (Lock / Unlock) ...
Kwira kuverenga-chete kana kunyora-chete midhiya:
Kunyangwe zvisiri izvo chaizvo zvatiri kutsvaga neKunyora Kudzivirirwa Bit, isu tinogona zvakare kuona kuti svikiro rave otomatiki kana manyorerwo akaisirwa kuverenga-chete, saka hatizove nekwanisi yekunyora mairi. Chinhu icho mune dzimwe nguva chinogona kutsamwisa uye kutitadzisa kubva kugadzirisa kana kuchengetedza zvinhu. Zvakanaka, mhinduro yeiyi yakapusa.
Semuenzaniso, kana mu / etc / fstab faira chishandiso chakagadzirirwa kukwidza otomatiki nesarudzo ro (verenga chete) kana kana takazviisa nemurairo:
sudo mount -o ro /dev/sda /mnt
Mumamiriro ezvinhu akadaro tinogona kungoverenga iyo / dev / sda chishandiso mune ino kesi yakaiswa pane / mnt mount point. Saka kuti tikwanise kunyorera zvakare:
sudo mount -o remount,rw /dev/sda /mnt
Kana iyi nzira ikasashanda kwauri, zvino zvichave nekuti chidimbu chatataura nezvacho chiri kuita, uye ndosaka tichafanirwa kushandisa chishandiso chatinoisa pazasi.
Chii chinonzi hdparm?
Kuraira hdparm chishandiso chepasi-chikamu iyo inoshanda seinongedzo pakati pezvakasiyana Linux kernel madhiraivha uye SATA / PATA / SAS yekuchengetedza midhiya uchishandisa raibhurari raibhurari, pamwe neyekare IDE midhiya. Rangarira kuti vazhinji USB vanochengeta midhiya vanodzora, kusanganisira vaverengi vemakadhi senge makadhi e SD, zvakare shandisa iyi mhando ye controller kuti ishande, saka inoenderanawo navo
Su syntax yakakosha es:
HDparm [sarudzo] [mudziyo]
Uye zvipo Mazhinji sarudzo yekushanda nayo, kunyangwe ini ndisingakurudzire kuti uishandise kana iwe usinga zive zvaunoita nemazvo, sezvo uri mudziyo wepasi-pasi unogona kukuvadza zvakanyanya kifaa chako, semuenzaniso kana tikashandisa dzimwe sarudzo dzakadai se -B . Asi ini ndichakuudza kuti pakati pesarudzo dzayo pane zvimwe zvinonakidza senge:
- Tora iyo setup ye diski:
sudo hdparm /dev/sdd
- Ratidza iyo kuzivikanwa ye diski:
sudo hdparm -i /dev/sdd
- Tarisa buffer uye cache kuverenga nguva:
sudo hdparm -t /dev/sdd sudo hdparm -T /dev/sdd
Nguva dzose yeuka kushandisa ropafadzondiko kuti, vamhanye semudzi mushandisi kana kuisa Sudo pamberi pavo kana kuti hazvishande ...
Bvisa uye gadza memory memory bit ne hdparm:
Kamwe iyo hdparm chishandiso ichizivikanwa, tinogona kushandisa iyo -r Sarudzo yatinogona kutarisa mamiriro eichi chidiki nemirairo yakapusa. Kuti tiite izvi, isu tinongoda chete kuziva zita chairo rechinhu chedu chekuchengetedza. Semuenzaniso, kana / dev / sdd vakadaidzwa, mune iyo kesi isu tinogona kushandisa:
sudo hdparm -r /dev/sdd
Uye kukosha kwechinhu chidiki kucharatidzwa pachiratidziri. Kana kukosha kwayo kuri 1 zvinoreva kuti iyo modhi iri kushanda kuverenga chete kana kuverenga-chete, kana nemamwe mazwi, nzira yekunyora-kudzivirira inoshanda uye hauzokwanisi kunyora chero chinhu mundangariro. Kuti uibvise kana kugadzirisa zvishoma, iwe unofanirwa kungoita zvinotevera:
sudo hdparm -r0 /dev/sdd
Uye ikozvino kana isu tikateedzera yekutanga kuraira uye toshandisa iyo nyika isu tichaona kuti yadzokera ku0, saka iyo readonly modhi yakadzimwa kana kuremedzwa. Kana iwe uchida kuidzosera kune inoshanda nyika, shandisa iyo sarudzo -r1 Panzvimbo ye -r0 uye makagadzirira. Semuyenzaniso:
sudo hdparm -r1 /dev/sdd
Izvo zviri nyore ndizvo gonesa kana kudzima ichi chidiki. Iyo haina chakavanzika chakawandisa asi kune avo vasingazive izvi zvinogona kutemesa musoro kana zvasvika pakudzivirira yavo yekuchengetedza midhiya.
Ndinovimba yakubatsira uye ikozvino iwe unoziva kugadzira yekunyora-yakachengetedzwa pendrive, usakanganwa siya mhinduro yakoEhe ...
Kwaziwai!
Chekutanga pane zvese, ndatenda nemanotsi! Izvo zvinogara zvichikosha.
Ini ndiri mushandisi weDebian 9.
Mune ino chaiyo kesi, ndine dambudziko randisingakwanise kugadzirisa. Ndine chinyoreso "chakatapukirwa" chine chinyorwa chekudzivirira chandisingakwanise kubvisa. Ndiri kutofunga kuti ndezvemuviri nekuti ini ndakatendeseka kuyedza zvese (kudzika kusvika pasi-chikamu fomati muWindows kana kununura disks, kugadzirisa zvikamu, nezvimwewo) uye hapana.
Ini ndaifunga kuti ndave kuda kuzvigadzirisa, kana ndichitevera matanho ako, ini ndakaona kuti peni yekutyaira yekunyora kudzivirirwa yaive "iri", asi pandakangoichinja kuti "ibvise" ini handikwanise kudzima kana kugadzirisa chero chinhu pairi.
Zvingave zvipi? Pane imwe nzira here yekugadzirisa izvi? (Ini handina basa nekurasa info ini yandinayo mukati)
Ndinokutendai mberi kwekubatsira kwenyu.
Hernan
Kugona! Handizive kana vakakuudza mhinduro yacho kana kuti pakupedzisira wakazvigadzirisa, asi ini ndiri mune imwe nyaya newe.
Mungandipa zano here?
Ndinokutendai zvikuru.
tsananguro yakanaka
Mhoroi ndine USB iyo iyo system isingazive, ini ndinokutumira iwe ruzivo kana uchikwanisa kundibatsira ndatenda
cdes
[83384.348839] usb 1-1: nyowani yekumusoro-soro USB nhamba nhamba 8 uchishandisa ehci-pci
[83384.506219] usb 1-1: Chishandiso cheUSB chitsva chakawanikwa, idVendor = 0c76, idProduct = 0005, bcdDevice = 1.00
[83384.506225] usb 1-1: Tambo nyowani dzedhidhi ye USB: Mfr = 1, Chigadzirwa = 2, SerialNumber = 0
[83384.506228] usb 1-1: Chigadzirwa: USB Misa Kuchengetedza
[83384.506231] usb 1-1: Mugadziri: GENERIC
[83384.506848] usb-yekuchengetera 1-1: 1.0: USB Misa Kuchengeta mudziyo waonekwa
[83384.508235] scsi host5: usb-kuchengetedza 1-1: 1.0
[83385.524951] scsi 5: 0: 0: 0: Direct-Kuwana GENERIC USB Misa Kuchengeta 1.00 PQ: 0 ANSI: 2
[83385.556757] sd 5: 0: 0: 0: Yakabatanidzwa scsi generic sg3 mhando 0
[83385.561706] sd 5: 0: 0: 0: [sdc] Yakabatanidzwa SCSI diski inobviswa
midzi @ localhost: ~ # fdisk -l
Disk / dev / sda: 698.7 GiB, 750156374016 bytes, 1465149168 zvikamu
Units: zvikamu zve1 * 512 = 512 bytes
Ukuru hwechikamu (zvine musoro / zvepanyama): 512 byte / 4096 byte
I / O saizi (shoma / yakakwana): 4096 bytes / 4096 byte
Disklabel mhando: gpt
Disk identifier: 995F9474-C5F1-4EE9-8FD7-13EA790423DC
Mudziyo Kutanga Magumo Maseketi Saizi Type
/ dev / sda1 2048 1050623 1048576 512M EFI Sisitimu
/ dev / sda2 1050624 49879039 48828416 23.3G Linux faira system
/ dev / sda3 49879040 69410815 19531776 9.3G Linux fileystem
/ dev / sda4 69410816 76107775 6696960 3.2G Linux chinja
/ dev / sda5 76107776 80013311 3905536 1.9G Linux file system
/ dev / sda6 80013312 1465147391 1385134080 660.5G Linux systemystem
midzi @ localhost: ~ # fdisk -l / dev / sdc
fdisk: haigone kuvhura / dev / sdc: Hapana svikiro rakawanikwa
midzi @ localhost: ~ # hdparm / dev / sdc
/ dev / sdc:
SG_IO: yakaipa / isina pfungwa dhata, sb []: f0 00 02 00 00 00 00 0 00b 00 00 00 3 00a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 XNUMX XNUMX XNUMX
multcount = 0 (yabviswa)
readonly = 0 (yabviswa)
readahead = 256 (pa)
midzi @ localhost: ~ # hdparm -C / dev / sdc
/ dev / sdc:
drive mamiriro ndeiyi: yakamira
midzi @ localhost: ~ # hdparm -I / dev / sdc
/ dev / sdc:
SG_IO: yakaipa / isina pfungwa dhata, sb []: f0 00 02 00 00 00 00 0 00b 00 00 00 3 00a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 XNUMX XNUMX XNUMX
ATA chishandiso, ine isingabvisike midhiya
Miitiro:
Zvichida zvakashandiswa: 1
Kugadzira:
Zvine musoro max zvazvino
sepombi 0 0
misoro 0 0
zvikamu / track 0 0
-
Inonzwisisika / Panyama Sector size: 512 byte
saizi yedhiyo neM = 1024 * 1024: 0 MBytes
saizi yedhiyo neM = 1000 * 1000: 0 MBytes
cache / saizi saizi = isingazivikanwe
Unyanzvi:
IORDY hazvingadaro
Haugone kuita maviri-izwi IO
R / W akawanda chikamu chinja: haina kutsigirwa
DMA: haina kutsigirwa
IOP: pio0
maita basa kana maviri uye kwete Iyo yaibvumidzwa kuita, haina kusiya nguva saka sezvo ini ndaitoziva ine zita randakamupa, iro raive "sdc" mune terminal ndakaisa zvese semudzi mushandisi.
# dd kana = / dev / zero | pv | dd ye = / dev / sdc bs = 1M pano unomirira kwechinguva
# dd kana = / dev / zero | pv | dd ye = / dev / sdc bs = 446 count = 1 iwe unoburitsa woisa zvekare usb yaunopa
# mkfs.vfat -F 32 -n "anaconda" / dev / sdc uye wapedza
Parabens! Akawanda ma voltas andinopa nenyaya iyi ndeyekupa kosi tsananguro. Ndatenda Moi.
Hukuru. Ndatenda.
Pakupedzisira chimwe chinhu chakandishandira chaizvo, ndatenda.
Mhoroi ini ndine 16 GB ADATA chikamu 10 microsd memory
Ini ndakaita maitiro uye zvinoita sekunge zviri kushanda, asi kuisazve uye kuichekesa nyika inoidzosera kuverenga-chete.
Ndakaedza kuimisa asi haina kushanda. Chandinogona kuona mafaira angu.
chero chishandiso kana nzira yekugadzirisa dambudziko?
yakapusa uye yakapfupika, yakakwana tsananguro uye mienzaniso, zvave zvichibatsira.
Mhoroi, ini ndiri mushandisi weKali Linux mune yayo yazvino vhezheni, ini ndatoedza nzira bhiriyoni (ndine urombo nekuwedzeredza) asi hapana kana imwe yadzo inondipa ini kana muLinux kana Windows.
kwandiri, debian, ndangariro inobviswa inofanira kudzikiswa….
wakanaka, ndatenda
Ini ndakakwanisa kudzoreredza akati wandei ekushambadzira anotora pamwe nemirairo yavo
Mhoroi, zvinoshanda asi dhairekitori remushandisi rinosiyana, zvingave zvakanaka kuti zvijekeswe, asi ini ndine kukanganisa, mumurairo unondiratidza kuti ndinougadzirisa, asi pandinoda kuisa dhairekodhi kana chero chinhu pane iyo pendrive iyo inotaurira ini kuti yakanyorwa-kudzivirirwa. Kana iwe uchikwanisa kundibatsira kuzvigadzirisa, izvo zvingave zvakanaka. Kwaziso
inogamuchira iwo murairo uye anoiratidza seisina dziviriro ndeye r = 0, asi kana ndichida kuifometha inondiudza ndakachengetedzwa. Ndatenda
Mhoro zuva rakanaka. Naizvozvi ndakanga ndisina kuyedza asi muWindows ndakaita zvese uye hapana. Yangu pendrive ndeyekunyora yakachengetedzwa, kunyangwe iine sudo hdparm -r / dev / sdd inopa kukosha 1, asi ne Sudo hdparm -r0 / dev / sdd haigone kubvisa dziviriro yekunyora futi. Kutenda nekwaziso kubva kuVenezuela.
Yangu Linux vhezheni yakavhurikaSUSE Tumbleweed 15.3
Ruzivo rwekare nekujeka uye kuvimbika. Maawa eLevei achiyedza sem semhinduro dzemhinduro uye izvi, zvakaratidzwa pano, ndiyo yakatarwa yedambudziko rakanangana nekuverenga nekuvharira gravação.
Mupiro wakanaka, zvese zvakazoitika sezvawataura ... thanks
Ndinokutendai zvikuru, inobatsira zvikuru, izvi zvinowanzoitika zvakanyanya mu usb, mhinduro iri nyore uye inokurumidza.
Ndinokutendai zvikuru nemupiro.
Mune yangu, Ubuntu 23.4 inogamuchira mirairo yese asi haivhure iyo yekudzivirira.
Chero pfungwa?
lorenzo@lorenzo-B85M-D3H:~$ sudo hdparm -r /dev/sdc
[sudo] password ye lawrence:
/ dev / sdc:
kuverenga chete = 1 (pa)
lorenzo@lorenzo-B85M-D3H:~$ sudo hdparm -r0 /dev/sdc
/ dev / sdc:
kuseta kuverenga chete ku0 (kudzima)
kuverenga chete = 1 (pa)
lorenzo@lorenzo-B85M-D3H:~$
gracias