资源描述:
《VMware虚拟机中,Linux系统下挂载、卸载新硬盘的方法》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、VMware虚拟机中,Linux系统下挂载、卸载新硬盘的方法装载:1、启动vm,选择vm->Settings,按向导添加一块SCSI磁盘。进入Linux系统。2、fdisk-l会看到有一块新的设置,如果你先前有一块硬盘(sda1,sda3...),新加的这块应该是(/dev/sdb)。[root@localhost~]#fdisk-l Disk/dev/sda:8589MB,8589934592bytes255heads,63sectors/track,1044cylindersUnits=cylindersof16065*512=8225280bytes DeviceBootStart
2、EndBlocksIdSystem/dev/sda1*11310439183Linux/dev/sda31410448281507+83Linux Disk/dev/sdb:8589MB,8589934592bytes255heads,63sectors/track,1044cylindersUnits=cylindersof16065*512=8225280bytes Disk/dev/sdbdoesn'tcontainavalidpartitiontable 3、分区:[root@localhost~]#fdisk/dev/sdbDevicecontainsneitheravalid
3、DOSpartitiontable,norSun,SGIorOSFdisklabelBuildinganewDOSdisklabel.Changeswillremaininmemoryonly,untilyoudecidetowritethem.Afterthat,ofcourse,thepreviouscontentwon'tberecoverable. Thenumberofcylindersforthisdiskissetto1044.Thereisnothingwrongwiththat,butthisislargerthan1024,andcouldincertainsetu
4、pscauseproblemswith:1)softwarethatrunsatboottime(e.g.,oldversionsofLILO)2)bootingandpartitioningsoftwarefromotherOSs(e.g.,DOSFDISK,OS/2FDISK)Warning:invalidflag0x0000ofpartitiontable4willbecorrectedbyw(rite) Command(mforhelp):mCommandactionatoggleabootableflagbeditbsddisklabelctogglethedoscompati
5、bilityflagddeleteapartitionllistknownpartitiontypesmprintthismenunaddanewpartitionocreateanewemptyDOSpartitiontablepprintthepartitiontableqquitwithoutsavingchangesscreateanewemptySundisklabeltchangeapartition'ssystemiduchangedisplay/entryunitsvverifythepartitiontablewwritetabletodiskandexitxextra
6、functionality(expertsonly) Command(mforhelp):nCommandactioneextendedpprimarypartition(1-4)pPartitionnumber(1-4):1Firstcylinder(1-1044,default1):Usingdefaultvalue1Lastcylinderor+sizeor+sizeMor+sizeK(1-1044,default1044):Usingdefaultvalue1044 Command(mforhelp):wThepartitiontablehasbeenaltered! Calli
7、ngioctl()tore-readpartitiontable.Syncingdisks. [root@localhost~]#fdisk-l Disk/dev/sda:8589MB,8589934592bytes255heads,63sectors/track,1044cylindersUnits=cylindersof16065*512=8225280bytes DeviceBootStartEndBlocksIdSyste