Khawulela ukusetshenziswa kwamadivayisi e-USB ku-Linux

Labo abasebenza nabasebenzisi ezikhungweni ezidinga imikhawulo ethile, kungaba ukuqinisekisa izinga lokuphepha, noma ngomqondo othile noma i-oda "evela phezulu" (njengoba sisho lapha), izikhathi eziningi badinga ukusebenzisa imikhawulo ethile yokufinyelela kumakhompyutha, lapha izokhuluma ngqo ngokukhawulela noma ukulawula ukufinyelela kumadivayisi wesitoreji se-USB.

Khawulela i-USB usebenzisa i-modprobe (ayisebenzelanga mina)

Lokhu akuwona umkhuba omusha ncamashi, uqukethe ukufaka imodyuli ye-usb_storage ohlwini lwabamnyama lwamamojula we-kernel alayishiwe, kungaba:

echo usb_storage> $ IKHAYA / uhlu lwabashokobezi sudo mv $ IKHAYA / uhlu lwabashokobezi /etc/modprobe.d/

Ngemuva kwalokho siqala kabusha ikhompyutha futhi yilokho kuphela.

Cacisa ukuthi yize wonke umuntu abelana ngale ndlela njengesixazululo esisebenza kakhulu, ku-Arch yami ayisebenzelanga mina

Khubaza i-USB ngokususa umshayeli we-kernel (akuzange kungisebenzele)

Enye indlela kungaba ukususa umshayeli we-USB ku-kernel, ngoba lokhu senza umyalo olandelayo:

sudo mv /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb* /root/

Siqala kabusha futhi silungile.

Lokhu kuzohambisa ifayela eliqukethe amashayeli we-USB asetshenziswa ngekhenela kwenye ifolda (/ root /).

Uma ufuna ukuhlehlisa lolu shintsho, kuzokwanela nge:

sudo mv /root/usb* /lib/modules/$(uname -r)/kernel/drivers/usb/storage/

Le ndlela ayisebenzelanga nami, ngasizathu simbe ama-USB aqhubeka nokungisebenzela.

Ukukhawulela ukufinyelela kumadivayisi e-USB ngokushintsha / imidiya / izimvume (UMA zingisebenzele)

Le kuyimanje indlela engisebenza kimi. Njengoba kufanele wazi, amadivayisi e-USB abekwe ku / media / o ... uma i-distro yakho isebenzisa isistimu, zifakwa ku / run / media /

Esizokwenza ukushintsha izimvume ziye ku- / media / (noma / run / media /) ukuze KUPHELA umsebenzisi wezimpande akwazi ukufinyelela kokuqukethwe, ngoba lokhu kuzokwanela:

sudo chmod 700 /media/

noma ... uma usebenzisa i-Arch noma iyiphi i-distro ene-systemd:

sudo chmod 700 /run/media/

Vele, kufanele bacabangele ukuthi umsebenzisi wezimpande kuphela onemvume yokufaka amadivayisi we-USB, ngoba lapho umsebenzisi angakwazi ukufaka i-USB kwenye ifolda futhi aqonde umkhawulo wethu.

Uma lokhu sekwenziwe, amadivayisi e-USB lapho exhunywe azofakwa, kepha akukho saziso esizovela kumsebenzisi, futhi ngeke bakwazi ukufinyelela ngqo kufolda noma yini.

Isiphetho!

Kunezinye izindlela ezichazwe enetheni, ngokwesibonelo usebenzisa iGrub ... kepha, qagela ukuthi yini, nayo ayisebenzelanga mina

Ngithumela izinketho eziningi (yize noma kungezona zonke ezingisebenzele) ngoba umuntu engazana naye uthenge ikhamera yedijithali imikhiqizo yobuchwepheshe besitolo online eChile, wakhumbula lowo mbhalo spy-usb.sh ukuthi esikhashaneni esedlule ngichazile laphaNgiyakhumbula, kusebenza ukuhlola amadivayisi we-USB bese kwebela imininingwane kulezi) wangibuza ukuthi ngabe ikhona yini indlela yokuvimbela imininingwane ukuthi yebiwe kwikhamera yakhe entsha, noma okungenani enye indlela yokuvimba amadivayisi e-USB kwikhompyutha yakhe yasekhaya.

Noma kunjalo, yize lokhu kungesona isivikelo sekhamera yakho kuwo wonke amakhompyutha ongaxhuma kuyo, okungenani izokwazi ukuvikela i-PC yasekhaya ekususweni kolwazi olubucayi ngamadivayisi e-USB.

Ngiyethemba ukuthi bekusizakala (njalonjalo) kuwe, uma kukhona owaziyo nganoma iyiphi enye indlela yokwenqaba ukufinyelela kwe-USB ku-Linux futhi-ke, kusebenza ngaphandle kwezinkinga, sazise.


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

Amazwana ayi-14, 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.   SnKisuke kusho

    Enye indlela yokuvimbela ukufaka isitoreji se-usb kungaba ngokushintsha imithetho ku-udev http://www.reactivated.net/writing_udev_rules.html#example-usbhdd, ngokuguqula umthetho ukuze izimpande kuphela zikwazi ukukhweza amadivayisi we-usb_storage, ngicabanga ukuthi kuzoba indlela "enhle". Mayelana

  2.   OtakuLogan kusho

    Ku-Debian wiki bathi bangawavimbi amamojula ngqo kufayela le / /etc/modprobe.d/blacklist (.conf), kepha kwelizimele eligcina ku- .conf: https://wiki.debian.org/KernelModuleBlacklisting . Angazi ukuthi izinto zihlukile yini ku-Arch, kepha ngaphandle kokukuzama kuma-USB kwikhompyutha yami kusebenza kanjena nge, isibonelo, i-bumblebee ne-pcspkr.

    1.    OtakuLogan kusho

      Futhi ngicabanga ukuthi i-Arch isebenzisa indlela efanayo, akunjalo? https://wiki.archlinux.org/index.php/kernel_modules#Blacklisting .

  3.   rudamacho kusho

    Ngicabanga ukuthi inketho engcono ngokushintsha izimvume kungaba ukudala iqembu elithile le / media, ngokwesibonelo i- "pendrive", linikeze lelo qembu kwabezindaba / linikeze nezimvume ezingama-770, ukuze sikwazi ukulawula ukuthi ngubani ongasebenzisa lokho okubekwe ku / media ngu engeza umsebenzisi eqenjini «i-pendrive», ngiyethemba uzwisisile 🙂

  4.   izkalotl kusho

    Sawubona, KZKG ^ Gaara, kuleli cala singasebenzisa i-policykit, ngalokhu singakufinyelela lokho lapho sifaka idivayisi ye-USB isistimu isicela ukuthi sigunyaze njengomsebenzisi noma impande ngaphambi kokuyifaka.
    Nginamanothi okuthi ngikwenze kanjani, ngokuhamba kweSonto ekuseni ngiyakuthumela.

    Ukubingelela

  5.   izkalotl kusho

    Ukunikeza ukuqhubeka komlayezo mayelana nokusebenzisa i-policykit futhi ngenxa yokuthi okwamanje angikwazi ukuthumela (ngicabanga ukuthi ngenxa yezinguquko ezenzeke eDesdelinux UsemosLinux) ngikushiya njengoba ngenzile ukuvimba abasebenzisi ukuthi bangakhuphuki amadivayisi abo e-USB. Lokhu ngaphansi kukaDebian 7.6 ngeGnome 3.4.2

    1.- Vula ifayili / usr/share/polkit-1/action/org.freedesktop.udisks.policy
    2.- Sibheka isigaba «»
    3. - Siguqula okulandelayo:

    "Futhi kunjalo"

    ngu:

    "U-Author_admin"

    Silungile !! lokhu kuzodinga ukuthi uqinisekise njengempande lapho uzama ukufaka idivayisi ye-USB.

    Izinkomba:
    http://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html
    http://scarygliders.net/2012/06/20/a-brief-guide-to-policykit/
    http://lwn.net/Articles/258592/

    Ukubingelela

    1.    URaidel celma kusho

      Kusinyathelo 2 angiqondi ukuthi usho siphi isigaba "Ngingumqali."

      Siyabonga ngosizo.

  6.   lindokuhle kusho

    Enye indlela: engeza inketho ye- "nousb" kulayini we-kernel boot command, ofaka ukuhlela ifayili le-grub noma le-lilo.

    nousb - Khubaza isistimu esekelayo ye-USB.
    Uma le nketho ikhona, uhlelo olungaphansi lwe-USB ngeke luqaliswe.

  7.   URaidel celma kusho

    Ungakhumbula kanjani ukuthi umsebenzisi wezimpande kuphela onezimvume zokufaka amadivayisi we-USB nabanye abasebenzisi abanawo.

    I-gracias.

    1.    KZKG ^ Gaara kusho

      Ungakugcina kanjani engqondweni ukuthi i-out-of-the-box distros (efana nale oyisebenzisayo) ifaka ngokuzenzakalela amadivayisi e-USB, kungaba yi-Unity, Gnome noma i-KDE ... noma ngabe kusetshenziswa i-policykit noma i-dbus, ngoba uhlelo olubafakayo, hhayi umsebenzisi.

      Lutho 😉

  8.   Victor kusho

    Futhi uma ngifuna ukukhansela umphumela we
    sudo chmod 700 / kusho /

    Yini okufanele ngiyibeke esigungwini sokubuyisa ukufinyelela ku-USB?

    I-gracias

  9.   engaziwa kusho

    Lokho akusebenzi uma uxhuma iselula yakho ngekhebula le-USB.

  10.   mthoko kusho

    sudo chmod 777 / media / ukunika amandla kabusha.

    Ukubingelela

  11.   UMaurel uyaphinda kusho

    Lokhu akwenzeki. Kufanele bakhweze kuphela i-USB enkombeni ngaphandle kwe / media.

    Uma ukukhubaza imojuli ye-USB kungakusebenzeli, kufanele ubone ukuthi iyiphi imodyuli esetshenziselwa amachweba akho e-USB. mhlawumbe ukhubaza okungalungile.