20241209给Ubuntu20.04系统的的交换分区增加为20GB的步骤

三、分区配置 rk3566/rk3568 修改分区 阅读详情

20241209给Ubuntu20.04系统的的交换分区增加为20GB的步骤
2024/12/9 21:10


缘起,编译中科创达的高通CM6125模块的Android10的时候,老报错。
编译环境可以编译荣品的RK3566的Android13/Buildroot。
以前荣品的RK3566的Android13的编译环境是可以编译通CM6125模块的Android10的。
后来查,有人说是交换分区的问题。
于是查找改大交换分区的方法。

详细步骤:


结论:貌似这种方法还是不行的!
可能还是需要重装系统/在装系统的时候直接配置swap交换分区了。


百度:ubuntu 查看系统默认 swap 分区大小

https://blog.csdn.net/qq_43680827/article/details/134433561
Ubuntu-调整交换分区大小


[BEGIN] 2024/12/6 14:28:55
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ cat /proc/swaps 
Filename                Type        Size        Used        Priority
/swapfile                               file        2097148        0        -2
rootroot@rootroot-X99-Turbo:~$ 
/swapfile                               file        2097148        0        -2
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo swapoff /swapfile
[sudo] password for rootroot: 
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo rm /swapfile
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ cat /proc/swaps 
Filename                Type        Size        Used        Priority
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo dd if=/dev/zero of=/swapfile bs=1GB count=20
20+0 records in
20+0 records out
20000000000 bytes (20 GB, 19 GiB) copied, 14.3619 s, 1.4 GB/s
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ ll /swapfile
-rw-r--r-- 1 root root 20000000000 12月  6 14:31 /swapfile
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo chmod 777 /swapfile
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo mkswap -f /swapfile
mkswap: /swapfile: insecure permissions 0777, 0600 suggested.
Setting up swapspace version 1, size = 18.6 GiB (19999993856 bytes)
no label, UUID=b39fd196-bfd3-4cf7-8ec0-c50a8082a46b
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo swapon /swapfile
swapon: /swapfile: insecure permissions 0777, 0600 suggested.
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ cat /proc/swaps
Filename                Type        Size        Used        Priority
/swapfile                               file        19531244    0        -2
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ free --giga
              total        used        free      shared  buff/cache   available
Mem:             67           1          44           0          21          65
Swap:            19           0          19
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ gnome-system-monitor
rootroot@rootroot-X99-Turbo:~$ 


一、系统情况
Ubuntu :Ubuntu 20.04.6 LTS

交换分区位置:

cat /proc/swaps


二、去除旧的交换分区文件
去掉旧的交换分区有两个步骤:

停止旧的交换分区
sudo swapoff /swapfile

删除旧的交换分区
sudo rm /swapfile

在根目录下找不到swapfile,说明删除成功,一般也不会说删不掉

三、配置并启用交换分区
创建新swapfile文件
下面的命令就是分配10G的交换分区命令

sudo dd if=/dev/zero of=/swapfile bs=1GB count=10
1
Linux dd 命令用于读取、转换并输出数据。
dd 可从标准输入或文件中读取数据,根据指定的格式来转换数据,再输出到文件、设备或标准输出。

if=文件名:输入文件名,默认为标准输入。即指定源文件。
of=文件名:输出文件名,默认为标准输出。即指定目的文件。
ibs=bytes:一次读入bytes个字节,即指定一个块大小为bytes个字节。
obs=bytes:一次输出bytes个字节,即指定一个块大小为bytes个字节。
bs=bytes:同时设置读入/输出的块大小为bytes个字节。
cbs=bytes:一次转换bytes个字节,即指定转换缓冲区大小。
skip=blocks:从输入文件开头跳过blocks个块后再开始复制。
seek=blocks:从输出文件开头跳过blocks个块后再开始复制。
count=blocks:仅拷贝blocks个块,块大小等于ibs指定的字节数。
conv=<关键字>,关键字可以有以下11种:
conversion:用指定的参数转换文件。
ascii:转换ebcdic为ascii
ebcdic:转换ascii为ebcdic
ibm:转换ascii为alternate ebcdic
block:把每一行转换为长度为cbs,不足部分用空格填充
unblock:使每一行的长度都为cbs,不足部分用空格填充
lcase:把大写字符转换为小写字符
ucase:把小写字符转换为大写字符
swap:交换输入的每对字节
noerror:出错时不停止
notrunc:不截短输出文件
sync:将每个输入块填充到ibs个字节,不足部分用空(NUL)字符补齐。
--help:显示帮助信息
--version:显示版本信息

启用新swapfile文件
# 先修改文件权限
sudo chmod 600 /swapfile

# 然后设置为swap文件
sudo mkswap -f /swapfile

# 最后启用swap文件
sudo swapon /swapfile

查看进度
如果交换分区很大,想知道生成的进度,可以参考 Linux-查看dd命令进度
四、查看swap文件大小
free --giga


在系统资源部分也能看见分区大小:


 

DIY便携式PEMF磁脉冲治疗仪:百元成本自制生物物理疗法设备 脉冲电磁场(PEMF)疗法是一种基于生物物理原理的非侵入性技术,它通过特定频率的电磁脉冲作用于细胞层面,影响细胞膜电位和离子通道活动,从而可能调节细胞代谢与功能。其技术价值在于提供了一种物理干预手段,在健康科技和生物黑客领域被探索用于放松、恢复等场景。实现PEMF的核心是通过信号发生与功率放大驱动电磁线圈产生可控磁场。本文以蓝牙音频模块和智能手机App为切入点,详细解析了如何利用低成本电子元件(如DFRobot XY-WRBT模块和漆包线线圈)构建一个可自定义频率的便携式PEMF设备,涵盖了从电路设计、线圈 阅读详情

相关推荐

树莓派5外接RTX显卡:从PCIe到驱动的完整踩坑指南

在ARM架构与GPU加速的交汇点,树莓派5凭借其PCIe接口为DIY爱好者打开了外接独立显卡的大门。然而,PCIe x1的带宽限制、供电差异以及NVIDIA驱动在ARM Linux上的兼容性,使得这一组合成为一场高强度的系统底层排错训练。从理解PCIe总线原理、驱动加载机制到CUDA环境配置,每一步都充满挑战。本文以工程实践视角,梳理外接RTX显卡的完整流程、常见故障与性能瓶颈,并探讨其在边缘计算、AI推理等场景下的真实价值,帮助你理性评估这一实验性方案的可行性与替代路径。

chubaisheng8627的博客 355

在Ubuntu 20.04上添加swap交换空间

亲测可用

xfxuezhang.cn 2万+

逆向实战:Soul聊天协议加密与Frida绕过检测技术解析

本文详细解析了Soul聊天协议的逆向工程实战,重点介绍了使用Frida绕过检测技术的具体方法。通过IDA和JADX进行静态分析,结合Frida动态调试,揭示了数据加密与解密的核心逻辑,并提供了完整的逆向工作流和实用技巧,帮助开发者深入理解协议逆向过程。

weixin_29260291的博客 934

【ubuntu20.04增加交换空间】

ubuntu20.04增加交换空间

LuckyKing01的博客 758

Word公式批量转MathType终极指南:解决omml2mml.xsl缺失与格式调整难题

本文提供Word公式批量转MathType的终极解决方案,重点解决常见的omml2mml.xsl文件缺失问题,并详细讲解批量转换与格式调整技巧。通过补全文件路径、分批次转换及样式预设等方法,大幅提升学术论文公式编辑效率,适用于Office 2016及以上版本。

weixin_28419039的博客 1372

芒果YOLOv1改进35:主干Backbone篇之MobileViTv3:全网首发最新 MobileViTv3 系列最强改进版本(三)|轻量化Transformer视觉转换器,简单有效地融合了本地全局

芒果YOLOv1改进35:主干Backbone篇之MobileViTv3:全网首发最新 MobileViTv3 系列最强改进版本(三)|轻量化Transformer视觉转换器,简单有效地融合了本地全局

包括YOLOv5、YOLOv7、YOLOv8等模型改进 444

ubutnu20.04 swap扩容内存

在 Ubuntu 20.04 上扩容 SWAP 可以通过以下步骤完成。根据你的df -h。

Tipriest的博客 547

10、硬件工程师笔试面试——继电器(2025版本)

在设计电路时,应综合考虑SSR的优势和局限性,确保选择合适的型号,并采取适当的设计措施来优化性能和可靠性。继电器的主要功能是利用较小的电流或电压来控制较大电流或电压的电路,实现信号的放大和隔离。在处理继电器故障时,应综合考虑电源、线圈、触点和负载等因素,及时进行故障诊断和处理,以确保电路系统的稳定性和安全性。由于汽车电子系统的复杂性,继电器的设计和选择必须考虑到系统的特定要求,包括电流容量、电压等级、环境条件(如温度、湿度、振动)以及所需的保护和隔离功能。确定线圈的工作电压或电流,以及吸合电压或电流。

XU157303764的博客 3744

Ubuntu20.04系统增加交换空间

为Ubuntu系统添加交换空间

qq_37223654的博客 566

《Zephyr OS 入门与实战》第5章:内存管理策略

【代码】《Zephyr OS 入门与实战》第5章:内存管理策略。

2301_79143213的博客 356

使用LSTM实现自动调制识别(RML2018.01a)

目录一、LSTM的代码实现1.1 导入包1.2 数据读取及数据集划分1.3 数据预处理1.4 构建LSTM模型 本文基于RML2018.01a大型数据集,给出LSTM的信号识别的实现方式(附代码) RML2018.01a数据集信息如下: 模型 传送门 CNN/ResNet 使用CNN/ResNet实现自动调制识别(RML2018.01a) LSTM 使用LSTM实现自动调制识别(RML2018.01a)) 一、LSTM的代码实现 1.1 导入包 import numpy as np

QAQIknow的博客 6138

ubuntu 20.04重装系统分区

但256M不够,安装商店软件时,提示 boot 空间不足。/var 32G 用得空间较多,小了需要经常清理,略麻烦,起码16G,/usr/local 150G 放自己程序的目录,安装时需添加目录选项指定。/ 60G 根目录,用于存放系统。/boot 32G 启动文件,可能2G也够,格式化此分区数据,/ 和 /usr。

天下对手教会少林武僧 4444

灰色预测GM(1,n)模型_python

灰色系统理论及其应用系列博文: 一、灰色关联度分析法(GRA)_python 二、灰色预测模型GM(1,1) 文章目录一、GM(1,n)算法二、示例2.1 数据:2.2 代码_使用GM(1,n)城市用水总量2.3 结果分析 一、GM(1,n)算法 二、示例 注:数据均来自论文《基于灰色系统理论的贵阳市城市用水总量预测》 2.1 数据: data.csv 年份,城区人口,建成区面积,供水总量,用水人口,人口综合用水指标,城市用水总量 2002, 191.85, 98.00, 26396.00,

qq_34229228的博客 1万+

调整linux swap 分区大小

调整swap 分区大小 查看:free -h 内存大小情况: swap 分区 一般设置为内存大小的1.5到2倍左右 使用dd 命令创建一个 空文件 大小自己决定 dd if=/dev/zero of=/swapfile bs=1024 count=4096000 通过ls 命令查看swap文件情况: ls -lth / | grep swap 通过mkswap 命令转此分区转为swa.

yeyuningzi的博客 2364

Outlook Express 6 (OE6) for Win7/Win8/Win10

英文版 Outlook Express6.0, 兼容Win7/Win10/WinXP,解压就可用。

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

ubuntu20.04 扩大交换空间swap

下面这个指令会把我们的空间变成可用的swap空间。创建一个新的swap文件。检查当前swap情况。

耶律大石的博客 1457

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

centos 配置 swap

centos 配置 swap cd /var dd if=/dev/zero of=swapfile bs=1024 count=1024000 mkswap swapfile chmod 0600 swapfile swapon swapfile swapon swapfile 开启 swapfile,如果报 swapon: /var/swapfile: insecure permissi...

qyvlik的专栏 734

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Ubuntu 20.04 系统分区

ubuntu系统分区主要划分为5个部分,由于拿出了93个G的硬盘空间用于ubuntu安装,本文按该大小分配空间。 1、efi引导区 作用:该分区用于efi引导,从而使得电脑能够找到ubuntu分区。(Bios中需要打开uefi启动) 类型:逻辑分区。 大小:只是引导分区而非系统分区,不需要很大,设置为500M。 2、SWAP虚拟内存区 作用:与CPU进行数据交换的虚拟存储器,用于临时数据的存储。 类型:主分区。 大小:通常设置为与电脑实际的内存大小相匹配,我电脑为8G,因此设置为8*1024

ISE_numberone的博客 7万+

Ubuntu调整swap大小

说明swap文件名称为swapfile,位于 / 根目录下 在根目录下找不到swapfile,说明删除成功 Linux dd 命令用于读取、转换并输出数据。dd 可从标准输入或文件中读取数据,根据指定的格式来转换数据,再输出到文件、设备或标准输出。 在根目录下也能看到新建的swapfile swapfile所在行内容如下即可...

MAVER1CK的博客 1万+

Linux入门真经-034文件系统知识与常用命令补充

1、df与du df:显示已挂载磁盘设备的使用情况 常用选项: -h:大小数值用更易于人理解的方式显示 -i:显示inode用量而非默认磁盘空间使用信息   du:显示目录空间的占用情况 常用选项: -s查看目录内文件总共占了多大空间 -h使用合适的单位使得数据大小更易读   2、dd命令   dd可以从标准输入或文件中读取数据,在输出到指定的文件。乍一看有点像复制的...

TheMonkeyKing 460

ubuntu20.04分区方案 for deeplearning

一共分出4个系统分区。1. 设置efi引导因为是u盘的uefi启动,因此设置一个efi引导项。具体参数:大小: 500到1024mb即可(视自身的存储空间而定)新分区的类型: 逻辑分区新分区的位置: 空间起始位置用于: EFI系统分区2.swapswap用作虚拟内存,根据自身的物理内存决定。如果物理内存在8G以下,则swap设置为物理内存一样的大小,如果超过8G,则一般设置为8G大小的虚拟内存就足够了。根据自身的使用需求,也可以适当增大swap大小。我的电脑用了两个8g的内存条,因此大小设置为了16g*10

qq_35724582的博客 1万+

Ubuntu 20.04 调整SWAP分区容量

Ubuntu 20.04安装后,下面展示了调整SWAP分区大小的过程。4、启用SWAP分区,再查看内存分区(15G + 8G)3、调整/swapfile到8GB,并格式化。1、查看内存分区(15GB+2GB的组合)

winycg的博客 1591

linux增加swap分区和删除swapfile文件的方法

创建swapfile文件 执行命令:dd if=/dev/zero of=swapfile bs=1024 count=500000 注:可根据实际需要更改count值的大小,这里设置500000,大概就是50G [root@dics-no iflytek]# dd if=/dev/zero of=swapfile bs=1024 count=500000 500000+0 records...

Seven_tester的博客 2万+

如何在 Ubuntu 20.04 上添加交换空间

简介:本文主要为大家讲解如何在 Ubuntu 20.04上添加并激活一个交换空间。 镜像下载、域名解析、时间同步请点击阿里巴巴开源镜像站 交换空间是硬盘上的一个空间,当物理 RAM 内存被用尽时,被紧急征用的空间。当一个 Linux 系统 RAM 内存耗尽,不活跃的内存页将会被移动到交换空间。 交换空间可以是一个独立的交换分区,也可以是一个交换文件。例如,当在一个虚拟机上运行一个 Ubuntu 时,没有一个交换分区,并且唯一的选项就是创建一个交换文件。 本文将为大家讲解如何在 Ubuntu 2...

a_small_cherry的博客 2205

ubuntu20.04双系统分区

ubuntu20.04双系统分区

schFallingCloud 8856

ubuntu修改交换分区swap方法

1. 切换为root用户 su 输入密码 2. 查看当前swap分区信息 free -h root@cwm-OptiPlex-7060:/home/cwm/work/project/gm/tool/cp_envtools/pkg# free -h 总计 已用 空闲 共享 缓冲/缓存 可用 内存: ...

chen245250566的专栏 1813

Linux上创建SWAP文件/分区

很久很久以前,电脑的内存是个珍贵东西,于是乎就有了swap这个东西,简单来说就是内存不够用的时候,用硬盘空间顶上。这个分区在近些年来已经越来越不受大家的待见了,主要是因为现在内存比较宽裕,但是在小内存的VPS上,还是有自己的用武之地的,特别是当看到内存不足之类的错误出现在log中的时候,可以尝试创建swap来分担一下内存的压力。 swap无法替代物理内存,性能上也会差很多,在SSD硬盘上使用对读...

zhangxiaoyang0的专栏 4万+
上一篇: 20241209在Ubuntu20.04中安装terminator以便同时打开多个终端窗口
下一篇: 20241216确认宸芯CX6603的数传部分最高支持的460800波特率
南棱笑笑生
博客等级 码龄22年 4605粉丝 1279原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值