Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Why device ID is not recommended for fstab mount partitions on Linux systems

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail why the fstab mount partition of Linux system is not recommended to use device ID, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Device ID is not recommended for mounting partitions in Linux systems, and the corresponding directories are:

/ dev/disk/by-id/*

The reasons are as follows:

This value can change in some cases, and if there is a relevant add-on in fstab, it will cause the system to fail to boot.

Examples of corresponding failure scenarios:

Example 1:

Boot the virtual machine with the newly exported OVA file on virtualbox, boot time error, unable to find disk startup failed.

The disk is the same, there will be a different disk ID.

Waiting for device dev/disk/by-id/ata-...-part2 to appear problem solving

Example 2:

Disk failure. After reconfiguring RAID, the disk device ID changes, resulting in failure to boot the system using by-id.

How to deal with the problem that the UVP system cannot be started due to the change of the system disk by-id number

Example 3:

Https://www.novell.com/support/kb/doc.php?id=3580082

Device device ID is not recommended. Device ID is unique, and there will be problems in specific scenarios.

The / dev/disk/by-name path is deprecated in the SUSE Linux Enterprise Server 11 package and is not recommended.

Https://www.suse.com/zh-cn/documentation/sles11/stor_admin/data/bndgyoe.html#bin8klb

UUID is recommended.

About why the Linux system fstab mount partition is not recommended to use device ID to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report