Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 31/07/2016, à 14:40

Caille

Renommer une partition (Point de montage) ?

Bonjour,

Suite à ma dernière installation de Ubuntu 16.04 / 16.04.1 (cinquième. tongue tongue tongue) je constate que le /home possède un nom difficile à prononcer.
J'ai utilisé Gparted pour le nommer /home, mais cela ne renomme pas la partition, tout au plus cela ajoute /home dans la colonne Nom de Gparted.
Le nom actuel du disque est: /media/caille/avec une suite de caractères imprononçable (dans colonne point de montage) ?
Le disque NTFS possède également un nom du même genre, j'aimerais le renommer également.
C'est comme si ces deux disques ne feraient pas parti de mon installation Ubuntu ?
Lorsque je clique sur le disque renommer est grisé.

Pour simplifier, j'aimerais changer le nom qui s'affiche dans fichiers.

Cordialement.

Hors ligne

#2 Le 31/07/2016, à 20:39

Arbiel

Re : Renommer une partition (Point de montage) ?

Bonsoir

Peux-tu, s'il te plaît, donner le résultat des commandes suivantes

cat /etc/fstab
sudo blkid
ls -l /

Arbiel


Arbiel Perlacremaz
LDLC Aurore NK3S-8-S4 Ubuntu 20.04, GNOME 3.36.8
24.04 en cours de tests
Abandon d'azerty au profit de bépo, de google au profit de Lilo et de la messagerie électronique violable au profit de Protonmail, une messagerie chiffrée de poste de travail à poste de travail.

Hors ligne

#3 Le 31/07/2016, à 23:40

Bougron

Re : Renommer une partition (Point de montage) ?

Bonsoir
Bootes avec une live USB,  Fais essayer avant d'installer, lances GPARTED
Démontes les partitions si elles ont un cadenas
et mets une étiquette qui te parle  pour tes partitions. Pas d'espace, pas de caractères spéciaux , pas d'accent . N'oublies pas de faire exécuter la modif.

Dernière modification par Bougron (Le 31/07/2016, à 23:43)

Hors ligne

#4 Le 01/08/2016, à 02:19

MicP

Re : Renommer une partition (Point de montage) ?

… cela ne renomme pas la partition …

Une partition ne peut être nommée : C'est le système de fichiers de cette partition qui, pourrait avoir un label si le système de fichiers le permet.

…Le nom actuel du disque…

Un disque ne peut pas avoir de nom.
Toutefois, il peut être identifiable par son N° de série (qui n'est pas modifiable). Voir la colonne Serial dans le retour de de la ligne de commande suivante :

udisksctl status

…Lorsque je clique sur le disque renommer est grisé.…

Un disque ne peut pas avoir de nom.
Tu as sans doute cliqué sur une représentation d'un système de fichiers d'une partition de ce disque.

…Le disque NTFS…

En général, ce sont les partitions d'un disque que l'on formate.
Créer un système de fichier (<=> formater) sans avoir partitionné un disque n'est pas une chose très courante.

=======
Pour pouvoir donner un nom (label ou étiquette) à un système de fichiers, il faut utiliser la commande correspondant à ce système de fichiers.
Voir : wiki.archlinux.org : persistent block device naming -> by-label

Dernière modification par MicP (Le 01/08/2016, à 02:52)

Hors ligne

#5 Le 01/08/2016, à 18:10

Caille

Re : Renommer une partition (Point de montage) ?

Bonjour,

Arbiel a écrit :

Peux-tu, s'il te plaît, donner le résultat des commandes suivantes

cat /etc/fstab
sudo blkid
ls -l /

Bonjour,

Voila qui est fait. wink

caille@caille-N76VB:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during installation
UUID=5c451bf6-5e53-4f9f-bfd8-f8a37a9fd16d /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=6821-17A7  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/sda2 during installation
UUID=865580d8-6c32-44e9-a877-f1c36604adf0 none            swap    sw              0       0
caille@caille-N76VB:~$ sudo blkid
[sudo] Mot de passe de caille : 
/dev/sda1: LABEL="BOOTEFI" UUID="6821-17A7" TYPE="vfat" PARTUUID="2e0c6108-4e96-4bae-b64e-dd96bf26c004"
/dev/sda2: UUID="865580d8-6c32-44e9-a877-f1c36604adf0" TYPE="swap" PARTUUID="114547d2-3494-40b2-978e-5cade9711d08"
/dev/sda3: UUID="5c451bf6-5e53-4f9f-bfd8-f8a37a9fd16d" TYPE="ext4" PARTUUID="f9e96664-5a4f-48f1-b489-48f77c83a3ea"
/dev/sda4: UUID="6318e480-8991-40f8-9a0d-2b66a01f98a0" TYPE="ext4" PARTLABEL="/home" PARTUUID="422c1564-a0c0-40aa-b015-26dd24e90c39"
/dev/sda5: UUID="63D0657E698DFFF0" TYPE="ntfs" PARTLABEL="/NTFS" PARTUUID="4eca1650-dada-4afc-afb5-970a52fa69c5"
/dev/sr0: UUID="2016-07-19-21-27-51-00" LABEL="Ubuntu 16.04.1 LTS amd64" TYPE="iso9660" PTUUID="40a863e7" PTTYPE="dos"
caille@caille-N76VB:~$ ls -l /
total 100
drwxr-xr-x   2 root root  4096 juil. 31 14:39 bin
drwxr-xr-x   4 root root  4096 juil. 31 14:40 boot
drwxrwxr-x   2 root root  4096 juil. 31 12:46 cdrom
drwxr-xr-x  20 root root  4700 août   1 16:12 dev
drwxr-xr-x 142 root root 12288 juil. 31 18:11 etc
drwxr-xr-x   3 root root  4096 juil. 31 12:49 home
lrwxrwxrwx   1 root root    32 juil. 31 12:50 initrd.img -> boot/initrd.img-4.4.0-31-generic
drwxr-xr-x  22 root root  4096 juil. 31 12:53 lib
drwxr-xr-x   2 root root  4096 juil. 19 22:42 lib64
drwx------   2 root root 16384 juil. 31 12:41 lost+found
drwxr-xr-x   3 root root  4096 juil. 31 14:59 media
drwxr-xr-x   2 root root  4096 juil. 19 22:42 mnt
drwxr-xr-x   4 root root  4096 juil. 31 13:53 opt
dr-xr-xr-x 278 root root     0 août   1 16:12 proc
drwx------   6 root root  4096 juil. 31 18:22 root
drwxr-xr-x  28 root root   840 août   1 18:27 run
drwxr-xr-x   2 root root 12288 juil. 31 14:39 sbin
drwxr-xr-x   2 root root  4096 juin  29 22:13 snap
drwxr-xr-x   2 root root  4096 juil. 19 22:42 srv
dr-xr-xr-x  13 root root     0 août   1 16:12 sys
drwxrwxrwt  11 root root  4096 août   1 18:26 tmp
drwxr-xr-x  11 root root  4096 juil. 19 22:48 usr
drwxr-xr-x  14 root root  4096 juil. 19 22:54 var
lrwxrwxrwx   1 root root    29 juil. 31 12:50 vmlinuz -> boot/vmlinuz-4.4.0-31-generic
caille@caille-N76VB:~$ 
Bougron a écrit :

Bootes avec une live USB,  Fais essayer avant d'installer, lances GPARTED
Démontes les partitions si elles ont un cadenas
et mets une étiquette qui te parle  pour tes partitions. Pas d'espace, pas de caractères spéciaux , pas d'accent . N'oublies pas de faire exécuter la modif.

Je n'ai pas vu de fonction démonter sous live DVD ?
La seule partition avec une clef (non un cadenas) c'était le Swap, je n'y ai pas touché.
Je viens de faire cette manipulation, J'ai renommé le /home Home, la partition commune NTFS, la partition Système Ubuntu
Par contre cette dernière partition a gardé son nom Ordinateur, mais cela ne me dérange pas.

Je viens de refaire les commandes ci-dessus !

Arbiel a écrit :

Peux-tu, s'il te plaît, donner le résultat des commandes suivantes

cat /etc/fstab
sudo blkid
ls -l /
caille@caille-N76VB:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during installation
UUID=5c451bf6-5e53-4f9f-bfd8-f8a37a9fd16d /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=6821-17A7  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/sda2 during installation
UUID=865580d8-6c32-44e9-a877-f1c36604adf0 none            swap    sw              0       0
caille@caille-N76VB:~$ sudo blkid
[sudo] Mot de passe de caille : 
/dev/sda1: LABEL="BOOTEFI" UUID="6821-17A7" TYPE="vfat" PARTUUID="2e0c6108-4e96-4bae-b64e-dd96bf26c004"
/dev/sda2: UUID="865580d8-6c32-44e9-a877-f1c36604adf0" TYPE="swap" PARTUUID="114547d2-3494-40b2-978e-5cade9711d08"
/dev/sda3: LABEL="Ubuntu" UUID="5c451bf6-5e53-4f9f-bfd8-f8a37a9fd16d" TYPE="ext4" PARTUUID="f9e96664-5a4f-48f1-b489-48f77c83a3ea"
/dev/sda4: LABEL="Home" UUID="6318e480-8991-40f8-9a0d-2b66a01f98a0" TYPE="ext4" PARTLABEL="/home" PARTUUID="422c1564-a0c0-40aa-b015-26dd24e90c39"
/dev/sda5: LABEL="NTFS" UUID="63D0657E698DFFF0" TYPE="ntfs" PARTLABEL="/NTFS" PARTUUID="4eca1650-dada-4afc-afb5-970a52fa69c5"
caille@caille-N76VB:~$ ls -l /
total 100
drwxr-xr-x   2 root root  4096 juil. 31 14:39 bin
drwxr-xr-x   4 root root  4096 juil. 31 14:40 boot
drwxrwxr-x   2 root root  4096 juil. 31 12:46 cdrom
drwxr-xr-x  20 root root  4700 août   1 18:54 dev
drwxr-xr-x 142 root root 12288 juil. 31 18:11 etc
drwxr-xr-x   3 root root  4096 juil. 31 12:49 home
lrwxrwxrwx   1 root root    32 juil. 31 12:50 initrd.img -> boot/initrd.img-4.4.0-31-generic
drwxr-xr-x  22 root root  4096 juil. 31 12:53 lib
drwxr-xr-x   2 root root  4096 juil. 19 22:42 lib64
drwx------   2 root root 16384 juil. 31 12:41 lost+found
drwxr-xr-x   3 root root  4096 juil. 31 14:59 media
drwxr-xr-x   2 root root  4096 juil. 19 22:42 mnt
drwxr-xr-x   4 root root  4096 juil. 31 13:53 opt
dr-xr-xr-x 271 root root     0 août   1 18:54 proc
drwx------   6 root root  4096 juil. 31 18:22 root
drwxr-xr-x  28 root root   820 août   1 19:04 run
drwxr-xr-x   2 root root 12288 juil. 31 14:39 sbin
drwxr-xr-x   2 root root  4096 juin  29 22:13 snap
drwxr-xr-x   2 root root  4096 juil. 19 22:42 srv
dr-xr-xr-x  13 root root     0 août   1 18:54 sys
drwxrwxrwt  11 root root  4096 août   1 18:59 tmp
drwxr-xr-x  11 root root  4096 juil. 19 22:48 usr
drwxr-xr-x  14 root root  4096 juil. 19 22:54 var
lrwxrwxrwx   1 root root    29 juil. 31 12:50 vmlinuz -> boot/vmlinuz-4.4.0-31-generic
caille@caille-N76VB:~$ 

Cordialement.

Hors ligne