我现在用的是Fedora 20,按照鸟哥的推荐,当时装系统时只给/boot分了100M。但是用yum update的时候,总显示“XXM more space needed on the /boot filesystem”。无论是yum clean all还是删旧内核(方法参照前文 http://bbs.sciencenet.cn/blog-747197-767696.html )均不奏效,因为我的系统里没有可以删的旧内核,于是只能重新分一个更大的boot分区,把老/boot里的内容移过去,改改fstab。具体细节如下。当然,操作需要知道root密码。
1、用系统自带的Disks工具找地方新建一个分区(挂载点被系统自动初始化为/mnt/啥啥啥的)作为将来新的/boot(我设了500M,希望够用吧),然后点击下方小三角图标"Mount the filesystem";
2、把老/boot下的内容全部拷贝到这个/mnt/啥啥啥下面;
3、在Disks中选择老/boot,点击下方的齿轮小图标“More actions”==>“Edit Mount Options...”,记下老/boot的设定。然后把"Mount at startup"取消,把“Mount point”改一下,比如/boot.old。点“OK”,输入root密码;
4、在Disks中选择新/boot,点击下方小方块图标“Unmount the filesystem”。点击下方的齿轮小图标“More actions”==>"Edit Partition",把“Type”改为“Basic Data (一大串)“,点“Change”。回到Disks,还是选择新/boot,点小齿轮==>"Edit Mount Options...",还记得老/boot设定是什么吧,仿照它改,确保“Mount at startup”是选中状态,且“Mount point”是/boot。点“OK”,输入root密码。再点击小三角图标“Mount the filesystem”;