--Apple-Mail=_9963F2F1-0F5A-427C-B4B6-41F527942034
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
Merci, effectivement
Le 8 juin 2022 à 02:46, Pierre ESTREM <pierre.estrem@free.fr> a écrit :
Bonjour,
Après recherches et tests, concernant une FAT32 (dont l' "UUID" ne comporte que 8 caractères), je dois faire exactement :
% sudo mlabel -N $(uuidgen | cut -c -8) -i /dev/loop0p1
Ceci s'applique alors sur une FAT32 qui correspond /boot/efi (loop0p1, boucle chargée avec losetup).
Je remarque que cet identifiant est de suite lisible avec :
% sudo blkid | grep /dev/loop0p1
pierre estrem
Le 07/06/2022 à 11:10, Pierre Malard a écrit :
Bonjour,
Il n’y a pas besoin de monter une partition pour lui changer son UUID ; surtout pas !
Avec un système de fichiers EXTn, la commande est :
% sudo tune2fs -U $(uuidgen) /dev/<PARTITION>
Avec une partition XFS :
% sudo xfs_admin -U $(uuidgen) /dev/<PARTITION>
Clearing log and setting UUID
writing all SBs
new UUID = 38d134f7-8453-41a7-b9ad-441c8ebbbced
Avec une partition SWAP :
% sudo mkswap -U $(uuidgen) /dev/<PARTITION>
mkswap: /dev/sdb2 : avertissement : effacement de l'ancienne
signature swap.
Configure l'espace d'échange (swap) en version 1, taille = 2 GiB
(2147479552 octets)
pas d'étiquette, UUID=5dcce54c-0f2c-46e0-ab60-5793854ec4f5
Avec une partition FAT :
% sudo mlabel -N $(uuidgen) /dev/<PARTITION>
Après on peut vérifier avec un :
% blkid
Bonne journée
Le 7 juin 2022 à 03:55, Pierre ESTREM <pierre.estrem@free.fr <mailto:pierre.estrem@free.fr> <mailto:pierre.estrem@free.fr <mailto:pierre.estrem@free.fr>>> a écrit :
Bonjour,
J'ai une copie d'une clé bootable dont j'ai fait une image (image.img). >>>
uuidgen et tune2fs ne font cela que sur des fichiers de périphérique non montés.
Sans monter les partitions de cette image, comment faire pour modifier leurs UUID ?
pierre estrem
--
Pierre Malard
--
Pierre Malard
«A force de faire "la rue" on est devenu le caniveau»
Abd Al Malik - Céline
|\ _,,,---,,_
/,`.-'`' -. ;-;;,_
|,4- ) )-,_. ,\ ( `'-'
'---''(_/--' `-'\_) πr
perl -e '$_=q#: 3|\ 5_,3-3,2_: 3/,`.'"'"'`'"'"' 5-. ;-;;,_: |,A- ) )-,_. ,\ ( `'"'"'-'"'"': '"'"'-3'"'"'2(_/--'"'"' `-'"'"'\_): 24πr::#;y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print'
- --> Ce message n’engage que son auteur <--
--Apple-Mail=_9963F2F1-0F5A-427C-B4B6-41F527942034
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Merci, effectivement<br class=""><div><br class=""><blockquote
type="cite" class=""><div class="">Le 8 juin 2022 à 02:46, Pierre ESTREM <<a href="mailto:
pierre.estrem@free.fr" class="">
pierre.estrem@free.fr</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(
0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-
text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Bonjour,</span><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-
Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-
decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-
transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Après recherches et tests, concernant une FAT32 (dont l' "UUID" ne comporte que 8 caractè
res), je dois faire exactement :</span><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=
"">% sudo mlabel -N $(uuidgen | cut -c -8) -i /dev/loop0p1</span><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal;
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-
color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing:
0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Ceci s'applique alors sur une FAT32 qui correspond /boot/efi (loop0p1, boucle chargée avec losetup).</span><br style="caret-color: rgb(0, 0, 0)
; font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-
stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-
indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-
variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !
important;" class="">Je remarque que cet identifiant est de suite lisible avec :</span><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing:
normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size:
11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;
float: none; display: inline !important;" class="">% sudo blkid | grep /dev/loop0p1</span><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-
spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-
size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration:
none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">pierre estrem</span><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-
style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br
style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing:
normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px;
font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""
<span style="caret-color: rgb(0, 0, 0); font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Le 07/06/2022 à 11:10, Pierre Malard a écrit :</span><br style="caret-color: rgb(0, 0, 0); font-family: Menlo-
Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-
decoration: none;" class=""><blockquote type="cite" style="font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-
transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Bonjour,<br class=""><br class="">Il n’y a pas besoin de monter une partition pour
lui changer son UUID ; surtout pas !<br class=""><br class="">Avec un système de fichiers EXTn, la commande est :<br class=""><br class=""> % sudo tune2fs -U $(uuidgen) /dev/<PARTITION><br class=""><br class=""><br class="">Avec
une partition XFS :<br class=""><br class=""> % sudo xfs_admin -U $(uuidgen) /dev/<PARTITION><br class=""> Clearing log and setting UUID<br class=""> writing all SBs<br class=""> &
nbsp;new UUID = 38d134f7-8453-41a7-b9ad-441c8ebbbced<br class=""><br class=""><br class="">Avec une partition SWAP :<br class=""><br class=""> % sudo mkswap -U $(uuidgen) /dev/<PARTITION><br class=""> mkswap: /
dev/sdb2 : avertissement : effacement de l'ancienne<br class=""> signature swap.<br class=""> Configure l'espace d'échange (swap) en version 1, taille = 2 GiB<br class=""> (2147479552 octets)<br class=""
pas d'étiquette, UUID=5dcce54c-0f2c-46e0-ab60-5793854ec4f5<br class=""><br class=""><br class="">Avec une partition FAT :<br class=""><br class=""> % sudo mlabel -N $(uuidgen) /dev/<PARTITION><br class=""><
br class=""><br class="">Après on peut vérifier avec un :<br class=""><br class=""> % blkid<br class=""><br class=""><br class="">Bonne journée<br class=""><br class=""><blockquote type="cite" class="">Le 7 juin 2022 à 03:55, Pierre
ESTREM <<a href="mailto:
pierre.estrem@free.fr" class="">
pierre.estrem@free.fr</a><span class="Apple-converted-space"> </span><<a href="mailto:
pierre.estrem@free.fr" class="">mailto:
pierre.estrem@free.fr</a>>> a écrit :<br class=""><br
class="">Bonjour,<br class=""><br class="">J'ai une copie d'une clé bootable dont j'ai fait une image (image.img).<br class=""><br class="">uuidgen et tune2fs ne font cela que sur des fichiers de périphérique non montés.<br class=""><br class="">Sans
monter les partitions de cette image, comment faire pour modifier leurs UUID ?<br class=""><br class="">pierre estrem<br class=""><br class=""></blockquote><br class="">--<span class="Apple-converted-space"> </span><br class="">Pierre Malard</
blockquote></div></blockquote><br class=""></div><br class=""><div class=""> <div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-
wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-
spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"
class=""><div dir="auto" style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-
mode: space; line-break: after-white-space;" class=""><div dir="auto" style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="text-align: start; text-indent: 0px;
word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="text-align:
start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><
div style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(0, 0, 0); text-decoration: none; margin: 0px; font-size: 10px; font-family: "
Courier New";" class="">-- </div><div style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(0, 0, 0); text-decoration: none; margin:
0px; font-size: 10px; font-family: "Courier New";" class="">Pierre Malard</div><div style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; color:
rgb(0, 0, 0); text-decoration: none; margin: 0px; font-size: 10px; font-family: "Courier New"; min-height: 11px;" class=""><div style="margin: 0px;" class=""><br class=""></div></div> «<font face="Times" class=""><i class="">A
force de faire "la rue" on est devenu le caniveau</i></font>»<br class=""><font face="Times" size="1" class=""><span style="font-style: normal;" class=""> &
nbsp; Abd Al Malik - Céline<br class=""></span></font><div style="margin: 0px;" class=""><span style="font-family: "Courier New"; font-size: 10px;" class=""> &
nbsp;|\ _,,,---,,_</span></div><div style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(0, 0, 0); text-decoration:
none; margin: 0px; font-size: 10px; font-family: "Courier New";" class=""> /,`.-'`' -. ;-;;,_</div><div style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(0, 0, 0); text-decoration: none; margin: 0px; font-size: 10px; font-family: "Courier New";" class=""> |,4- ) )-,_. ,\ ( `'-'</div><div style="
caret-color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(0, 0, 0); text-decoration: none; margin: 0px; font-size: 10px; font-family: "Courier New"
;" class=""> '---''(_/--' `-'\_) πr</div><div style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(0, 0, 0); text-
decoration: none; margin: 0px; font-size: 10px; font-family: Courier; min-height: 12px;" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-
stroke-width: 0px; color: rgb(0, 0, 0); text-decoration: none; margin: 0px; font-size: 10px; font-family: "Courier New";" class="">perl -e '$_=q#: 3|\ 5_,3-3,2_: 3/,`.'"'"'`'"'"' 5-. ;-;;,_: |,A- ) )-,_. ,\ ( `'"'"'-'"'"'
: '"'"'-3'"'"'2(_/--'"'"' `-'"'"'\_): 24πr::#;y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print'</div><div style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;
color: rgb(0, 0, 0); text-decoration: none; margin: 0px; font-size: 10px; font-family: "Courier New";" class="">- --> Ce message n’engage que son auteur <--</div></div></div></div></div></div></div></div></div></div></div>
</div>
<br class=""></body></html> --Apple-Mail=_9963F2F1-0F5A-427C-B4B6-41F527942034--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2
Comment: GPGTools -
http://gpgtools.org
iQIzBAEBCgAdFiEE0KHTJ+AWKhmI+acm/pSWHuad/BgFAmKgOeAACgkQ/pSWHuad /BgT7w/9FFBK4oCRaS2k9CBz0h8kOoi3HRA0WU2/UKsKPFo227mWqZEIVinmlAFK v2w6kO0WRkp5owPg1gv1BWd+Lq9wPs1MSWHe6Dtg+XL/OKxX+TzouB/VICXMrfKY IEL1xvA0THcLL/6oeFnhdGNBosTMBYyCBOak29xV3f3VOdr6+cGCr1tCOLulC5+Q lUyIgFrlfg9oNe80zdHUgKi7/Lx0CEIib1Gm7gRb/eQdgkTYsf6xuroztpslpHia KIRbQnpW3Wa+LwoLL8SH4/cqfEezzz9Q/VNu/qcebj4KsJVm237pPE0TW5m3kmSi V6Ga0qUWsBVvMOVxGFhEWgygqNA8MTGL3EUVQC/jSetbA6lP+xtjNSKx2uZSw9I4 u6bXZhTUhCqQOkg7QXLhJycz+zsdNDYdt1SJ5ZJLTxoTkiCX8N5/tqxTWsIcIVdg MFwbmAWSvSlzsNIHAvVEqixvuLmDG88YWiOXu/DtrmbOBwE89bWI9vFHDQNLbxHK E+jh064xZGT2/x2llGSnRo6yG+24KgqRqS8qG1HiXhjbbbnPoa/nLQuXtHSWcm1F p+seUJ5a3mcUFe23OtTepDIiuMtnWtqFXej+ezlvRddvAri5r69s6EmXK/RY/K/4 gORbqK6IoioQBrZDGSpmNFEwEedj+mCYtBI+8CsEWSO+wy/o4Xs=
=pUsA
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)