Page 1 sur 1

[disque dur] Perte d'identité (contourné et abandonné)

Publié : sam. 08 août 2015, 10:27
par karhu
Bonjour
Après la mise à jour d'hier j'ai relancé le PC puisqu'il y avait un changement de noyau, une habitude.
Et là impossible de redémarrer l'uuid de ma partition /home a été perdue et son label qui me sert au montage aussi.
Je passe les détails de contournement et de raccommodage pour en arriver aux deux questions essentielles :
Comment est possible de perdre l'uuid ? Et comment faire pour la retrouver (sans rien casser) ?
Maintenant deux autres bizarreries certainement liées :

Code : Tout sélectionner

ll /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root  9  8 août  08:54 ata-_NEC_DVD_RW_ND-2510A -> ../../sr0
lrwxrwxrwx 1 root root  9  8 août  08:54 ata-SAMSUNG_SP2504C_S0WQJ1PP600721 -> ../../sdb
lrwxrwxrwx 1 root root 10  8 août  08:54 ata-SAMSUNG_SP2504C_S0WQJ1PP600721-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10  8 août  08:54 ata-SAMSUNG_SP2504C_S0WQJ1PP600721-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10  8 août  08:54 ata-SAMSUNG_SP2504C_S0WQJ1PP600721-part5 -> ../../sdb5
lrwxrwxrwx 1 root root 10  8 août  08:54 ata-SAMSUNG_SP2504C_S0WQJ1PP600721-part6 -> ../../sdb6
lrwxrwxrwx 1 root root 10  8 août  08:54 ata-SAMSUNG_SP2504C_S0WQJ1PP600721-part7 -> ../../sdb7
lrwxrwxrwx 1 root root 10  8 août  08:54 ata-SAMSUNG_SP2504C_S0WQJ1PP600721-part8 -> ../../sdb8
lrwxrwxrwx 1 root root  9  8 août  08:54 ata-ST3250824AS_4ND26JQ8 -> ../../sda
lrwxrwxrwx 1 root root 10  8 août  08:54 ata-ST3250824AS_4ND26JQ8-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10  8 août  08:54 ata-ST3250824AS_4ND26JQ8-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10  8 août  08:54 ata-ST3250824AS_4ND26JQ8-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10  8 août  08:54 ata-ST3250824AS_4ND26JQ8-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10  8 août  08:54 ata-ST3250824AS_4ND26JQ8-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10  8 août  08:54 ata-ST3250824AS_4ND26JQ8-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10  8 août  08:54 ata-ST3250824AS_4ND26JQ8-part7 -> ../../sda7
lrwxrwxrwx 1 root root  9  8 août  08:54 wwn-0x50000f001b600721 -> ../../sdb
lrwxrwxrwx 1 root root 10  8 août  08:54 wwn-0x50000f001b600721-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10  8 août  08:54 wwn-0x50000f001b600721-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10  8 août  08:54 wwn-0x50000f001b600721-part5 -> ../../sdb5
lrwxrwxrwx 1 root root 10  8 août  08:54 wwn-0x50000f001b600721-part6 -> ../../sdb6
lrwxrwxrwx 1 root root 10  8 août  08:54 wwn-0x50000f001b600721-part7 -> ../../sdb7
lrwxrwxrwx 1 root root 10  8 août  08:54 wwn-0x50000f001b600721-part8 -> ../../sdb8
Pourquoi sdb est il cité deux fois ?

Code : Tout sélectionner

ll /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10  8 août  08:54 026c5f28-f216-4ca9-a671-b20be6e8c92b -> ../../sda2
lrwxrwxrwx 1 root root 10  8 août  08:54 0f3d6017-c857-4421-ab7b-3ec4bb15adbc -> ../../sdb1
lrwxrwxrwx 1 root root 10  8 août  08:54 126ef1da-bbaf-4d83-a82f-918395490004 -> ../../sda7
lrwxrwxrwx 1 root root 10  8 août  08:54 18196f5b-65ae-4e34-8a31-0f789669ff48 -> ../../sdb7
lrwxrwxrwx 1 root root 10  8 août  08:54 28524a3c-f7cc-4cf5-ab7d-6b5a097b258e -> ../../sdb5
lrwxrwxrwx 1 root root 10  8 août  08:54 48591d26-20e1-469e-9f89-fefc970e259c -> ../../sda6
lrwxrwxrwx 1 root root 10  8 août  08:54 60514035-4294-4c55-a7a1-379f506fd6ec -> ../../sdb8
lrwxrwxrwx 1 root root 10  8 août  08:54 ab68df9d-b339-477f-bbd3-d31c6a8f359e -> ../../sda1
lrwxrwxrwx 1 root root 10  8 août  08:54 b2f96a4f-f1e4-4bba-bb24-f11368e24e16 -> ../../sdb6
lrwxrwxrwx 1 root root 10  8 août  08:54 d372f584-9ab9-482e-9b2b-2d2d36b16235 -> ../../sda3

ll /dev/disk/by-label/
total 0
lrwxrwxrwx 1 root root 10  8 août  08:54 arch -> ../../sda1
lrwxrwxrwx 1 root root 10  8 août  08:54 data -> ../../sda6
lrwxrwxrwx 1 root root 10  8 août  08:54 divers -> ../../sdb8
lrwxrwxrwx 1 root root 10  8 août  08:54 jeux -> ../../sdb1
lrwxrwxrwx 1 root root 10  8 août  08:54 musique -> ../../sdb5
lrwxrwxrwx 1 root root 10  8 août  08:54 option -> ../../sda3
lrwxrwxrwx 1 root root 10  8 août  08:54 reseau -> ../../sda7
lrwxrwxrwx 1 root root 10  8 août  08:54 video -> ../../sdb7
lrwxrwxrwx 1 root root 10  8 août  08:54 virtual -> ../../sdb6
Où est passée la partition sda5 (maison) alors que gparted la voit ?

/dev/sda5 (clé + carré grisbleu) ext3 /home maison 9,77 Gio 1,26 Gio 8,51 Gio

Désolé mais je n'ai pas réussi à insérer une image :oops: (prochaine question sous un autre pseudo).
et enfin mon fstab :

Code : Tout sélectionner

# 
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/sda1 LABEL=arch          UUID=ab68df9d-b339-477f-bbd3-d31c6a8f359e
# /dev/sda2                     UUID=026c5f28-f216-4ca9-a671-b20be6e8c92b
# /dev/sda3 LABEL=option        UUID=d372f584-9ab9-482e-9b2b-2d2d36b16235
# /dev/sda5 LABEL=maison        UUID=1955cc2a-52a4-4ed4-9c86-c98ae9d9e674
# /dev/sda6 LABEL=data          UUID=48591d26-20e1-469e-9f89-fefc970e259c
# /dev/sda7 LABEL=reseau        UUID=126ef1da-bbaf-4d83-a82f-918395490004
#
# /dev/sdb1 LABEL=jeux          UUID=0f3d6017-c857-4421-ab7b-3ec4bb15adbc
# /dev/sdb5 LABEL=musique       UUID=28524a3c-f7cc-4cf5-ab7d-6b5a097b258e
# /dev/sdb6 LABEL=virtual       UUID=b2f96a4f-f1e4-4bba-bb24-f11368e24e16
# /dev/sdb7 LABEL=video         UUID=18196f5b-65ae-4e34-8a31-0f789669ff48
# /dev/sdb8 LABEL=divers        UUID=60514035-4294-4c55-a7a1-379f506fd6ec
#
# <file system> <dir>   <type>  <options>                    <dump>  <pass>
/dev/sda2       none    swap    defaults        0       0
LABEL=arch      /       ext3    rw,relatime,data=ordered        0       1
LABEL=data      /data   ext3    rw,relatime,data=ordered        0       1
#LABEL=maison   /home   ext3    rw,relatime,data=ordered        0       1
/dev/sda5       /home   ext3    rw,relatime,data=ordered        0       1
LABEL=option    /opt    ext3    rw,relatime,data=ordered        0       1
LABEL=reseau    /net    ext2    defaults                        0       1
#
LABEL=jeux      /jeux   ext2    defaults                        0       1
LABEL=musique   /musique ext2   defaults                        0       1
LABEL=virtual   /virtual ext2   defaults                        0       1
LABEL=video     /multimedia ext2 defaults                       0       1
LABEL=divers    /divers ext2    defaults                        0       1

Re: [disque dur] Perte d'identité

Publié : sam. 08 août 2015, 12:23
par Moviuro
ext3 est mort, vive ext4

https://lwn.net/Articles/651645/

Re: [disque dur] Perte d'identité

Publié : sam. 08 août 2015, 19:36
par karhu
Cela ne répond pas à ma question mais au moins on peut discuter.
Pour mes nouvelles installations j'utilise ext4 maintenant, après avoir essayer aussi xfs. Si tu as une méthode ou un truc quelconque pour transformer une partition ext3 en ext4 tout en conservant les données qui s'y trouvent je suis preneur.
Une distribution en rolling release se met donc à jour sur le système de fichiers d'origine. Peut on considérer cela comme un handicap ?

Re: [disque dur] Perte d'identité

Publié : sam. 08 août 2015, 21:00
par benjarobin
Tu as juste à remplacer ext3 par ext4 dans le fstab. Pour profiter de toutes les fonctionnalités de ext4, je te conseil de suivre un guide détaillant la migration, par exemple: https://www.debian-administration.org/a ... filesystem

Re: [disque dur] Perte d'identité

Publié : sam. 08 août 2015, 22:39
par karhu
OK, je vais y passer.
Mais au sujet de ma perte d'uuid ?

Re: [disque dur] Perte d'identité

Publié : dim. 09 août 2015, 07:11
par benjarobin
L'uuid est contenu dans le système de fichier.
Donc tu dois convertir ton système de fichier tel que décrit dans le lien

Re: [disque dur] Perte d'identité

Publié : dim. 09 août 2015, 11:19
par karhu
Je viens de passer mon répertoire /home en ext4 comme suggéré et bien cela ne m'a pas permis de retrouver son uuid, ni son étiquette, alors que gparted les voit lui. :mrgreen:
Je préciserai qu'il est impossible, ou alors très difficile, de "démonter" la partition /home dans un système actif comme il est demandé dans la procédure. Il est préférable de passer par un /home intermédiaire et dans ce cas autant reformater l'ancienne, recopier la sauvegarde, modifier /etc/fstab et redémarrer. C'est moins fin mais tout aussi efficace. :mrgreen:
Je vais continuer avec mes partitions de "confort" genre /opt et peut-être /data, mais pour ma racine je suis pas trop chaud, je vais étudier ça en détail d'abord.

Re: [disque dur] Perte d'identité

Publié : dim. 16 août 2015, 11:55
par karhu
À part une destruction de la partition en cause avec une contigüe aussi afin de les redimensionner et ainsi redéfinir leurs UUID. Je ne vois pas comment faire comprendre à udev que cette partition qu'il connait sous l'appellation /dev/sda5 a aussi une identité et un nom. Il n'a qu'à demander à blkid ou à gparted qui eux voient la totalité de son pédigrée.
La honte au front :oops: j'abandonne puisque j'ai contourné le problème, mais je ne suis pas satisfait. :prison: