Files
blog-tech/content/posts/220223-Deepin_PartsInddefilemanager.md
T
2026-07-17 10:20:54 +08:00

54 lines
1.9 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Deepin/UOS文件管理器隐藏不需要的盘符
date: 2022-02-23T09:18:55+08:00
lastmod: 2022-02-23T09:18:55+08:00
draft: false
description: "处理UOS出现其他盘符的问题"
authors:
- Kushidou
tags:
- Linux
- Deepin/UOS
categories: []
toc: true
comments: true
---
Deepin/UOS 里处理文件管理器显示太多盘符的问题。
<!--more-->
## 现象
在使用UOS操作系统时,有时候打开文件管理器,发现除了平常常见的“系统盘”、“数据盘”外,出现了更多的盘符(不属于移动u盘)。在`/etc/fstab`文件添加或删除“”并没有效果。
![image-20220223090517363](https://cdn.jsdelivr.net/gh/kushidou/PicLibrary//img/202202230924406.png)
## 原理/原因
这是因为系统/etc/udev/rules.d文件夹做了非法修改。有些人盲目替换了文件夹文件,导致配置文件变化,系统无法正确执行隐藏操作。
## 处理方法
1. 打开`/etc/udev/rules.d`目录,查看是否有一个《80-udisks2.rules》文件。如果该文件不存在,请创建。
2. 打开终端,使用root权限打开编辑
```bash
sudo deepin-editor /etc/udev/rules.d/80-udisk2.rules
```
3. **打开新的终端**,输入执行 `blkid -f` ,记录LABLE、UUID两列
![截图录屏_选择区域_20220223090208](https://cdn.jsdelivr.net/gh/kushidou/PicLibrary//img/202202230928320.png)
4. 对比`80-udisks2.rules`的内容,将里面的ENV{ID_FS_UUID}后面引号中内容换成第3步中显示的新的UUID。
#号后面内容即为盘符,对应3中的LABEL,双等号后面就是UUID,四行都需要替换)
![截图录屏_选择区域_20220223090606](https://cdn.jsdelivr.net/gh/kushidou/PicLibrary//img/202202230927888.png)
5. 保存文件并重启计算机,即可看到效果。
6. 该方法对Deepin系统也有效。对于其他使用了dde-file-manager的应该也是有作用的。