[i=s] 本帖最后由 wowiewokuang 于 2010-10-28 11:39 编辑 [/i]
我在xen上面装了一个vps,但是我进入vps通过
[root@web1 /]# df -ha
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 20G 927M 18G 5% /
none 0 0 0 - /proc
none 0 0 0 - /sys
none 0 0 0 - /dev/pts
none 256M 0 256M 0% /dev/shm
none 0 0 0 - /proc/sys/fs/binfmt_misc
[root@web1 /]# fdisk -l
Disk /dev/sda1: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1p2 1 2610 20964793+ 83 Linux
Disk /dev/sda2: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda2p1 1 65 522081 82 Linux swap / Solaris
装好后我还没有分区呢? 为什么在df -ha出现了/dev/sda1,而在fdisk -l 中就出现了Disk /dev/sda1
Disk /dev/sda2 呢?
我若为欢 于 2010-11-15 10:28:37发表:
没遇到过
liofun 于 2010-10-31 14:28:55发表:
来学习的
yeyilihappy 于 2010-10-31 13:01:09发表:
软件不同就不一样罗。有一个是自由空间了。
wowiewokuang 于 2010-10-28 14:05:50发表:
我已经创建了这么多的分区,但是要格式化的时候都找不到这些分区? 在/dev/目录下面都没有他们。有点郁闷。。
[root@mysql /]# fdisk -l
Disk /dev/sda1: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1p1 1 974 7823623+ 83 Linux
/dev/sda1p2 975 1461 3911827+ 82 Linux swap / Solaris
/dev/sda1p3 1462 1948 3911827+ 83 Linux
/dev/sda1p4 1949 2610 5317515 5 Extended
/dev/sda1p5 1949 2557 4891761 83 Linux
/dev/sda1p6 2558 2610 425691 83 Linux
shenhao0129 于 2010-10-28 13:07:28发表:
xen真没用过
wowiewokuang 于 2010-10-28 13:03:48发表:
还是谢谢你。 我感觉还是和xen中的模版有关系。
shenhao0129 于 2010-10-28 12:54:55发表:
这个我就不是很清楚了,你去看fdisk 的帮助手册把
wowiewokuang 于 2010-10-28 12:43:48发表:
fdisk -l 是显示了swap分区, 但是为什么不显示在一块呢?
我在别的机子上面看到swap是在一块显示的如:
Disk /dev/sda1: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1p2 1 2610 20964793+ 83 Linux
/dev/sda2p1 1 65 522081 82 Linux swap / Solaris
主要是我对Disk /dev/sda1 Disk /dev/sda2 有点疑惑 ? 这样看好像是两个块硬盘一样。
比如我在另外一个机子上面就是这样显示的:
XXXX/]# fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1305 10482381 83 Linux
/dev/sda2 1306 38913 302086260 8e Linux LVM
shenhao0129 于 2010-10-28 12:18:00发表:
很明显fdisk -l是能显示出swap分区的,而dh -ha是不显示swap分区的