乔部落格

世界上有10种人:认识二进制的和不认识二进制的

如何查看Linux系统中的 LABEL/UUID

joe posted @ 2010年9月06日 23:51 in Unix/Linux with tags label uuid , 12686 阅读

 

使用 blkid 命令:

用法(LABEL):

# blkid -s LABEL

/dev/hda3: LABEL="/"

/dev/hda1: LABEL="/boot1"

/dev/hda2: LABEL="SWAP-hda2"

/dev/hdc1: LABEL="/boot9"

/dev/hdc2: LABEL="/vm"

/dev/hdc3: LABEL="/home9"

/dev/hdc5: LABEL="/9"

/dev/hdc6: LABEL="/var/ftp/pub9"

/dev/hdc8: LABEL="/boot"

/dev/hdc9: LABEL="/1"

用法(UUID):

# blkid -s UUID

/dev/hda3: UUID="440612e0-9cea-4751-8e59-07ebffc589c2"

/dev/hda1: UUID="027ecc62-d346-411d-ae6c-c3eaa87fb195"

/dev/hdc1: UUID="fdbe6b52-755f-4e14-b970-b3be01543acc"

/dev/hdc2: UUID="e61f4197-5f00-4f4f-917c-290922a85339"

/dev/hdc3: UUID="06679282-4973-476a-98ae-4986f504816f"

/dev/hdc5: UUID="51f7e9a4-5154-4e29-a7a6-208417290b85"

/dev/hdc6: UUID="4bf4855e-96b9-43c4-89d7-b3d0087560e1"

/dev/hdc8: UUID="5a15d9d7-5a17-4d71-a2b6-eb978e6905cd"

/dev/hdc9: UUID="dc348785-9acb-4484-b52a-da000ffba601"

 

改变LABEL名称:

e2label 设备 新label,例如把 /dev/hda1 命名为 /boot:

e2label /dev/hda1 /boot

在mount 命令中使用 LABEL/UUID

mount LABEL=/boot1 /boot

mount UUID="51f7e9a4-5154-4e29-a7a6-208417290b85" /mnt/

在 /etc/fstab 中使用 LABEL/UUID

档案/etc/fstab

LABEL=/                                        /        ext3    defaults   1   1

LABEL=/boot1                                   /boot    ext3    defaults   1   2

UUID="e61f4197-5f00-4f4f-917c-290922a85339"   /usr     ext3    defaults   1   12

전설 서구 说:
2021年3月02日 16:10

This type of message always inspiring and I prefer to read quality content, so happy to find good place to many here in the post, the writing is just great, thanks for the post. 123movie

Delhi Escorts 说:
2021年7月17日 20:01

The Hot and sexy Girls are here to give all sorts of fun and enjoyment
<a href="http://www.ritaescortsdelhi.com/"> Delhi Escorts </a>

maids in dubai 说:
2021年9月28日 16:32

In a business, essentially the most important considerations is the volume of revenue it could possibly generate along with the time to get started generating the item. When people start in search of a small business, you might discover that running your individual cleaning small business fits this bill properly. It is usually one business that could provide incredibly sound personal returns within awhile; and a small number of complications will likely be encountered though running this company.

Top SEO 说:
2021年10月12日 07:40

We are tied directly into the sate’s renewal database which allows us to process your request almost instantly. European Dating Websites

Top SEO 说:
2021年10月12日 12:50

I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. استشارات قانونية

Top SEO 说:
2021年10月12日 22:41

دانلود رایگان فیلم, دانلود فیلم جدید, دانلود سریال ایرانی, دانلود فیلم با لینک مستقیم, دانلود سریال با کیفیت بالا, دانلود سریال دانلود فیلم سریال

Top SEO 说:
2022年1月11日 15:35

I am impressed by the information that you have on this blog. It shows how well you understand this subject. macombilweddingphotographer

토토사이트 说:
2022年1月23日 19:29

Make the most of mainly premium substances - you will find him or her for:

Top SEO 说:
2022年2月21日 21:14

Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks https://www.royalapar.com/

Top SEO 说:
2022年2月21日 21:30

Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. daftar link alternatif mpo

https://grandmpo.inf 说:
2022年5月26日 15:59

great post i really like your post, thanks for sharing this <a href="https://grandmpo.info/">https://grandmpo.info/</a>

NCERT Geography Samp 说:
2022年9月24日 02:25

Geography helps the students on understanding the basic physical systems that affect everyday life. NCERT Geography Sample Paper Class9 Geography is the study of the Internal and external characteristics of the Earth and its atmosphere, and of human activity as it affects and is affected by these, including the distribution of populations and resources, land use, and industries.Geography helps the students on understanding the basic physical systems that affect everyday life.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter