博客
关于我
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/

你可能感兴趣的文章
NMF(非负矩阵分解)
查看>>
nmon_x86_64_centos7工具如何使用
查看>>
NN&DL4.1 Deep L-layer neural network简介
查看>>
NN&DL4.3 Getting your matrix dimensions right
查看>>
NN&DL4.7 Parameters vs Hyperparameters
查看>>
NN&DL4.8 What does this have to do with the brain?
查看>>
nnU-Net 终极指南
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named 'pandads'
查看>>