Changing Storage Label On Linux


On Windows, you can simply right click on a device and rename it. On Linux in the other hands, you can use the following method:
During formatting, use let say if you want FAT as the filesystem:

Let say the device is located in /dev/sdc and I want it to be named as "najmi-archsight". Issue this command:
sudo mkfs.vfat  -I /dev/sdc -n "najmi-archsight"
While let say in the other hand, you already got a data inside and want to change the label, use dosfslabel:
1- If the device is mounted, unmount it first2- Issue this command:
Let say here I want to rename the device to "najmi-csm". The device is firstly mounted at /media/B807-ED09

najmi@vostro:~$ df -kh
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda5        47G   42G  3.1G  94% /
udev            1.9G  4.0K  1.9G   1% /dev
tmpfs           752M  1.4M  750M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            1.9G   88K  1.9G   1% /run/shm
/dev/sda6       173G  164G   12K 100% /home
/dev/sdb        2.0G  4.0K  2.0G   1% /media/najmi-archs
/dev/sdc        3.8G  2.5M  3.8G   1% /media/B807-ED09
 
Unmount first: najmi@vostro:~$ sudo umount /media/B807-ED09/
 
Label it: najmi@vostro:~$ sudo dosfslabel /dev/sdc "najmi-csm"
 
Check and plug back/mount the drive: najmi@vostro:~$ df -kh
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda5        47G   42G  3.1G  94% /
udev            1.9G  4.0K  1.9G   1% /dev
tmpfs           752M  1.4M  750M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            1.9G   88K  1.9G   1% /run/shm
/dev/sda6       173G  164G  4.0K 100% /home
/dev/sdb        2.0G  4.0K  2.0G   1% /media/najmi-archs
/dev/sdc        3.8G  2.5M  3.8G   1% /media/najmi-csm

As you can see, device /media/B807-ED09 was changed to /media/najmi-csm

Artikel ini hanyalah simpanan cache dari url asal penulis yang berkebarangkalian sudah terlalu lama atau sudah dibuang :

http://mint-my.blogspot.com/2012/07/changing-storage-label-on-linux.html

Kempen Promosi dan Iklan
Kami memerlukan jasa baik anda untuk menyokong kempen pengiklanan dalam website kami. Serba sedikit anda telah membantu kami untuk mengekalkan servis percuma aggregating ini kepada semua.

Anda juga boleh memberikan sumbangan anda kepada kami dengan menghubungi kami di sini
Faedah Jika Menggunakan Linux

Faedah Jika Menggunakan Linux

papar berkaitan - pada 12/11/2021 - jumlah : 158 hits
LinuxSalam semua Seriously blur Takde idea nak update apa hari ni Semalam macam macam draf ditulis dalam telefon Laaa Rupa rupanya tajuk tajuk lagu yang nak dicari kemudian Adeh Fikir punya fikir akhir sekali tergerak hati untuk cari balik ...
Convert M4v To Mp4 Massively In Ubuntu Linux 16 04

Convert M4v To Mp4 Massively In Ubuntu Linux 16 04

papar berkaitan - pada 12/11/2021 - jumlah : 153 hits
As ffmpeg compilation might varies by default in your distro this one is tested on 16 04 Else you can happily recompile ffmpeg from git with your preferred flagfor i in ls 1 m4v do ffmpeg i i acodec copy vcodec copy basename i m4v mp4 doneY...
Windows Malware Detection On Linux Host

Windows Malware Detection On Linux Host

papar berkaitan - pada 12/11/2021 - jumlah : 156 hits
My favoriate workstation is Linux but I need to analyze Windows malware The are several options such as listed On Ubuntu for example we can simply type sudo apt get install clamav F prot also provides a free Linux host antivirus to analyze ...
Creating Human Friendly Timestamp For Linux History

Creating Human Friendly Timestamp For Linux History

papar berkaitan - pada 12/11/2021 - jumlah : 190 hits
HISTTIMEFORMAT d m y T Output 2031 29 06 15 21 54 31 ps uanx grep i bbb 2032 29 06 15 21 54 40 nmap localhost 2033 29 06 15 21 55 11 history
Linux Mint 13 Maya Released

Linux Mint 13 Maya Released

papar berkaitan - pada 12/11/2021 - jumlah : 134 hits
Linux Mint 13 codename Maya was just released last week It is based on Ubuntu 12 04 LTS which means it will be supported until year 2017 More info can be read Which regards to the comparison of it s interface MATE and Cinnamon can be read F...
Using Regexp In Linux Commands

Using Regexp In Linux Commands

papar berkaitan - pada 12/11/2021 - jumlah : 159 hits
What if you have several files with same name but different extension and you want to choose only few files and leave the rests See the example here Create several files najmi vostro test touch aku png aku jpg aku txtCheck najmi vostro test...
Wow Linux Command Line Segera Hadir Di Windows 10

Wow Linux Command Line Segera Hadir Di Windows 10

papar berkaitan - pada 11/11/2021 - jumlah : 211 hits
Melalui Event Build 2016 lalu Microsoft telah mengumumkan bekerja samanya dengan Canonical agar dapat membawa Linux Command Line ke built in Windows 10 Dengan hadirnya Bash shell ke Windows tentu saja menjadi kabar yang sangat mengejutkan d...
Resepi Bbq Kambing

Games Outlets Damansara Aliff

Sarapan Pagi Di Warong Onie Corner Ayer Keroh Melaka

Happy 10th Birthday Ilham Syamil 27 Jan 2025

Buasir Otak Tv Kenapa Ayam Masa Hidup Satu Nama Bila Mati Banyak Nama Be Like

Halal Certification Is A Non Muslim Issue

Sebatan Syariah Daripada Presiden Persatuan Peguam Muslim Malaysia

Pelbagai Kaum Makan Budu Dalam Pinggan Sama


echo '';
Senarai Lagu Tugasan Konsert Minggu 11 Gegar Vaganza 2024 2025 Musim 11 Separuh Akhir

Keputusan Markah Peserta Konsert Minggu 10 Gegar Vaganza 2024 2025 Musim 11 Suku Akhir

10 Drama Melayu Terbaru TV3 2024 2025 Best Mesti Tonton Juga Tersedia Online

4 Tanda Ketagihan Yang Jelas Pada Wajah Seorang Penagih Syabu Ice

Biodata Putra Abdullah Atlet Muay Thai Boxing Malaysia Seangkatan Johan Ghazali Jojo Team Jordan Boy


A Short Interior Painters Guide To Color Psychology And Perceived Size

Ptptn Encourages Savings Plans To Reduce Reliance On Education Loans

Wet Cny For Sabah Sarawak With Continuous Rains Expected Says Metmalaysia

Eleven Masked Men Break Into Puchong Home Two Seriously Injured

Cukup Mudah Masak Ayam Kari Jepun Cepat Dan Sedap Di Makan

Lewat Malam Di Bahagian Kecemasan Hospital