推出全新OEM分銷體系
具有殺傷力的價格,超大利潤
彈性云linux系統(tǒng)升級系統(tǒng)盤后擴(kuò)容根分區(qū)紅色為您要鍵入的指令,綠色為需要注意的內(nèi)容,藍(lán)色為說明 [root@ebs ~]#gdisk /dev/vda //操作根分區(qū)磁盤 Command (? for help): p //查看分區(qū) Disk /dev/vda: 104857600 sectors, 50.0 GiB Logical sector size: 512 bytes Disk identifier (GUID): B7172F0B-2C30-4535-981D-F0ED8B4A6065 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 104857566 Partitions will be aligned on 2048-sector boundaries Total free space is 41945021 sectors (20.0 GiB) Number Start (sector) End (sector) Size Code Name 1 2048 62914559 30.0 GiB 8300 Linux filesystem //注意這個值 Command (? for help): d //刪除分區(qū) Using 1 Command (? for help): 1 b back up GPT data to a file c change a partition's name d delete a partition i show detailed information on a partition l list known partition types n add a new partition o create a new empty GUID partition table (GPT) p print the partition table q quit without saving changes r recovery and transformation options (experts only) s sort partitions t change a partition's type code v verify disk w write table to disk and exit x extra functionality (experts only) ? print this menu Command (? for help): n Partition number (1-128, default 1): 1 First sector (34-104857566, default = 2048) or {+-}size{KMGTP}: 2048 //剛才記錄的 Last sector (2048-104857566, default = 104857566) or {+-}size{KMGTP}: //直接回車 Current type is 'Linux filesystem' Hex code or GUID (L to show codes, Enter = 8300): //直接回車 Changed type of partition to 'Linux filesystem' Command (? for help): w Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!! Do you want to proceed? (Y/N): y OK; writing new GUID partition table (GPT) to /dev/vda. Warning: The kernel is still using the old partition table. The new table will be used at the next reboot. The operation has completed successfully. [root@ebs ~]#reboot //重啟讓分區(qū)生效 [root@ebs ~]#resize2fs -f /dev/vda1 //開始擴(kuò)容根分區(qū) resize2fs -f /dev/vda1 resize2fs 1.41.12 (17-May-2010) Filesystem at /dev/vda1 is mounted on /; on-line resizing required old desc_blocks = 2, new_desc_blocks = 4 Performing an on-line resize of /dev/vda1 to 13106939 (4k) blocks. The filesystem on /dev/vda1 is now 13106939 blocks long. [root@ebs ~]#df -vh //完成,查看新的根分區(qū)大小
|
|||||
>> 相關(guān)文章 | |||||
關(guān)注我們
最新動態(tài)
新浪微博
交流互動
關(guān)于我們
|
聯(lián)系我們
|
付款方式
|
人才招聘
|
友情鏈接
|
域名資訊
|
提交工單
|
我要評價
|
投訴建議
|
域名投訴
|
網(wǎng)站備案
|
百科知識
|
手機(jī)站
《中華人民共和國增值電信業(yè)務(wù)經(jīng)營許可證》編號:B1-20172600 川B1-20080058 蜀ICP備12028237號
《中華人民共和國互聯(lián)網(wǎng)域名服務(wù)許可證》編號:川 D3-20220002
電話總機(jī):028-62778877(20線) 400電話:400-028-5800