在vmware中對linux擴展磁盤

1、Vm虛擬機下Linux擴展原有磁盤空間,詳細步驟以下:linux


需注意如下幾點: linux只能擴展磁盤容量而不能減少, 所填寫的容量爲總容量,即包含已分區的磁盤, 擴展容量時不能有快照喲,你們能夠先把快照刪除掉。
字體

2.啓動Linux,查看系統分區,並建立分區sda3,命令以下:紅色字體命令,#後爲註釋:
ui

[root@localhost~]#fdisk -l
Disk /dev/sda:32.2GB,32212254720 bytesthis

255heads,63sectors/track,3916cylinders
Units=cylindersof16065*512=8225280 bytesspa

DeviceBoot      Start      End        Blocks             Id       System虛擬機

/dev/sda1  *        1            13         104391          83      Linux
/dev/sda2           14           1566    12474472+   8e      Linux LVMit

#個人電腦有2個分區-sda1 sda2io

[root@localhost~]#fdisk /dev/sdatable

Thenumberofcylindersforthisdiskissetto3916.function

Thereisnothingwrongwiththat,butthisislargerthan1024,

andcouldincertainsetupscauseproblemswith:
1)softwarethatrunsatboottime(e.g.,oldversionsofLILO)

2)bootingandpartitioningsoftwarefromotherOSs

(e.g.,DOSFDISK,OS/2FDISK)

Command(mforhelp):m

Commandaction
a toggle a bootable flag

b edit bsd disk label

c toggle the dos compatibility flag

d delete a partition

l list known partition types

m print this menu

n add a new partition

o create a new empty DOS partition table

p print the partition table

q quit without saving changes

s create a new empty Sun disklabel

t change apartition's system id

u change display/entry units

v verify the partition table 

w write table to disk and exit

x extra functionality (expertsonly)




相關文章
相關標籤/搜索