<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Linuxes on PSD1403</title>
    <link>/linux.html</link>
    <description>Recent content in Linuxes on PSD1403</description>
    <generator>Hugo -- 0.136.5</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 25 Apr 2026 22:08:02 +0800</lastBuildDate>
    <atom:link href="/linux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>红帽扩容硬盘</title>
      <link>/linux/disk-1.html</link>
      <pubDate>Sat, 25 Apr 2026 22:08:02 +0800</pubDate>
      <guid>/linux/disk-1.html</guid>
      <description>&lt;h3 id=&#34;redhat-安装后默认会将硬盘分成两个区&#34;&gt;redhat 安装后默认会将硬盘分成两个区&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;sda 
--sda1 ----------------------- /boot/efi
--sda2 ----------------------- /boot
--sda3 ----------------------- /boot/efi
----rhel-root ---------------- /
----rhel-swap ---------------- [swap]
----rhel-home ---------------- /home
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&#34;这样分区没什么问题-用户数据存在-home-文件夹-不会应为用户数据存满了影响系统运行&#34;&gt;这样分区没什么问题, 用户数据存在 /home 文件夹, 不会应为用户数据存满了影响系统运行&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;# 但是我的硬盘只有 120G, 这样分区后是这样的
/ ---------------------------- 60G
/home ------------------------ 40G
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&#34;数据盘不够用-只能把-home-分区卸载-合并到-&#34;&gt;数据盘不够用, 只能把 /home 分区卸载, 合并到 /&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;# 卸载分区
umount /home
# 删除分区
lvremove /dev/mapper/rhel-home
# 合并分区
lvextend -l +100%FREE /dev/mapper/rhel-root
# 刷新分区
xfs_growfs /
# 删掉自动挂载, 避免重启找不到分区, 无法启动
vi /etc/fstab
# 删掉
/dev/mapper/rhel-home   /home   xfs   defaults   0 0
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&#34;完成了&#34;&gt;完成了&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;结果是这样的
/ ---------------------------- 100G&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>SSH密钥与私钥</title>
      <link>/linux/ssh-1.html</link>
      <pubDate>Sat, 25 Apr 2026 22:03:55 +0800</pubDate>
      <guid>/linux/ssh-1.html</guid>
      <description>&lt;h3 id=&#34;linux-创建密钥对&#34;&gt;linux 创建密钥对&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;ssh-keygen -t rsa -b 4096 -C &amp;quot;408811093@qq.com&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&#34;复制公钥到服务器-免密登录&#34;&gt;复制公钥到服务器, 免密登录&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;ssh-copy-id root@10.12.15.198&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
  </channel>
</rss>
