Centos 挂载U盾
时间: 2024-03-18 20:23:00 浏览: 33
可以使用以下命令来挂载U盘:
1. 创建一个挂载点: sudo mkdir /media/usb
2. 查看U盘的设备名称: sudo fdisk -l
3. 挂载U盘: sudo mount /dev/sdb1 /media/usb
请注意,U盘的设备名称可能不同,需要根据实际情况进行调整。
相关问题
CentOS取消开机时自动挂载U盘
可以通过修改 `fstab` 文件来取消 CentOS 开机时自动挂载 U 盘。具体步骤如下:
1. 找到 U 盘的设备名,可以使用 `lsblk` 命令查看。
2. 打开 `/etc/fstab` 文件,找到对应的 U 盘挂载信息。
3. 在对应的行前加上 `#` 号,注释掉该行,保存文件。
4. 重新启动 CentOS,U 盘就不会自动挂载了。
需要注意的是,取消自动挂载后,如果需要使用 U 盘,可以手动挂载。挂载命令如下:
```
sudo mount /dev/sdx1 /mnt
```
其中,`/dev/sdx1` 是 U 盘的设备名,`/mnt` 是挂载点。根据实际情况修改。
阅读全文
相关推荐
![-](https://img-home.csdnimg.cn/images/20241231044901.png)
![-](https://img-home.csdnimg.cn/images/20241231044901.png)
![-](https://img-home.csdnimg.cn/images/20250102104920.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![txt](https://img-home.csdnimg.cn/images/20241231045021.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![-](https://img-home.csdnimg.cn/images/20241231044930.png)
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)