三三世界-百宝箱

文章 分类 标签
132 9 250

公告

暂无站点公告

a start job is running for file sys 8a-aff错误

三三 2021-11-21 2286 0条评论 Linux使用 centos开机错误

首页 / 正文

系统开机的过程中出现错误 ,类似于

a start job if running for file sys …(1min,30s)

1.原因分析
使用命令:free -m
可看到swap的total和free为0,即swap分区丢失了
2.解决方法
添加swap分区即可
1)生成swapfile文件
执行:dd if=/dev/zero of=swapfile bs=1024 count=4194304
swapfile为文件名,自定义,count为swap分区的大小,count=1024*1024*4
生成的文件在执行命令的目录下;
2)swap格式化

sudo mkswap /srv/swapfile

这里的swapfile为上面生成的文件,应根据具体生成的位置写
查看文件使用情况:

swapon -s

3)设置开机自动启用swapfile
方法一:

sudo gedit /etc/rc.local

添加:

swapon /srv/swapfile

方法二:

sudo gedit /etc/rc.local

修改为:

swap was on /dev/sda4 during installation
/srv/swapfile swap swap defaults 0 0

4)重启后验证

free -m

评论(0)

当前没有评论,还不快来留下第一个脚印吧



最新评论

  • 三三

    @Doug Shume it's ok for me , you can post here.

  • refugiaguenther

    Saved as a favorite, I like your website!

  • josefa

    If some one wishes to be updated with hottest technologies after that he must be visit this site and be up to date daily.

  • Penzu

    Heello would you mind sharing which blog platform you're using? I'm planning to start my own blog in the near future but I'm having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then moost blogs and I'm looking for something completely unique. P.S Apologies forr being off-topic butt I had to ask!

  • Yupoo Fendi

    Thanks to my father who shared with me regarding this webpage, this website is genuinely amazing.

  • Doug Shume

    Hi, I have an overflow of customers that I'd like to send to you but I want to make sure you can handle more leads, let me know if you'd like me to send you more info.

  • SuperWind

    zh.us.to 有效
    kms.03k.org 有效
    kms.chinancce.com
    kms.shuax.com 有效
    kms.dwhd.org 有效
    kms.luody.info 有效
    kms.digiboy.ir 有效
    kms.lotro.cc 有效
    www.zgbs.cc 有效
    cy2617.jios.org 有效

  • 三三

    @         权限问题,试试sudo 再加命令。

  •         

    你好提示Permission denied 怎么办啊

日历

2024年12月

1234567
891011121314
15161718192021
22232425262728
293031    

文章目录

上一张 下一张