欢迎来到天天文库
浏览记录
ID:22280754
大小:212.17 KB
页数:8页
时间:2018-10-28
《实训项目8基本磁盘管理1》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、实训项目8基本磁盘管理子项目1.创建/dev/sdbl和/dev/sdb51、使用fdisk命令创建/dev/sdbl主分区。[root@locaIhostroot]#fdisk/dev/sdbConrrand(mforhelp):nConrrandactioneextendedpprinurypartition(卜4)pPartitionnunher(1-4):1Firstcylinder(1-261,default1):Usingdefaultvalue1Lastcylinderor+sizeor+sizeMor+sizeK
2、(1一261•default261):+50MConrrand(mforhelp):WThepartitiontablehasbeenaltered!Disk/dev/sdb:2147NB,2147483648bytes255heads>63sectors/track>261cylindersLhits=cylindersof16065*512=8225280bytesDeviceBootStart/dev/sdbl1EndBlocksIdSystem75619683Linux2、使用fdisk命令创建/dev/sdb2扩展分区
3、。Conrrand(mforheIp):NComrandactioneextendedpprirrarypartition(1-4)ePartitionnunher(1-4):2Firstcylinder(8-261,default8):Usingdefaultvalue8Lastcylinderor+sizeor+sizeMor+sizeK(8-261tdefault261):+50MConrrand(mforheIp):pDisk/dev/sdb:2147NB,2147483648bytes255heads»63sector
4、s/track,261cylindersUiits=cylindersof16065*512=8225280bytesDeviceBootStartEndBlocks/dev/sdbl1756196Zdev/sdb281456227+3、使用fdisk命令创建/dev/sdb5遷絹:分区。Id835SystemLinuxExtendedConmind(mforheIp):nCdiittbndactionIlogicaI(5orover)ppriimrypartition(1-4)IFirstcylinder(8-14,defau
5、lt8):Usingdefaultvalue8Lastcylinderor+sizeor+sizeMor+sizeK(8-14ConTriind(mforhelp):pDisk/dev/sdb:2147MJ,2147483648bytes255heads,63sectors/track,261cylindersIJhits=cylindersof16065*5128225280bytesdefault14):+50MDeviceBoot/dev/sdbl/dev/sdb2/dev/sdb5IlnasEndBlocksIdSyst
6、em75619683Linux1456227+5Extended145619683LinuxConyriind(mforheIp):vThepartitiontablehasbeenaltered!4、输入子命令w,把设置写入硬盘分区表,退出fdisk并重新启动系统。5、用mkfs命令在上述刚刚创建的分区上创建ext3文件系统和vfat文件系统。[root^locaIhostroot]#rrkfs-text3/dev/sdblnke2fs1.32(09-bbv-2002)[root@IocaIhostroot]#nkfs.vf
7、at/dev/sdb5nlcfs.vfat2.8(28Feb2001)6、用fsck命令检杏上面创建的文件系统。[root@locaIhostroot]#fsck/dev/sdblfsck1.32(09-Njv-2002)e2fsck1.32(09-bbv-2002)/dev/sdbl:clean,11/14056files,5907/56196blocks子项目2.挂载/dev/sdbl和/dev/sdb51、利用mkdir命令,在/mnt目录下建立挂载点,mountpointl和mountpoint2。[root@locaI
8、hostroot]#rrkdir/mit/nr)untpoin11/nnt/iwuntpoint22、把上述新创建的ext3分区挂载到/mnt/mountpointl上。[root@IocaIhostroot]#rrount-text3/dev/sdbl/mit
此文档下载收益归作者所有