Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1347350
  • 博文数量: 1334
  • 博客积分: 645
  • 博客等级: 上士
  • 技术积分: 5762
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-25 16:56
文章分类

全部博文(1334)

文章存档

2014年(108)

2013年(1059)

2012年(169)

分类: BSD

2013-07-25 04:57:11

原文地址:给vmware添加新磁盘 作者:skyajlm

打开设置 然后添加新硬件  选择添加Hard Disk  在然后是Create a new virtual disk 
 
然后选择你要的内型,我选择的是SCSI(Recommended) 然后选择大小 还有两个选项 第一个分配空间 固定在你磁盘分配你选择大小的空间 第二个是生成每个为2G块 我是这样理解的。
 
我一个没选
 
启动系统
 
然后fdisk -l看看
我的是sdc其他的不定 有可能是其他的一般是根据你的盘来排我的前面有两个sda sdb
Disk /dev/sdc: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table 
 
然后fdisk /dev/sdc
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 2610.
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): n
Command action
   e   extended
   p   primary partition (1-4)
p 1
Partition number (1-4): 1
First cylinder (1-2610, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-2610, default 2610):
Using default value 2610
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
 
然后
mkfs.ext3 /dev/sdc1
格式化成ext3的文件系统
 
就完成了 可以mount了
阅读(394) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~