博客
关于我
Linux系统拓展内存
阅读量:517 次
发布时间:2019-03-07

本文共 612 字,大约阅读时间需要 2 分钟。

今天再处理处理的时候,发现VMware虚拟机的内存用完了,报错提示The configuration defaults for GNOME power Manager have not been installed correctly please contact your computer administrator

一查原因,原来是内存满了。只好增加内存了。

1.在VMware里面拓展内存

这个看图就行了,在关机状态下,本来是10G,我加了10G

可是加了内存只好,还是报错了,加进去的内存并没有显示出来。

2.新建分区,挂分区

先取得su权限,然后输入【fdisk /dev/sda】 ,接着输入m,然后数据n新建分区

 然后输入P创建主分区,按两次回车,然后输入W保存。然后输入reboot重启系统。

重启之后,输入fdisk -l可以看到刚才新建的分区是sda4已经新建好了。

输入 mkfs.ext2 /dev/sda4对新分区进行格式化,格式化磁盘的文件系统为ext2

在根目录新建文件夹 mkdir disk4,把新分区挂到这个文件夹下面 mount /dev/sda4 /disk4/

然后设置开启自动挂载  vim /etc/fstab在最后追加/dev/sda4               /disk4                   ext2   defaults        0 0

接着输入df -hT可以看到挂载的分区了

 可以通过du -sh *查看每个文件夹使用大小

转载地址:http://asmjz.baihongyu.com/

你可能感兴趣的文章
Nginx+Tomcat实现动静分离
查看>>
nginx+Tomcat性能监控
查看>>
nginx+uwsgi+django
查看>>
nginx+vsftp搭建图片服务器
查看>>
Nginx-http-flv-module流媒体服务器搭建+模拟推流+flv.js在前端html和Vue中播放HTTP-FLV视频流
查看>>
nginx-vts + prometheus 监控nginx
查看>>
Nginx/Apache反向代理
查看>>
Nginx: 413 – Request Entity Too Large Error and Solution
查看>>
nginx: [emerg] getpwnam(“www”) failed 错误处理方法
查看>>
nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:
查看>>
nginx:Error ./configure: error: the HTTP rewrite module requires the PCRE library
查看>>
Nginx、HAProxy、LVS
查看>>
Nginx下配置codeigniter框架方法
查看>>
Nginx中使用expires指令实现配置浏览器缓存
查看>>
nginx中配置root和alias的区别
查看>>
nginx主要流程(未完成)
查看>>
Nginx之二:nginx.conf简单配置(参数详解)
查看>>
Nginx从入门到精通
查看>>
Nginx代理websocket配置(解决websocket异常断开连接tcp连接不断问题)
查看>>
Nginx代理初探
查看>>