linux下修改U盘名称

[root@localhost media]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              39G   24G   13G  66% /
tmpfs                 990M  4.5M  986M   1% /dev/shm
/dev/sda2              77G   62G   12G  85% /broncho
/dev/sdb1             1.9G  2.6M  1.9G   1% /media/YLJ

在/etc/mtools.conf中添加下面一行

[root@localhost media]# vim /etc/mtools.conf

mtools_skip_check=1
[root@localhost media]# mlabel -i /dev/sdb1 ::YINLIJUN
[root@localhost media]# eject /dev/sdb1
[root@localhost media]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              39G   24G   13G  66% /
tmpfs                 990M  4.5M  986M   1% /dev/shm
/dev/sda2              77G   62G   12G  85% /broncho
/dev/sdb1             1.9G  2.6M  1.9G   1% /media/YINLIJUN






你可能感兴趣的:(linux,vim)