升级 Linux 内核后如何避免无法启动系统?

RAK部落今天打开电脑发现linux无法正常进入,进入的是initramfs,提示什么built-in shell(ash)。。。顿时懵逼,去百度找了很多的办法比如进入grub menu之后选择第一项然后按e编辑将qiuet splash替换成all_generic_edit然后回车再按b启动linux结果还是不行,最后在公司一位伙伴的帮助下才解决,具体操作内容如下,希望能让遇到此问题的朋友避免。

注意
不建议随意自行升级内核

对于CentOS、OpenSUSE、SLES(SUSE Linux Enterprise Server) 和 Aliyun Linux,升级Linux实例后启动失败,可能是因为升级后的内核对应的initrd文件中没有virtio-blk和xen-blkfront驱动。而Debian和Ubuntu的virtio-blk和 xen-blkfront驱动是内核内置的,所以不存在这个可能性。

什么是initrd文件

initrd(initial ramdisk)是用于载入临时root文件系统到磁盘中的,运行于Linux实例启动阶段。起同样作用的还有initramfs文件,虽然initrd和initramfs是两种不同的操作概念,但这两个文件都活跃在启动实例时挂载root文件系统之前。

如何优化内核并避免启动失败

编辑系统配置文件,若配置文件中缺失下列内容需要您手动加上:

CentOS 6和CentOS 7:执行 vi /etc/dracut.conf.d/virt-drivers.conf,添加 add_drivers+=" xen-blkfront virtio_blk "

CentOS 5:执行 vi /etc/dracut.conf.d/virt-drivers.conf,添加 add_drivers+=" xen-vbd virtio_blk virtio_console "

OpenSUSE/SUSE:

执行 vi /etc/sysconfig/kernel,添加 INITRD_MODULES=" virtio_blk virtio_pci xen-vbd"

执行 vi /etc/dracut.conf,添加 add_drivers+="virtio_blk virtio_pci xen-vbd"

更新内核:

CentOS:执行 yum install kernel

OpenSUSE/SUSE:执行 zypper install kernel-default

执行命令 lsinitrd /boot/initramfs-$(new-kernel-ver).img | grep -E 'virtio|xen' 检查并确认initrd / initramfs文件中已经包含了virtio-blk和xen-blkfront驱动。

必须确认virtio-blk和xen-blkfront驱动在initrd中才可以重启服务器。

看到这,关于“升级 Linux 内核后如何避免无法启动系统?”问题的步骤讲解完毕,希望能够帮到与我同样遇到这类问题的朋友,如果在操作过程中有任何问题请随时下方评论,RAK部落看到会第一时间处理。

此文章来自固定链接:http://www.rakbuluo.com/p118

原文链接:,转发请注明来源!

发表评论

  • 79 Responses to “升级 Linux 内核后如何避免无法启动系统?”
    • mirandaxv2

      Hot new pictures each day
      http://bbwfatsexphoto.instakink.com/?raquel

      tied up gay male porn amatuer mature porn movies filapino free porn inconspicuous porn sites porn uk mature

      回复
    • frequencydrive.ru WGE74

      What do you think about this link? https://frequencydrive.ru/preobrazovatel-chastoty-isd751m21b/
      I think it is nice!!!

      回复
    • capsnab.ru YMQ33

      What do you think about this material? https://capsnab.ru/chastotnyj-preobrazovatel-invt-chf100a-2r2g/
      I think it is best!!!

      回复
    • Nanatam

      брус обрезной купить в москве, лиственница доска обрезная сухая купить в москве, брусок обрезной купить в москве,
      брус обрезной москва, доска осина обрезная купить в москве, доска обрезная лиственница цена за в москве,
      брусок сухой строганный купить в москве, доска обрезная лиственница купить в москве, березовая фанера купить в москве,
      купить кровать из бука в москве, доска обрезная осина купить в москве, доска лиственницы сухая купить в москве,
      доска обрезная осина в москве, дрова колотые с доставкой цена московская область,
      дрова колотые береза с доставкой цена московская, дрова колотые купить в московской области,
      обрезная доска гост купить в москве, дрова колотые москва, доска необрезная сосна купить в москве,
      паркетная доска из массива лиственницы купить москва, кровать из массива бука купить в москве,
      брус обрезной в москве цена, необрезная доска лиственницы в москве, плинтус из лиственницы в москве,
      комод из массива сосны купить в москве
      http://drevtorg.ning.com/main/search/search?q=%D0%BC%D0%BE%D1%81%D0%BA%D0%B2%D0%B0&page=56

      回复
    • luannka2

      Hot new pictures each day
      http://sextoyvideo.xvideocomt.instasexyblog.com/?raquel

      sexy perfect porn amateur wife porn movies really free s m porn big tit porn queens free porn tube g string

      回复
    • CarlosMax

      Лучшие биткоин (bitcoin) казино. Рейтинг криптовалютных казино. Как играть в казино и азартные игры на биткоины (Bitcoins, BTC)? Топ биткоин казино с большими бонусами, подробные обзоры казино, описание и отзывы на сайте - https://all.casino-profit.pro/casino/bitcoin.html Казино с валютой биткоин - отличный вариант для тех, кто стремится не только зарабатывать но и сохранить анонимность!

      回复
    • Jamesexake

      Хром участвует в метаболизме жиров и углеводов, стимулирует рецепторы инсулина, дефицит этого микроэлемента провоцирует возникновение инсулинорезистентности. Пиколинат хрома способствует снижению тяги к сладкому, поэтому лучше всего он подойдет тем, кто пытается избавиться от «сахарной зависимости». Особенно хорошо, судя по отзывам, он уменьшает «вечерние зажоры». Правда, для достижения этого эффекта нужно принимать таблетки хотя бы в течение месяца.
      Достоинства.
      Хотя он не снижает аппетит, не сжигает жировые клетки, пациенты, которые принимали его, заметно теряют в весе. Он действительно помогает, посредством вывода из организма лишней жидкости.
      Таблетки для похудения — это лекарственные препараты, обладающие комплексным действием. Они ускоряют обмен веществ, выводят из организма лишнюю жидкость, вредные вещества, шлаки и токсины. Компоненты лекарств воздействуют на организм благотворно при грамотном подборе лекарства, приводят к нормализации работы пищеварительной системы, но следует учитывать и побочные явления при неправильном приеме.
      “Меня зовут Али, 27 лет, работаю стилистом. После того как увидела хвалебный пост о кетодиете в «Инстаграме», я вдохновилась и попробовала кето на себе.

      https://vsedlyapoxudenia.kvdelphi.ru/tabletki-pohudeniya/kakie-tabletki-dlya-pohudeniya-luchshe-i-effektivnee.php
      https://vsedlyapoxudenia.kvdelphi.ru/tabletki-pohudeniya/tabletki-dlya-pohudeniya-ledi-gold.php
      https://vsedlyapoxudenia.kvdelphi.ru/tabletki-pohudeniya/tabletki-dlya-pohudeniya-otzivi-slim.php
      https://vsedlyapoxudenia.kvdelphi.ru/tabletki-pohudeniya/tabletki-ot-pohudeniya-do-i-posle.php
      https://vsedlyapoxudenia.kvdelphi.ru/tabletki-pohudeniya/tabletki-dlya-pohudeniya-effektivnie-na-ukraine.php

      Мнения врачей.
      выведение из организма холестерина; блокировка аппетита; защита от повторного накопления жировых отложений.
      Содержаться они в йогуртах, кислой капусте, чайном грибе, яблочном уксусе.
      Ксеникал – один из лидеров продаж, продается в виде капсул. Эти таблетки, как и вышеупомянутые, являются лекарственным средством. Но в их основе другое действующее вещество – орлистат. Оно препятствует всасыванию жиров и способствует их скорейшему выведению из организма. Ксеникал помогает избавиться от лишних килограммов и удержать вес после похудения.
      Если результаты после недельного приема капсул не впечатляют, необходимо сделать перерыв на 7 дней, а потом вновь возобновить курс приема препарата. Отношение врачей к использованию Билайта – резко отрицательное. Традиционная медицина считает, что лучшим средством похудения будет комплексная терапия, которая включает в себя физические нагрузки и сбалансированное питание.

      回复
    • KevinTat

      <a href=https://megaremont.pro/minsk-restavratsiya-vann>搪瓷浴缸在明斯克</a>

      回复
    • Richardcok

      <img src="https://avatars.mds.yandex.net/get-zen_doc/1872259/pub_5fb81f5993538c3039d5e90d_5fb81f969d2ffe38ee71bfb1/scale_1200">

      Podofo Android 2 Din Car radio Multimedia Video Player GPS Navigation 2 din 7" HD 1024x600 Universal auto Audio Stereo WiFI Bluetooth USB Autoradio For Volkswagen, Nissan, Toyota, Hyundai, Polo ... <a href=https://s.click.aliexpress.com/e/_A81VyE>Go to the store</a>

      回复
    • juanaog2

      College Girls Porn Pics
      http://shemalespenis.blackshemalesex.alexysexy.com/?makenzie

      you porn sexy thong free massive cock gay porn videos tara lynn foxx free mobile porn free naomi porn videos gay male porn free movies muscles

      回复
    • Raymondabert

      Online Casino USA 2020 https://slot-profit.com/ No Deposit Bonuses for US Players 2020. Bonus 20 Free Spins Welcome Bonus 400% up to 4000$. Start with a $20 Free Chip.Welcome Bonus 250% up to 1000$

      回复
    • BrianPhync

      <img src="https://pbs.twimg.com/card_img/1327937674255200258/3vbG_Iit?format=jpg&name=240x240">
      Real Photo 3m One Layer Wedding Veil With Comb White Lace Edge. Bridal Veils Ivory Appliqued Cathedral Wedding Veil.
      <a href=https://s.click.aliexpress.com/e/_9HhJTC>BUY</a>

      回复
    • LeonardPew

      САмое эффективное для продаж - Pinterest. Сотни Продаж на Etsy, amazon, ebay, shopify за 2 месяца при ср.цене чека 300 usd https://youtu.be/GNOZtXGGM-I

      回复
    • Fdbvprest

      viagra pills prescription <a href="https://hopeviagrin.com/#">generic viagra uk pharmacy</a> prescription viagra usa

      回复
    • Jsweblafe

      cost of viagra 100mg in australia <a href="https://mygoviagar.com/#">canada viagra online</a> viagra prescription online usa

      回复
    • hyacinth macaw for sale

      Here is an excellent Blog You might Come across Fascinating that we Encourage You

      回复
    • Kbrgboop

      viagra canada purchase <a href="https://miraclevigra.com/#">lowest price viagra</a> viagra prescription usa

      回复
    • savannah cat for sale

      Every after in a whilst we select blogs that we read. Listed below are the most up-to-date web sites that we decide on

      回复
    • viagra generic discount

      Buying viagra online <a href="https://hopeviagrin.com/">hopeviagrin.com</a> viagra sale no prescription

      回复
    • canadian medicine viagra

      Australia viagra over the counter <a href="https://miraclevigra.com/">https://miraclevigra.com</a> can i buy
      viagra over the counter in india

      回复
    • bitcoin exchange

      very few internet sites that come about to become in depth below, from our point of view are undoubtedly well really worth checking out

      回复
    • where to buy female viagra us

      Cost of generic viagra in canada <a href="https://mygoviagar.com/">mygoviagar.com</a> 25 mg viagra price

      回复
    • Dbsfprest

      viagra buy canada <a href="https://lightvigra.com/#">cheap viagra 100mg canada</a> generic viagra canadian pharmacy

      回复
    • ASIA CARGO TRAVEL

      please check out the sites we adhere to, which includes this one particular, as it represents our picks from the web

      回复
    • FevbAniny

      buy cheap generic viagra <a href="https://wowviaprice.com/#">https://wowviaprice.com</a> canada pfizer viagra

      回复
    • FbsgAniny

      viagra show on drug test <a href="https://buybuyviamen.com/#">hur fГҐr jag tag i viagra</a> natural viagra for women uk

      回复
    • FhsbAniny

      il viagra rosso <a href="https://buybuyviamen.com/#">https://buybuyviamen.com</a> losartana pode tomar viagra

      回复
    • bitcoin exchange

      we came across a cool web-site which you could appreciate. Take a search if you want

      回复
    • Frbhprest

      viagra liverpool <a href="https://paradiseviagira.com/#">https://paradiseviagira.com/</a> where can i get viagra shipped overnight

      回复
    • Jivhblafe

      como se utiliza viagra <a href="https://purevigra.com/#">how safe is viagra from canada</a> viagra ou outros

      回复
    • Kmrfboop

      le viagra en belgique <a href="https://purevigra.com/#">purevigra.com</a> viagra with cozaar

      回复
    • link building

      one of our visitors a short while ago recommended the following website

      回复
    • Devkprest

      generic viagra <a href="https://paradiseviagira.com/#">viagra online .au</a> do they make generic viagra

      回复
    • canada pharmacy services

      below you will obtain the link to some web sites that we feel you'll want to visit

      回复
    • T-Shirt Printing Nottingham

      here are some links to web-sites that we link to due to the fact we assume they may be really worth visiting

      回复
    • film

      very couple of websites that transpire to be detailed below, from our point of view are undoubtedly nicely really worth checking out

      回复
    • brazzers

      Sites of interest we have a link to

      回复
    • liquid k2 for sale

      Here is a great Blog You may Come across Exciting that we Encourage You

      回复
    • College kenya

      below you will uncover the link to some web-sites that we consider you ought to visit

      回复
    • Fish scale coke

      one of our visitors lately suggested the following website

      回复
    • learn the facts here now

      I have been exploring for a little bit for any high-quality articles or blog posts on this sort of area . Exploring in Yahoo I at last stumbled upon this web site. Reading this info So i’m happy to convey that I have a very good uncanny feeling I discovered just what I needed. I most certainly will make sure to do not forget this site and give it a glance on a constant basis.

      回复
    • 1000mg thc vape juice

      here are some hyperlinks to web-sites that we link to simply because we believe they're really worth visiting

      回复
    • Tenuate retard
      回复
    • google marketing Hrdf training

      Wonderful story, reckoned we could combine some unrelated data, nevertheless truly worth taking a look, whoa did a single master about Mid East has got a lot more problerms as well

      回复
    • KmrfAniny

      viagra buy online http://usggrxmed.com/ <a href="http://usggrxmed.com/#">buying viagra online reddit</a> viagra and cialis online

      回复
    • Reformhaus

      one of our visitors not too long ago proposed the following website

      回复
    • JildcAniny

      viagra generic usa http://fmedrx.com/ <a href="http://fmedrx.com/#">legit viagra online</a> when will generic viagra be available

      回复
    • Muha Meds Ice Cream Cookies 1000mg

      Every as soon as inside a while we decide on blogs that we study. Listed beneath are the most current web pages that we select

      回复
    • viagra online prescription free

      Antidepressants — How they help relieve depressionElectroconvulsive
      therapy ECT videoCPAP: How it worksObstructive sleep apnea:
      What happens? <a href="http://siviagmen.com/">viagra online prescription free</a>
      is viagra generic yet

      回复
    • http://llviabest.com

      Ihad become ill with bloody sinus,rash, anxiety I now know becausemy
      adrenal gland was overtaxed ashalf of it is used for hypersensitivity
      and my immune systemwas overactive fighting what itperceived as an overwhelming
      infection , chronic bronchitis,bloating, acid reflux,
      etc. <a href="http://llviabest.com/">http://llviabest.com</a>
      best online pharmacy to buy viagra

      回复
    • hrdf training provider penang

      The facts talked about inside the report are several of the most effective offered

      回复
    • hatdecuoi

      <p>Tanya viết:<br /> Hạt dẻ cười là hợp pháp, nhưng vỏ mang thể đích thực khó khăn đối với người mới. Và đừng sắm các mẫu đã nhuộm màu hồng, hoặc các loại đã ướp muối vì chúng có thể sở hữu thêm tinh bột.</p> <p><a href="https://hatdecuoi.mystrikingly.com/">https://hatdecuoi.mystrikingly.com/</a></p>

      回复
    • virtual credit card buy

      Sites of interest we've a link to

      回复
    • thc vape juice

      check below, are some completely unrelated sites to ours, having said that, they are most trustworthy sources that we use

      回复
    • cach an hat macca dung chuan

      the time to study or take a look at the content material or web-sites we have linked to below the

      回复
    • virtual credit card buy

      always a significant fan of linking to bloggers that I enjoy but do not get lots of link really like from

      回复
    • hardsex
      回复
    • Pomsky Puppies For Sale

      Here are several of the web pages we suggest for our visitors

      回复
    • REAL COUNTERFEIT MONEY FOR SALE ONLINE

      always a large fan of linking to bloggers that I love but really don't get a good deal of link love from

      回复
    • kittens for sale near me

      we came across a cool web-site which you may get pleasure from. Take a look if you want

      回复
    • Magic Mush Rooms

      here are some hyperlinks to web pages that we link to because we feel they may be worth visiting

      回复
    • Glock 33

      Here is a good Weblog You may Find Intriguing that we Encourage You

      回复
    • Buy heroin online

      just beneath, are many entirely not associated web sites to ours, nonetheless, they're surely worth going over

      回复
    • Stephenpeaky

      100mg viagra <a href=" http://sild100fast.com/# ">generic viagra</a> viagra coupon

      回复
    • airsoft sniper rifles for sale

      Every as soon as inside a even though we decide on blogs that we study. Listed below are the newest web sites that we choose

      回复
    • pitbull puppies for sale in sc

      Every as soon as inside a even though we pick out blogs that we read. Listed beneath are the most up-to-date sites that we pick out

      回复
    • sweetiehouse.vn

      one of our visitors not long ago encouraged the following website

      回复
    • capath.vn

      here are some links to sites that we link to for the reason that we believe they are really worth visiting

      回复
    • tablet klor

      Here is a superb Blog You might Come across Exciting that we Encourage You

      回复
    • ear pods

      we came across a cool internet site that you just may take pleasure in. Take a search when you want

      回复
    • Tierfutter

      Every the moment in a though we choose blogs that we read. Listed below would be the most current web sites that we decide on

      回复
    • battery that can power a house

      Wonderful story, reckoned we could combine a number of unrelated data, nevertheless really worth taking a appear, whoa did one particular master about Mid East has got a lot more problerms as well

      回复
    • Damiana

      here are some hyperlinks to web-sites that we link to since we assume they may be really worth visiting

      回复
    • iPhone

      Every once in a while we pick out blogs that we read. Listed beneath would be the latest sites that we select

      回复
    • blogcaodep.com

      the time to read or take a look at the content or web sites we have linked to below the

      回复
    • best vibrator for beginners

      very couple of internet websites that happen to become in depth beneath, from our point of view are undoubtedly effectively really worth checking out

      回复
    • Google

      Please take a look at the web-sites we adhere to, such as this one, because it represents our picks from the web.

      回复
    • cialis 5mg best price

      Finasteride 1 Mg Ovekly https://cialisse.com/ - Cialis DICIVE viagra receta argentina Oppone <a href=https://cialisse.com/#>Cialis</a> immazy cialis and eyeproblems

      回复