如何用html调出磁盘空间,在磁盘空间较小的设备上使用Guix的建议.html

/p>

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

/*

@licstart The following is the entire license notice for the

JavaScript code in this tag.

Copyright (C) 2012-2019 Free Software Foundation, Inc.

The JavaScript code in this tag is free software: you can

redistribute it and/or modify it under the terms of the GNU

General Public License (GNU GPL) as published by the Free Software

Foundation, either version 3 of the License, or (at your option)

any later version. The code is distributed WITHOUT ANY WARRANTY;

without even the implied warranty of MERCHANTABILITY or FITNESS

FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.

As additional permission under GNU GPL version 3 section 7, you

may distribute non-source (e.g., minimized or compacted) forms of

that code without the copy of the GNU GPL normally required by

section 4, provided you include this license notice and a URL

through which recipients can access the Corresponding Source.

@licend The above is the entire license notice

for the JavaScript code in this tag.

*/

1 在磁盘空间较小的设备上使用Guix的建议

1.1 使用带有透明压缩的文件系统

将 /gnu 放在带有透明压缩的文件系统上

 
      

# 在非Guix System上安装之前:

mkdir /gnu

mkfs.btrfs /dev/sdXX

mount -o compress-force=zstd:15 /dev/sdXX /gnu

 
      

;; 在Guix System 的配置文件中

;; 文件系统

(file-systems (append (list

;; Some File system Here

(file-system

(device "/dev/sdXX")

(mount-point "/gnu")

(type "btrfs")

(options "compress-force=zstd:15")) ;; 缓解磁盘不足

)

%base-file-systems))

1.2 经常gc删除掉不需要的内容

 
      

guix system delete-generations # 删除旧的系统配置(在非Guix System上运行guix则不需要)

guix gc -d # 删除旧的profile并清理无用内容

Author: user

Created: 2020-07-27 Mon 09:52

Validate

一键复制

编辑

Web IDE

原始数据

按行查看

历史

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值