Me pehea te huri i te UUID o te arai i Linux

UUID i runga i Linux

La UUID (Kaitohu Motuhake Motuhake) he kaiwhakaatu ahurei o te ao e tohu motuhake ana i te wehenga o te punaha konae, i te FS ranei. He waehere paerewa e whakamahia ana i roto i te Linux ka kite koe i te / etc / fstab, hei tauira, ana ko te 16 paita, ara, 128 paraire. No reira, he 36 nga taurangi alphanumeric kua tohaina ki nga roopu e rima me te whakatakotoranga: 8-4-4-4-12. He maha nga waehere e waatea ana me te tupono kia rua nga waehere taurite he iti rawa.

Hei tauira, ko te UUID angamaheni pea ko 6700b9562-d30b-5d52-82bc-655787665500. Ana, ki te kite koe kei te whakahaere koe i tetahi punaha whakahaere GNU / Linux a kei te hiahia koe ki te whakarereke ahakoa nga take, ka kite koe inaianei ka taea e koe te whakarereke maamaa. Engari i mua o tera, ka whakaatu atu ahau ki a koe me pehea e kite ai koe i nga UUID o o wawahanga kei roto i to distro ma te whakahaere i tetahi o nga whakahau e whai ake nei:

cat /etc/fstab
sudo blkid|grep UUID

Engari ki te hiahia koe tirohia te UUID o tetahi waahanga wehewehe ranei, o tetahi taputapu ranei, ka taea e koe te penei:

sudo blkid | grep sdd4

Ka mohio ana koe ki nga UUID, ka taea e koe te whakarereke ma te ngawari me nga whakahau e whai ake nei, me te kii koinei te waahanga e hiahia ana koe ki te whakarereke i te UUID mo:

umount /dev/sdd4
tune2fs /dev/sdd4 -U random

Ka rite ki taau e kite ana, me pena koe tuatahi wetewete te arai kei te hiahia koe ki te whakarereke, ka whakahaere i te whakahau e whai ake nei kia puta ai he UUID hou matapōkeretia ana ka taea e koe te tirotiro ano i te UUID o tera waahanga kia mohio kua huri ke.

Kaua e wareware ki te whakarereke i te UUID i te waahi e rite ana ki te / etc / fstab ranei. Mena kei roto tenei waahanga i tenei konae kia whakauruhia aunoatia me te pana o te punaha. Ki te kore ka raru pea te kore mohio ki te UUID. Ka taea e koe te kape i te UUID kua whakaatuhia ka whakapiri atu ki te waahi fstab tika hei whakakapi i te mea tawhito ma te whakamahi i to etita kuputuhi pai ...


Ko nga korero o te tuhinga e piri ana ki o maatau kaupapa o matatika whakatika. Ki te ripoata i tetahi paatene paato Here.

He korero, waiho i a koe

Waiho to korero

Ka kore e whakaputaina tō wāhitau īmēra. Kua tohua ngā āpure e hiahiatia ana ki *

*

*

  1. He kawenga mo nga raraunga: Miguel Ángel Gatón
  2. Te kaupapa o te raraunga: Whakahaerehia te SPAM, te whakahaere korero.
  3. Ture: To whakaae
  4. Whakawhitinga korero: Kaore nga korero e tukuna ki nga taha tuatoru engari ma te ture herenga.
  5. Rokiroki raraunga: Paetukutuku e whakahaerehia ana e Occentus Networks (EU)
  6. Tika: I nga wa katoa ka taea e koe te whakaiti, te whakaora me te muku i o korero.

  1.   Humberto Molinares ka mea

    Ka whakahua ana koe "a ko te tupono o nga waehere e rua he iti rawa te ahua" i roto i a ia ano kaore au e whakaae ki to whakahua, na te mea kua whakauruhia e au he wahanga 7GB (te rahinga kore mo te whakamatautau) i roto i nga waahanga e rima ka whakaarohia mena he kotahi te UUID . Engari ki te kii koe he mea hanga takitahi ratou, ka hoatu e ahau ki a koe te take mai i te wa e whakaputa ana ka tohaina e te punaha he UUID rereke mo ratou katoa. Mauruuru mo te panui i ahau.