linux磁盘分区操作.docx

上传人:b****1 文档编号:1081401 上传时间:2022-10-16 格式:DOCX 页数:11 大小:93.09KB
下载 相关 举报
linux磁盘分区操作.docx_第1页
第1页 / 共11页
linux磁盘分区操作.docx_第2页
第2页 / 共11页
linux磁盘分区操作.docx_第3页
第3页 / 共11页
linux磁盘分区操作.docx_第4页
第4页 / 共11页
linux磁盘分区操作.docx_第5页
第5页 / 共11页
点击查看更多>>
下载资源
资源描述

linux磁盘分区操作.docx

《linux磁盘分区操作.docx》由会员分享,可在线阅读,更多相关《linux磁盘分区操作.docx(11页珍藏版)》请在冰豆网上搜索。

linux磁盘分区操作.docx

linux磁盘分区操作

磁盘检查以及分区

[root@zgh-xypt-server9~]#fdisk-

[r&Qt^zgh-Kypt-server9*Jf£石

■k/dev/via:

53,7GB,S36B7091200bytesW*Tiead3T63sect&rs/crackr104025cylinders

Units=cylinderaof100£*512=516096bytea

5ectorsize(logical/piiyaicai):

512bytts/512bytesI/Oaize(miniinujn/cpciiudl)-512bytes/512byteaDiskidentifier!

OxOOOc«4ie

Devi_CE

Boot

Start

End

Blocks

Id

System

/cLev/vcial

*

3

ioie

512000

E3

Linux

Partition

1

docs

notendon

cyllnd-er:

boundary^

/dev/vda2

ioie

LQ402S

5191577£

Linux.LVH

Partition

2

notsndon

cylinder:

boundary.

 

Disk/dev/vdb:

52£.^GB,536S70913000byte3

16heads,63gectors/tract,1040253cylinders

Units=cylLndersol100G*512=51609£bytea

5€ctorsize(logical/physical):

512byt«s/512bytes

1/0size(minunuiru'DpDimal):

512bytes/

512byres

Diakidentifier:

CxfIb4c2cb

WtLgw耳口0匸伽匸匸

hnd

Id.

5何弧

/dev/vdbl1

936230

471859800+

£3

Linux

Disk/dev/mipper/VolGroup-Lv

rooDi49.1

GBf490£49£8192

bytes

255heads,63sectozcs/track,5965cylind已r?

s

Units=cylindersof160^5*512=62252B0i>yt;e3

5ectorsize(logica1/physical):

512byt-es/512byxesI/Osize(ininiinuin/cptiiiuil):

512bytes/512byteaDiakidentifieri0x00000000

Diat/dev/mapper/VolGroup-Lv_swap:

4093HB*4093€40704bytes255heads,S3aectoxa/track^497cylinders

Units-cylindersof150*65*515-6255260bytes

Seetorsise(1cereal/physical):

S12bytes/512bytes

1/0aize{n^nurcurb*optima1):

512bytea*S12bytes

发现Disk/dev/vdb剩余空间比较大,可以用来分区后挂载为应用磁盘

536.9GB,536870912000bytes

进行分区,[root@zgh-xypt-server9~]#fdisk/dev/vdb

n新建

1•出现输入光标,输入m是查看有哪些指令,因为明确要新增磁盘所以:

输入

[r□Dt&zgh-xypt-server9町*fdiskZdev/v<

ffwitctioffthenicKie(command'c1Jandchangedisplayuni匸目to

sectors(ccmand

Command(mforhelp):

n

Comnandaction

eextended

pprimarypartitian(l-4>

P

PartiDionnuicber(1-4):

1

Firstcylinder(1-1G40253Jdefault1}:

1

Laatcylinderr4-cylindersor+3izE{KrHrG}(1-1040253,default10402S3>:

+450G

Thepartitiontablehas吐已naltered!

Callingiocti()tore-readpartitionSyncingdi3k^+

2•选择基础分区还是扩展分区,因为此磁盘未做过分区,最好先做基础分区。

输入p:

[root?

zjh-Kypt.-serveTl9,~1*fdigt/dev7v.it-

HMKI1IG:

DOS-compBtLtolemodeladeprecated.I^*sstronalvrecomeadedtoawzt~hZhffthemcrffet匚□nmnir龙1c1)andchangedisplayiulx-s*caect-DrsicDunard'口rJ.

斑Tuitionnumber(1-4):

1

First,cylinder{1-1D40253Jdefault;1J:

1

laatcvlinder,-=YlLix3er5cr+日二归创(1-LC40253*default1X47253】:

+45OS

CDTurandi'inforb^Ip):

E

Thepirtivlont-i&Iet己3beenaltered!

CaLljrii^ioctl{>toje-Ttidpartition.

synmigdl^rs.

3•选择分区的序号,一共只有四个,可以选择序号1的分区号作为基础分区,输入1:

[rool@2jgh.-Jtypc-ierve19#rdLak

WU1N2NG:

EC'S-zQfi^aELbleEjcde二日deprecaLt^d*Ifaatrong-lyTec™oei^iE!

-dtoavitchofftheRc-de[cosm^nd*7、andeh&roedIsolasimtsto3£CWTff(2&wana"u11*

CoriMiis(fiforhels].:

n

Ccsnund&ctioa

eex"endj*d

pprLMLEYpareLXIM

p

Partiti-onnuni&er(1-4)t1

rylinder(1-1040253,default1):

1

LestcsfliELder^+cylLudersnr林迄槽JIG札创(1-1040253^default1040253):

HSQG

CcmiMnc(dforhelp];W

7beparvi^iemtablehasbe它口altered!

Call-noioctKltore-rsadpartitiontaJble^syncingaisi£3-

4•选择磁柱cylinder从哪个部分开始,本次选择从第一个磁柱开始:

输入1:

[root&zgh-xypt-server?

”】*fdisk/dev/vdi?

HARNING:

DOS-cangpatiblenaodeisdeprecated.Ithsationglyrecominendedzoswitchoffthemnde(cooiinajid)andchangedisplayunitscdsectors(cDumand'u1J.

Comniand(inforhelp):

n

Comniandaction

eextended

pprimarypartition(1-4(

P

Partitionnumber(1-4):

1

Firstcylinder(1-1040253,default1}

Lastcylinder.,^cylindersar+3i2e{K,MPG](1-1040253,default10402S3);+450G

Command(lbforhelp):

K

Iliepartitiontableha3beenalt已red!

Callingiocti0tore-readpartitiontatieSyncingdisks.

5•选择磁盘空间,单位是K/M/G,本次选择为450G,输入+450G:

WARNING:

DOS-compatiblemodeisdeprecated.It'sstronglyreconmendedtoswitchoffthemode(cDininand'c')andchang-edisplayunitstosectors(comnanii"uq*

Comand(mforhelp|:

n

ComandAccion

eextended

ppTtmarypartition(1-41

P

Partitionnmhbec(1-4):

1

Firstcylinder(l-1040253Hdefault1J:

1

Lastcylinder,^cylindersor+3ize(K,M,G}{1-1040253,default1040253>:

+450G

Comand(mforhelp);W

Thepartitiontablehaabeenaltered!

Callingioctl()t-Dre-readpartitiontable.

Syncingdisks.

6•所有操作完成后,进行保存,输入w:

[root&zqh-x^pt-server9-]ifdisr/dev/vdb

HARDIMG:

DOS-compatiblemodeiadeprecated.It'sstiongiyrecoinMndtdtoswLuchoffthemod亡(commaadTc')iiadchangedisplayunitstoaettflts(CDOdnaiLd

Comnand(mforhelpl:

n

Comnandaction

eExtended

pprimarypartttiou(1-4)

Callingioc^1{)!

:

■□re-readpartz-tiontable.Syncingdisj£3.

/dev/vda;53.7GB,53667051200Lytea

16heads,S3sectors/trackr10402Scylinders

Unius=cyli

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 初中教育 > 科学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1