VMware虚拟机中,Linux系统下挂载、卸载新硬盘的方法

来源:网络 责任编辑:栏目编辑 发表时间:2013-07-01 03:51 点击:
VMware虚拟机中,Linux系统下挂载、卸载新硬盘的方法
装载:
1、启动vm,选择vm->Settings,按向导添加一块SCSI磁盘。进入Linux系统。
2、 fdisk -l 会看到有一块新的设置,如果你先前有一块硬盘(sda1, sda3...),新加的这块应该是(/dev/sdb)。
 
[root@localhost ~]# fdisk -l
 
Disk /dev/sda: 8589 MB, 8589934592 bytes
 
255 heads, 63 sectors/track, 1044 cylinders
 
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
 
/dev/sda1   *           1          13      104391   83  Linux
 
/dev/sda3              14        1044     8281507+  83  Linux
 
Disk /dev/sdb: 8589 MB, 8589934592 bytes
 
255 heads, 63 sectors/track, 1044 cylinders
 
Units = cylinders of 16065 * 512 = 8225280 bytes
 
Disk /dev/sdb doesn't contain a valid partition table
 
3、分区:
 
[root@localhost ~]# fdisk /dev/sdb
 
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
 
Building a new DOS disklabel. Changes will remain in memory only,
 
until you decide to write them. After that, of course, the previous
 
content won't be recoverable.
 
The number of cylinders for this disk is set to 1044.
 
There is nothing wrong with that, but this is larger than 1024,
 
and could in certain setups cause problems with:
 
1) software that runs at boot time (e.g., old versions of LILO)
 
2) booting and partitioning software from other OSs
 
   (e.g., DOS FDISK, OS/2 FDISK)
 
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
 
Command (m for help): m
 
Command action
 
   a   toggle a bootable flag
 
   b   edit bsd disklabel
 
   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 a partition's system id
 
   u   change display/entry units
 
   v   verify the partition table
 
   w   write table to disk and exit
 
   x   extra functionality (experts only)
 
Command (m for help): n
 
Command action
 
   e   extended
 
   p   primary partition (1-4)
 
p
 
Partition number (1-4): 1

    相关新闻>>

      发表评论
      请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
      用户名: 验证码:点击我更换图片
      最新评论 更多>>

      推荐热点

      • VMware View 5.0从菜鸟到高手系列 -连接虚拟桌面
      • kvm中的windows使用Vmware的显示驱动
      • VMware Linux使用Xshell登陆
      • 虚拟机安装MAC查看电脑CPU是否支持VT技术
      • VMWare NAT Centos6.2静态ip设置
      • 给虚拟机提速的方法
      • vmware虚拟机浅析-虚拟网卡
      • VirtualBox打开虚拟硬盘失败的问题
      • Virtual Box下同时配置host-only和bridge

      快速直达

      操作系统导航

      LinuxWindows虚拟机
      网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
      Copyright © 2008-2015 计算机技术学习交流网. 版权所有

      豫ICP备11007008号-1