虚拟机增加磁盘空间后SWAP分区不能挂载怎么办?
时间:2023-09-22 20:45:46
虚拟机增加磁盘空间后SWAP分区不能挂载怎么办?解决虚拟机linux增加磁盘空间后SWAP分区不能自动挂载的问题,本文所使用linux为LUBUNTU,不保证适用于其他发行版linux
解决虚拟机linux增加磁盘空间后SWAP分区不能自动挂载的问题,本文所使用linux为LUBUNTU,不保证适用于其他发行版linux
1、进入linux图形界面,在系统工具里面找到磁盘管理工具,lubutnu的磁盘管理工具就是Disk,打开后鼠标点击swap分区,发现此分区是mot mount状态
2、点击左下齿轮形状的图标,选择第一项format,type选择ext4,格式化完成后进入下一步
3、同样点击齿轮形状的按钮,选择edit partition,type选择为swap 0x82,确定,关闭对话框
4、进入终端工具,输入命令 :ls -l /dev/sda/by-uuid,查看swap分区的UUID,并复制此UUID
5、首先输入命令 chmod u+w /etc/fstab,赋予磁盘文件写权限,然后输入命令 vi /etc/fstab,打开文件,将复制的UUID替换掉文件原始的UUID,保存,重启虚拟机,发现swap分区自动挂载。
6、如果还是没有自动挂载,可以在命令行中输入命令:mkswap /dev/sda5,命令执行完成后在分别执行第4步和第5步也能实现分区自动挂载。
标签:挂载swap分区,虚拟机磁盘分区 ,linux磁盘分区挂载,虚拟机挂
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win10系统Nvidia安装程序失败不兼容怎么办?
2022-03-03 03:37:58
![](https://img.aspxhome.com/file/2023/1/a273468_0s.jpg)
Win10一直诊断修复进不去电脑怎么办?Win10开机停留在诊断界面解决方法
2022-09-28 02:50:36
![](https://img.aspxhome.com/file/2023/25/a218985_0s.jpg)
DBeaver连接数据库步骤
2023-08-09 16:40:25
![](https://img.aspxhome.com/file/2023/1/a274019_0s.png)
HP笔记本怎么进BIOS?惠普电脑进入BIOS方法
2022-10-03 00:59:45
![](https://img.aspxhome.com/file/2023/6/a325753_0s.jpg)
PPT幻灯片放映实用快捷键
2022-03-15 06:41:20
win7电脑explorer无法启动怎么解决?
2022-05-25 21:46:56
![](https://img.aspxhome.com/file/2023/4/a303080_0s.jpg)
QQ传送文件时提示服务器拒绝了您发送离线文件怎么办?
2023-10-16 00:50:50
![](https://img.aspxhome.com/file/2023/9/a340901_0s.jpg)
Windows10下java环境配置图解实现教程
2022-12-05 23:49:38
![](https://img.aspxhome.com/file/2023/30/a262873_0s.jpg)
哔哩哔哩中如何查看年度报告?哔哩哔哩中查看年度报告的方法
2023-10-23 15:03:42
![](https://img.aspxhome.com/file/2023/8/a335552_0s.png)
Chaos Control for Mac特色功能的使用技巧
2022-11-22 17:21:57
![](https://img.aspxhome.com/file/2023/7/a214157_0s.jpeg)
Win11怎么打开内存完整性?
2022-01-29 16:47:21
![](https://img.aspxhome.com/file/2023/30/a265233_0s.png)
Mac正式支持HomePod/HomePod mini立体声输出
2022-04-08 19:49:22
![](https://img.aspxhome.com/file/2023/2/a207162_0s.jpeg)
WPS演示教程:制作带音乐的生日贺卡
2022-10-15 05:01:31
![](https://img.aspxhome.com/file/2023/8/a165168_0s.png)
Win10玩巫师3老是弹出输入法的解决方案
2022-06-14 14:36:01
![](https://img.aspxhome.com/file/2023/30/a265041_0s.jpg)
WPS文档如何像表格一样调整页边距以适应A4纸
2022-10-05 05:20:39
![](https://img.aspxhome.com/file/2023/8/a170138_0s.jpg)
win7怎么单独调整系统菜单栏字体大小?
2022-09-28 16:51:56
![](https://img.aspxhome.com/file/2023/28/a246618_0s.jpg)
IE浏览器老是无法显示此页图文教程
2022-01-30 00:05:40
![](https://img.aspxhome.com/file/2023/1/a277147_0s.png)
台式电脑在没有无线网卡的情况下如何上网
2022-05-07 04:26:08
![](https://img.aspxhome.com/file/2023/9/a342089_0s.jpg)
Word表格中字体数字上下不居中的解决方法
2022-08-02 21:36:27
![](https://img.aspxhome.com/file/2023/0/24180_0s.png)
win10官方升级工具使用方法
2022-02-26 03:34:34
![](https://img.aspxhome.com/file/2023/1/a276296_0s.png)