资源描述:
《手工格式化硬盘》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、手工格式化硬盘#fdisk/dev/sda//进入分割硬盘模式Thenumberofcylindersforthisdiskissetto19457.Thereisnothingwrongwiththat,butthisislargerthan1024,andcouldincertainsetupscauseproblemswith:1)softwarethatrunsatboottime(e.g.,oldversionsofLILO)2)bootingandpartitioningsoftwarefromothe
2、rOSs(e.g.,DOSFDISK,OS/2FDISK)Command(mforhelp):d//删除一个分区Selectedpartition1Command(mforhelp):w//写入磁盘退出分区程序,按w这个分区就等于是删除了Thepartitiontablehasbeenaltered!Callingioctl()tore-readpartitiontablefdisk:WARNING:rereadingpartitiontablefailed,kernelstillusesoldtable:Devi
3、ceorresourcebusy重启#fdisk/dev/sdaThenumberofcylindersforthisdiskissetto19457.Thereisnothingwrongwiththat,butthisislargerthan1024,andcouldincertainsetupscauseproblemswith:1)softwarethatrunsatboottime(e.g.,oldversionsofLILO)2)bootingandpartitioningsoftwarefromoth
4、erOSs(e.g.,DOSFDISK,OS/2FDISK)Command(mforhelp):n//添加一个新分区Commandactioneextendedpprimarypartition(1-4)P//显示分区表Partitionnumber(1-4):1Firstcylinder(1-19457,default1):Usingdefaultvalue1Lastcylinderor+sizeor+sizeMor+sizeK(1-19457,default19457):Usingdefaultvalue194
5、57Command(mforhelp):w//按下w保存退出皆可,分区工作结束Thepartitiontablehasbeenaltered!Callingioctl()tore-readpartitiontable#umount/mnt/usb1//卸载文件系统,/mnt/usb1是磁盘挂载目录#mkfs.ext3/dev/sda1//格式化,其中/dev/sda1是硬盘分区名,而不是硬盘设备名mke2fs1.41.5(23-Apr-2009)Filesystemlabel=OStype:LinuxBlocksi
6、ze=4096(log=2)Fragmentsize=4096(log=2)9773056inodes,39072080blocks1953604blocks(5.00%)reservedforthesuperuserFirstdatablock=0Maximumfilesystemblocks=01193blockgroups32768blockspergroup,32768fragmentspergroup8192inodespergroupSuperblockbackupsstoredonblocks:327
7、68,98304,163840,229376,294912,819200,884736,1605632,2654208,4096000,7962624,11239424,20480000,23887872Writinginodetables:doneCreatingjournal(32768blocks):doneWritingsuperblocksandfilesystemaccountinginformation:doneThisfilesystemwillbeautomaticallycheckedevery
8、27mountsor180days,whichevercomesfirst.Usetune2fs-cor-itooverride.#重启动fdisk-l/dev/sda,观察硬盘之实体使用情形,可以查看磁盘格式化情况附录:按m是显示命令帮助出现如下界面Commandactionatoggleabootableflag设置引导扇区beditbsddisklab