请问:虚拟盘扩展的问题
我执行命令df -l,请看:
root@localhost]# df -l
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 18208184 17259368 17232 100% /
tmpfs 502176 76 502100 1% /dev/shm
/dev/sda1 289293 28461 245472 11% /boot
说明/dev/sda2已经满了,所以我觉得扩展磁盘。因为我是用VMware的,
所以我在VMware扩展磁盘为80G,然后:
[root@localhost ]# fdisk -l
Disk /dev/sda: 85.9 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004e561
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39 2358 18631680 83 Linux
/dev/sda3 2358 2611 2031616 82 Linux swap / Solaris
我从网上查了,说是用fdisk /dev/sda进行扩展,我有几个问题:
1、我只能创建/dev/sda3这个扩展区,对吗?
2、因为是/dev/sda2已经满了,能否把/dev/sda3与/dev/sda2合并成一个/dev/sda2区呢?
并且原来/dev/sda2的内容不能丢失。
3、我原来执行/dev/sda2中的eclipse时,会提示磁盘满了,不能运行。
但是如果/dev/sda3与/dev/sda2不能合并,那么我执行原来/dev/sda2的eclipse时,
还是不能执行对吗?如果是这样,有什么解决办法吗?