- 論壇徽章:
- 0
|
打開(kāi)設(shè)置 然后添加新硬件 選擇添加Hard Disk 在然后是Create a new virtual disk
然后選擇你要的內(nèi)型,我選擇的是SCSI(Recommended) 然后選擇大小 還有兩個(gè)選項(xiàng) 第一個(gè)分配空間 固定在你磁盤(pán)分配你選擇大小的空間 第二個(gè)是生成每個(gè)為2G塊 我是這樣理解的。
我一個(gè)沒(méi)選
啟動(dòng)系統(tǒng)
然后fdisk -l看看
我的是sdc其他的不定 有可能是其他的一般是根據(jù)你的盤(pán)來(lái)排我的前面有兩個(gè)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的文件系統(tǒng)
就完成了 可以mount了
本文來(lái)自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u1/37080/showart_1839714.html |
|