如何在 KuBuntu 上安装和执行 e2defrag?
来自链接:
用于对 ext[234] 文件系统进行离线碎片整理的实用程序。
这个可怜的老旧软件包曾经被称为碎片整理包,但由于多年来一直没有维护者,并且遭受了比特腐烂,因此被从 Debian 和 Ubuntu 中删除。我正在从比特桶中拯救它。
答案1
你没有提到你正在使用哪个版本的 Ubuntu,但目前只有 14.04 到 15.10 的软件包,因为已经快 2 年了电力购买协议已更新。由于 14.04 是目前唯一受支持的版本,因此我提供该版本的说明。
对于 14.04
在终端中运行以下命令
sudo add-apt-repository ppa:dpmva1/ppa
sudo apt-get update
sudo apt-get install e2defrag
从手册页编辑:
Note that unlike the fsck program, defrag MUST NOT be run on a mounted file system device
(unless invoked with the -r (readonly) option, which is always safe). Also note that if you
defragment a partition containing a bootable kernel image and are using lilo ( grub doesn't
care unless you have it installed in the partition using blocklists instead of the MBR ), you
will have to reinstall the boot loader for that image (since the location on disk of the image
may have changed).
Remember, if defrag fails to complete for any reason (including power glitches, kernel bugs
etc.), you will be left with a terminally sick, and possibly completely unreadable, filesystem,
so backup any valuable data before you start.
在 14.04.5 上测试的安装我没有理由期望点版本是相关的。