博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
VM虚拟机中Linux扩展磁盘空间的方法
阅读量:4158 次
发布时间:2019-05-26

本文共 1297 字,大约阅读时间需要 4 分钟。

转自:http://blog.csdn.net/liangliangdetianxia/article/details/37527767#comments

一、Vm虚拟机下扩展原有磁盘空间,详细步骤如下:

需注意以下几点: linux只能扩展磁盘容量而不能减小, 所填写的容量为总容量,即包含已分区的磁盘, 扩展容量时不能有快照哟,大家可以先把快照删除掉。

2.启动Linux,查看系统分区,并创建分区sda3,命令如下:红色字体命令,#后为注释:

[root@localhost~]#fdisk -l

Disk /dev/sda:32.2GB,32212254720 bytes

255heads,63sectors/track,3916cylinders

Units=cylindersof16065*512=8225280 bytes

DeviceBoot      Start      End        Blocks             Id       System

/dev/sda1  *        1            13         104391          83      Linux

/dev/sda2           14           1566    12474472+   8e      Linux LVM

#我的电脑有2个分区-sda1 sda2

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

Thenumberofcylindersforthisdiskissetto3916.

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)

你可能感兴趣的文章
Multi-Object Tracking with Quadruplet Convolutional Neural Networks
查看>>
关于多目标跟踪的一点理解
查看>>
Learning by tracking:Siamese CNN for robust target association
查看>>
MUSTer:Multi-Store Tracker:A Cognitive Psychology Inspired Approach to Object Tracking
查看>>
Understanding and Diagnosing Visual Tracking Systems
查看>>
Multiple People Tracking by Lifted Multicut and Person Re-identification
查看>>
Visual Tracking Using Attention-Modulated Disintegration and Integration
查看>>
Action-Decision Networks for Visual Tracking with Deep Reinforcement Learning
查看>>
Multiple Object Tracking with High Performance Detection and Appearance Feature
查看>>
深度学习入门(上)-第一章 必备基础知识点
查看>>
ubuntu unzip解压时提示错误 解决方法
查看>>
sprintf函数的说明
查看>>
BOOST_TYPEOF和BOOST_AUTO 作用
查看>>
随机森林概述
查看>>
2011十大战略技术
查看>>
大学应该学的软件知识
查看>>
腾讯与360战争背后的云计算阴影
查看>>
腾讯看了会沉默,360看了会流泪
查看>>
李开复:移动互联网机会最大 微博会现最大赢家
查看>>
2006年的IT十大战略技术
查看>>