#1 Le 28/10/2007, à 11:52
- Link_w4r3z
Renommer partitions sous Ubuntu
Salut à tous, j'ai installé Ubuntu Gutsy à l'instant, mes partitions apparaissent sur le bureau comme hda5, sdb6 ...
Je voudrais leur donner un nom plus ... convivial
Comment je peux les renommer ?
Es-ce que çà risque d'engendrer des problèmes ?
PS: Mes partitions sont en XFS
#2 Le 28/10/2007, à 12:18
- denis_aec
Re : Renommer partitions sous Ubuntu
repompé sur ce forum :
Renommer une partition :
Partition Ext2 ou Ext3
On utilise la commande tune2fs sur une partition préalablement démontée. Par exemple, pour changer le label de hdb1 :
sudo tune2fs -L nom_de_volume /dev/hdb1
Le nom de volume ne doit pas excéder 16 caractères pour une partition Ext 2.
Par contre, pour xfs ... je ne sais pas si ça marche : à essayer ?
Dernière modification par denis_aec (Le 28/10/2007, à 12:20)
Hors ligne
#3 Le 28/10/2007, à 12:24
- denis_aec
Re : Renommer partitions sous Ubuntu
Tiens, il y a aussi ça :
http://ubuntuswitch.wordpress.com/2007/ … -label-it/
et dedans :
So I continued searching and found a tool collection named xfsprogs. I apt-get it and than wrote xfs in the bash and pressed <TAB> to list the tools.
guru@guru-desktop:~$ xfs
xfs_admin xfs_copy xfs_growfs xfs_logprint xfs_quota
fs_bmap xfs_db xfs_info xfs_mkfile xfs_repair
fs_check xfs_freeze xfs_io xfs_ncheck xfs_rtcpxfs_admin sounded nice so I read its man page. Here my full proceeding: (Note: Change sdb1 to your disk)
1. Get xfstools with sudo apt-get install xfsprogs
2. Unmount the device if it is mounted (sudo umount /dev/sdb1)
3. Label it with xfs_admin -L media /dev/sdb1
4. Mount it.
5. If you formatted it you may have no access to your drive. I solved it by changing the owner to my user instead of root. I do not know if this is the best way, but it worked for me ;-)
sudo chown guru:guru /media/media
Hors ligne