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 : 140 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 : 138 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 : 138 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 : 173 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 : 115 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 : 135 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 : 194 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...
Let S Not Return To The Old Ways Of Tight Media Control

Air Terjun Tujuh Puteri Bukit Sri Permata

Bank Islam Berwajah Baru Melalui Aplikasi Dan Web

Company Director Scammed Of Over Rm1mil By Inspector Harun

How To Survive Thanksgiving Travel

O G Firm Right To Dismiss Worker For Refusing Covid 19 Jab Says Industrial Court

Resipi Cheese Tart

Kyrkoherden Och Draken En F Rh Xande Saga Om Mod Och V Nskap Fr N Antika Spanien


echo '';
Senarai Lagu Tugasan Konsert Minggu 1 Gegar Vaganza 2024 Musim 11

Info Dan Sinopsis Drama Berepisod Dhia Kasyrani Slot Akasia TV3

Biodata Terkini Reshmonu Peserta Gegar Vaganza 2024 Musim 11 GV11 Penyanyi Lagu Hey Waley

Gegar Vaganza 2024 GV 11 Hadiah Tiket Peserta Juri Format Pemarkahan Dan Segala Info Tonton Live Di Astro Ria Dan Sooka

6 Janji Donald Trump Kalau Dia Naik Jadi Presiden Semula


Orang Tua Sekarang Membunuh Anaknya Secara Halus

Apabila Wanita Tertinggi Dan Paling Pendek Bertemu

Seorang Sahaja Zul Ariffin Tersasul Doa Minta 4 Isteri

Isu Artis Mangsa Buli Syafiq Yusof Gesa Produksi Main Peranan Perlu Wujudkan Suasana Friendly

Kathryn And Sydney S Fantastic Pantyhose Adventure Part One

15 Creative Diy Fall Garlands To Spruce Up Your Autumn D Cor