博文

记一次有惊无险的 Linux 下根分区大小调整经历

记一次有惊无险的 Linux 下根分区大小调整经历 你将在本文中读到以下内容 :使用 fdisk 工具恢复分区顺序、删除交换分区后需要的修复工作 如果你只是想了解如何扩容磁盘,请看文章最后的 结论 部分。 请注意 ,请 不要 效仿本文中的错误操作。 只有 你遇到了相似的问题, 才 可以运用文章中的补救措施。由于作者并不精通 Linux,不保证文章内容准确,采用文章中的方法, 后果自负 。本文没有配屏幕截图。 前情提要 由于 Windows 系统过于卡顿,因此最近开始使用 Linux 操作系统,选用的是 Ubuntu 22.04 LTS 发行版。使用过程中逐渐感到磁盘空间不足,遂打算扩充磁盘空间以供使用。 当前系统环境 我已有的磁盘情况如下(按照在磁盘上的顺序排列): /dev/sda :机械硬盘,容量为 1 TB。 sda2 :逻辑分区。 sda5 :交换分区(swap),容量 16 GB。 sda6 :Linux 根目录,容量 64 GB。 sda1 :位于磁盘最后的 NTFS 分区,容量约 800 GB。 /dev/sdb :SSD。 sdb1 上装有 Windows 11 操作系统。 预期结果 由于交换分区过大,完全用不完,计划将交换分区缩小至 4 GB,并将 sda6 向前扩展 12 GB。 附注 :后续使用证明,4 GB 交换分区有些捉襟见肘,一般来说将近吃满,长时间不关机会完全吃满导致电脑卡顿,后续又调整为 8 GB。我的电脑内存是 8 GB,供参考。 摸索过程 在 Ubuntu 主系统上的操作 我打开了 GNOME「磁盘」工具,解除挂载之后企图调节 swap 分区大小,发现不能调节,遂打算删除后重建。( 请不要效仿,后果自负。 ) 删除 swap 之后,系统提示内核无法响应分区序号的更改, /dev/sda6 变为 /dev/sda5 ,让我重新启动操作系统。 我瞬间慌了,立刻找到闲置的优盘,开始烧写 Ventoy,制作启动盘。烧写完成之后,重启进入 Live CD。 在 Live CD 中的抢救工作 进入 Live CD 之后直接启动 GParted 图形界面(Ubuntu Live CD 预装)查看分区情况。创建新的 swap 分区,调节主分区大小(时间会很长),然后重启。 调节之后...

Get Your .ml Domain Back

Get Your .ml Domain Back I know clearly about what will happen if I write this post in Chinese. The .ml TLD is always dedicated to provide domains for those who can’t afford it. So if you really want to get your domain back and want to do something right with it, just follow the post. And I pray that you don’t translate, adapt or republish this article. Don’t make it known by the “domain thief”. You know why Mali withdraw the domains, right? How did I found the way I’m sure you have searched on the Internet about “Freenom ml”, and I did so. In a Reddit post, I found the site of Mali NIC, which is NIC ML . You can see the notice, it read, Notice: As of July 19th, 2023 the .ml ccTLD registry is in transition of back-end registry systems and day-to-day operations. Data provided by Freenom has been inported into the AGETIC registry. WHOIS Server https://whois.nic.ml/ or whois.nic.ml:43 More information will provided in the near future. As the notice read, data of Freenom should...

我的博客

这是 Clover Yan 的第一个正式的博客。 此前,我也注册过一些博客,但是都是收费服务,或是针对某个特定用途的。 这个博客自由度相对较高,我将会分享一些生活杂谈、技术性文章 等 。 今后我将会不定期更新,也许很久吧,但是……请多担待吧。

Giscus