Linux下清除磁盘分区及残留raid信息

Linux下清除磁盘分区及残留raid信息
适用场景:
1、 查看硬盘编号
2、 删除磁盘分区
3、 删除磁盘内残留raid信息

*本文适用于430-8i等只有低速格式化或没有格式化功能的HBA卡使用,若raid卡有格式化功能,建议使用raid卡格式化解决问题。

一、查看硬盘编号
适用lsblk命令可以查看当先系统下的磁盘相关信息及磁盘大小
Linux下清除磁盘分区及残留raid信息

sda为硬盘为系统内的第一个硬盘
sda1为该硬盘下的第一个分区以此类推

二、删除磁盘分区
1) 查看现有磁盘及分区
Linux下清除磁盘分区及残留raid信息
2) 删除对应磁盘下的分区
以删除sda 的sda1 sda2分区为例
进入:#parted /dev/sda
查看:(parted)p
删除:(parted)rm 1
(parted)rm 2
3) 适用lsblk查看是否删除成功

三、删除磁盘内残留raid信息
如果磁盘在其他raid卡中做过raid,在430-8i这类没有格式化功能的HBA卡中使用时,使用parted等相关命令无法将raid残留信息删除导致无法分区正常安装系统。
现象如下:
Linux下清除磁盘分区及残留raid信息

Raid卡残留信息的type为dmraid分区名称以`-ddf_开头

删除方法如下:
整体思路是通过dd命令将残留信息所在扇区置零
通常raid卡的信息会放在最后一个柱面即最后63个扇区

以sda为例:
1) 使用dd命令打印最后63个扇区到aaa中
dd if=/dev/sda of=aaa bs=512 skip=$(( $(blockdev –getsz /dev/sda) – 63 )) count=63
2) 使用hexedit查看aaa
Linux下清除磁盘分区及残留raid信息
发现有dpIBM等信息,为残留的raid信息

3) 将这63个扇区置零
dd if=/dev/zero of=/dev/sda bs=512 seek=$(( $(blockdev –getsz /dev/sda) – 63 )) count=63
Linux下清除磁盘分区及残留raid信息
再打印发现已经置零,清除成功。

重启节点重新加载linux中才会生效

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

发表评论

  • 69 Responses to “Linux下清除磁盘分区及残留raid信息”
    • KbbfIdovE

      buy viagra brisbane <a href="http://kloviagrli.com/ ">buy viagra without prescription </a> viagra scams

      回复
    • Elisha Osentowski

      Where can I start a personal blog about anything & everything?

      回复
    • Kvaxboop

      can online payday loans have you arrested <a href="http://rirocash.com/ ">online payday loan collections</a> money loans pickering

      回复
    • Nbnhprest

      sildenafil pills uk <a href="http://vigedon.com/ ">buying viagra.nz </a> viagra 100mg tabs

      回复
    • austin roll off dumpster rentals

      Many talk like philosophers yet live like fools.

      回复
    • Fbsgprest

      cialis for sale in toront ontario <a href="http://llecialisjaw.com/ ">online buy cialis </a> generic cialis no prescription paypal

      回复
    • LabxAniny

      voglio acquistare cialis <a href="https://jecialisbn.com/ ">best use of cialis</a> cialis.ca/anytime

      回复
    • Jbnvblafe

      cash advance near wheeling wv <a href="http://samcash21.com/ ">online payday loan lenders bad credit</a> i need cash now loans

      回复
    • JbbnAniny

      therapie cialis <a href="http://ljcialishe.com/ ">cialis with dapoxetine overnight shipping</a> cialis e capelli

      回复
    • FqbbAniny

      top 10 cash advance companies <a href="http://ascashapply.com/ ">cash loan centre frankston</a> payday loans san juan tx

      回复
    • Abcfbopinnots

      viagra from canada paypal <a href="http://viagriyvik.com/ ">viagra online netherlands </a> on line viagra

      回复
    • AhbzAniny

      payday loan stores hiring <a href="http://daymoneygo.com/ ">payday loans coral springs fl</a> payday loans converse texas

      回复
    • Kbcxboop

      rx price comparison <a href="http://xuypharmacyonline.com/">best online pharmacies canada</a> aarp approved canadian online pharmacies

      回复
    • KuikIdovE

      viagrasupplierscapetown <a href="http://viagerkr.com/ ">best cheap website for viagra</a> viagra pink online paypal

      回复
    • Nncsprest

      overseas pharmacies <a href="http://lightvigra.com/ ">buying viagra 25mg tablets online</a> viagra for sale paypal

      回复
    • LbsxAniny

      best 10 online canadian pharmacies <a href="https://ssviagriia.com/ ">sydney viagra prices</a> canada pharmacy online orders

      回复
    • Jbnbblafe

      no prescription pharmacy <a href="http://online21rxon.com/ ">canada pharmacy online reviews</a> canada pharmacies/account

      回复
    • Fvfcprest

      generic viagra master card accepted <a href="http://hopeviagrin.com/ ">viagra generic no presription</a> viagra over night

      回复
    • JbbvAniny

      cheap canadian drugs <a href="http://canadianpharmnorx.com/ ">hiv</a> pharmacy intern

      回复
    • FqhhAniny

      canadian online pharmacy reviews <a href="http://happyrxpharmacy21.com/ ">pharmacy</a> canada drugs pharmacy online

      回复
    • AhkdAniny

      buy medication without an rx <a href="http://storerxpharmcanada.com/ ">pharmacy online shopping</a> rx pharmacy

      回复
    • Aqcfbopinnots

      walmart cialis <a href="http://cialisvja.com/ ">best online to buy cialis</a> best price on cialis

      回复
    • Ngscprest

      buy cheap sildenafil online uk <a href="http://canadianpharmacy-yy.com/Fitness/how-to-get-a-six-pack.html">viagra prices singapore</a> viagra without script http://canadianpharmacy-yy.com/Fitness/how-to-get-a-six-pack.html - where to buy viagra generic ’

      回复
    • FmnfAniny

      cialis with daproxene <a href="https://impotencecdny.com/info/history.php">soft gel cialis</a> order cialis 20mg https://impotencecdny.com/info/history.php - order cialis in australia ’

      回复
    • AhmdAniny

      buying cialis <a href="https://impotencecdny.com/">pharmacy online mexico</a> shopping for cialis https://impotencecdny.com/ - Trazodone ’

      回复
    • Fhnhprest

      navarro pharmacy <a href="https://canadianpharmacy-yy.com/">Doxycycline</a> safeway pharmacy https://canadianpharmacy-yy.com/ - Extra Super Avana ’

      回复
    • Kbbgboop

      viagra online/canada <a href="http://erectilejyzd.com/#">Erythromycin</a> buy viagra without doctor prescription http://erectilejyzd.com/ - discount drugs online pharmacy ’

      回复
    • Jnhblafe

      ordering cialis in canada <a href="http://loncialis.com/#">36 hour cialis</a> cialis no prescription overnight delivery http://loncialis.com/ - cialis singapore buy ’

      回复
    • Nmilprest

      professional viagra <a href="http://xz-pharmacyonline.com/en/career-opportunities.html">real viagra online</a> viagra free trial online http://xz-pharmacyonline.com/en/career-opportunities.html - viagra sale in malaysia ’

      回复
    • FmfvAniny

      cialis australia online <a href="http://sjcialis.com/#">cialis professional wikipedia</a> free trial offer cialis http://sjcialis.com/ - cialis cheap over night ’

      回复
    • AhmdAniny

      cialis onine <a href="http://cialmenshoprx.com/#">over night cialis</a> purchase original cialis http://cialmenshoprx.com/ - cialis pills ’

      回复
    • Fbgprest

      viagra johannesburg <a href="https://canadianpharmacy-usx.com/organic.htm">where to buy viagra in toronto,with paypal option</a> discount viagra india https://canadianpharmacy-usx.com/organic.htm - viagra montreal online ’

      回复
    • Kbbtboop

      cialis at canadian pharmacy <a href="https://xz-pharmacyonline.com/#">Tinidazole</a> cialis discount https://xz-pharmacyonline.com - hair loss ’

      回复
    • Jvcbxblafe

      buying cialis in south africa <a href="http://phrcialiled.com/#">cialis payment paypal</a> cialis 5mg tablets http://phrcialiled.com/ - buy cialis online with paypal ’

      回复
    • LcxAniny

      viagra online in usa <a href="http://genqpviag.com/#">how do i get viagra online</a> buy viagra on line http://genqpviag.com/ - overnight shipping canada viagra ’

      回复
    • Nlbxprest

      cheap cialis with dapoxetine <a href="http://cialijomen.com/#">cialis soft tablets</a> buy cialis without prescription http://cialijomen.com/ - cialis with dapoxetine for sale ’

      回复
    • FsbxAniny

      viagra buy canada <a href="http://genericrxxx.com/#">pfizer viagra 100mg price</a> genaric viagra online http://genericrxxx.com/ - viagra fro sale ’

      回复
    • AqbvAniny

      buy viagra online for women <a href="http://acialaarx.com/#">viagra with script</a> where to buy viagra in melbourne http://acialaarx.com/ - discount viagra ’

      回复
    • Fbdhprest

      generic cialis made in america <a href="http://21cialismen.com/#">cialis for sale nz</a> cialis online canada http://21cialismen.com/ - cialis black 800mg ’

      回复
    • JbdcAniny

      viagra online sales in australia <a href="http://llviabest.com/#">non prescription viagra premature ejaculation</a> buy generic viagra and cials on line http://llviabest.com/ - viagra austrlia ’

      回复
    • Kbctboop

      20 mg 30 pills cialis <a href="http://mycialedst.com/#">best place to get cialis without pesricption</a> cialis no persription http://mycialedst.com/ - ebay cialis ’

      回复
    • Nlbxprest

      where can i get viagra shipped overnight <a href="http://viashoprx.com/#">original viagra</a> viagra in melbourne buy sildenafil viagra <a href="http://xviagarrx.com/#">wholesale generic viagra</a> viagra cheep price of viagra in nz <a href="http://viagraviagria.com/#">viagra caanda</a> viagra australia viagra with depoxatine overnight shipping <a href="http://asgenviagria.com/#">viagra001</a> cheapest viagra online cheepviagra <a href="http://viagengen.com/#">viagra online buy</a> over the counter sales of viagra

      回复
    • Fgnhprest

      viagra 50mg <a href="http://ltdviagragogo.com/#">viagra kansas city</a> overnight pharmacy 4 u viagra viagra in tokyo <a href="http://hdgenericviagraxk.com/#">viagra 100mg tablets</a> generic viagra 25 mg buy viagra no prescription by cipro <a href="http://buygenericviarga.com/#">viagra no prescription online</a> viagra australia website viagra like drugs <a href="http://buyhdpillvia.com/#">online viagra sales new zealand</a> where to buy viagra with no prescription ireland manufacturer viagra <a href="http://genericviagrix.com/#">viagra generica</a> 100 ml viagra for sale

      回复
    • Jgscblafe

      essay for you <a href="https://thesisbyd.com/#">case study psychology</a> college essay yoga

      回复
    • FtghAniny

      homework help <a href="https://thesiswritinghelpsjj.com/#">coursework writing help</a> interior design college essays

      回复
    • FqfAniny

      dissertation editing service <a href="https://essaywritingservicesjy.com/#">literature review for dissertation</a> ppt on essay writing

      回复
    • FsfAniny

      buying essays online <a href="https://essayhelpbgs.com/#">math help online</a> do my excel homework

      回复
    • Kwgdboop

      writing a strong essay <a href="https://researchpaperssfk.com/#">visit homepage</a> presentation online

      回复
    • FnrdAniny

      to buy viagra <a href="https://llviabest.com/#">viagra, canada</a> canadian viagra buy via paypal

      回复
    • Dvscprest

      college personal essays <a href="https://dissertationhelpvfh.com/#">custom paper writing</a> custom paper

      回复
    • FnrhAniny

      buy viagra on line <a href="https://genqpviag.com/#">viagra levitra how works</a> pfizer viagra

      回复
    • Fgsprest

      format for writing a history research paper <a href="https://writemypaperbuyhrd.com/#">essay writing my friend</a> essays practice

      回复
    • FnsbAniny

      proposal for a research paper <a href="https://customessaywriterbyz.com/#">concluding a research paper</a> boston college supplement essays

      回复
    • FmsgAniny

      viagra after tia <a href="https://siviagmen.com/#">viagra bei herzkrankheiten</a> lortab viagra

      回复
    • Jsweblafe

      viagra pfizer <a href="https://mygoviagar.com/#">generic viagra for sale cheap</a> buy cheap viagra online canadian pharmacy

      回复
    • Kbrgboop

      viagra 100mg online in canada <a href="https://miraclevigra.com/#">viagra india online purchase</a> sildenafil 50mg prices

      回复
    • Dbsfprest

      buy cheap sildenafil citrate <a href="https://lightvigra.com/#">2 viagra pills</a> over the counter viagra united states

      回复
    • FbsbAniny

      kosten viagra auf rezept <a href="https://genericrxxx.com/#">viagra prolong ejaculation</a> diovan hct viagra

      回复
    • Fdbvprest

      buy viagra pills online <a href="https://hopeviagrin.com/#">sildenafil 50 mg online uk</a> sildenafil 100mg uk paypal

      回复
    • FevbAniny

      viagra trial sample <a href="https://wowviaprice.com/#">lowest priced generic viagra master card</a> alternatives to viagra men

      回复
    • FbsgAniny

      how long does it take for a viagra pill to start working <a href="https://buybuyviamen.com/#">viagra tongue strips</a> pillenpharm viagra generika

      回复
    • Jivhblafe

      online consultation for viagra <a href="https://purevigra.com/#">le viagra est il efficace pour les femmes</a> venlafaxin und viagra

      回复
    • Kmrfboop

      viagra catalana <a href="https://purevigra.com/#">purevigra.com</a> women taking viagra stories

      回复
    • Devkprest

      viagra for sale without prescription <a href="https://paradiseviagira.com/#">can you buy viagra online in canada</a> watch a viagra erection

      回复
    • FhsbAniny

      quel site pour acheter du viagra <a href="https://buybuyviamen.com/#">buybuyviamen.com</a> can you take viagra with afib

      回复
    • Frbhprest

      substitute for viagra <a href="https://paradiseviagira.com/#">paradiseviagira.com</a> buy viagra with paypal

      回复
    • KmrfAniny

      when generic viagra http://usggrxmed.com/ <a href="http://usggrxmed.com/#">buying viagra online legal</a> generic viagra pills

      回复
    • JildcAniny

      when does viagra go generic http://fmedrx.com/ <a href="http://fmedrx.com/#">best place to buy generic viagra online</a> generic viagra canada

      回复
    • Stephenpeaky

      100mg viagra <a href=" http://sild100fast.com/# ">buy cheap viagra</a> best place to buy generic viagra online

      回复