Ubuntu下从新挂载一个硬盘:方法以下: ide
1 、在Vmware中关闭Ubuntu虚拟机,在设置中,添加新的硬件设备,选择Hard Disk。(这里若是不关闭Ubuntu系统就不能增长新的硬件设备) 以后点击下一步,选择硬盘类型,能够选择IDE,或是SCSI,这里选择SCSI,下一步,选择虚拟新硬盘的位置,将之命名为Ubuntu2.vmdk,下一步,设定硬盘大小,我这里设定为2G,并选择Allocate all disk space now,不选这项,刚开始,硬盘比较小,可是随着硬盘读写访问,虚拟硬盘文件会愈来愈大。选择该项后,虚拟硬盘就固定为所选的2G空间,不会再增大了。以后,点击 Finish,开始建立新硬盘。
spa
2 、启动Ubuntu,root用户登陆。 虚拟机
在终端输入:fdisk -l ,能够看到 it
---------------------------------------------------------------------------- 登录
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000af383
Device Boot Start End Blocks Id System
/dev