« Linux : Monter une partition dans fstab » : différence entre les versions
De www.yakakliker.org
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 10 : | Ligne 10 : | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
UUID=da5e0c3b-d658-41b0-bf1e-088e68e0a95c /opt ext4 defaults 0 0 | UUID=da5e0c3b-d658-41b0-bf1e-088e68e0a95c /opt ext4 defaults 0 0 | ||
</syntaxhighlight>On peut avoir aussi ceci :<syntaxhighlight lang="bash"> | </syntaxhighlight> | ||
** On peut avoir aussi ceci :<syntaxhighlight lang="bash"> | |||
/dev/disk/by-uuid/da5e0c3b-d658-41b0-bf1e-088e68e0a95c /opt ext4 defaults 0 1 | /dev/disk/by-uuid/da5e0c3b-d658-41b0-bf1e-088e68e0a95c /opt ext4 defaults 0 1 | ||
Dernière version du 18 février 2026 à 15:35
- Connaître UUID de la partition
blkid
/dev/sdb1: UUID="da5e0c3b-d658-41b0-bf1e-088e68e0a95c" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="7897e395-b235-4e05-afe2-99093325ea53"
- Editer le fichier /etc/fstab
UUID=da5e0c3b-d658-41b0-bf1e-088e68e0a95c /opt ext4 defaults 0 0
- On peut avoir aussi ceci :
/dev/disk/by-uuid/da5e0c3b-d658-41b0-bf1e-088e68e0a95c /opt ext4 defaults 0 1
- On peut avoir aussi ceci :
- Recharger le fichier et appliquer le montage
systemctl daemon-reload
mount -a