我希望它像 VirtualBox 一样简单:扩展分区 ,但事实并非如此。
您在 Citrix Xen 中心看到,我没有添加虚拟硬盘,而是关闭了服务器并使其 vhd* 更大,这导致我似乎无法使用的分区上有更多空间。
fdisk -l给出了这个。
Device Boot Start End Blocks Id System
/dev/xvda1 * 1 43 340992 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/xvda2 43 5222 41598977 5 Extended
/dev/xvda5 43 1137 8787968 83 Linux
/dev/xvda6 1137 1502 2928640 83 Linux
/dev/xvda7 1502 1625 989184 82 Linux swap / Solaris
/dev/xvda8 1625 1674 389120 83 Linux
/dev/xvda9 1674 5222 28499968 83 Linux
xvda2是罪魁祸首,看看它有多大。我想将它安装在某个地方以便有备份空间。我试过mkfs、fdisk /dev/xvda2,似乎这个分区是错误的。
fdisk /dev/xvda2
Unable to read /dev/xvda2
我试过 mkfs默认为 fstype 的 ext2
mkfs /dev/xvda2 41598900
mke2fs 1.41.12 (17-May-2010)
mkfs.ext2: Filesystem larger than apparent device size.
Proceed anyway? (y,n) y
Warning: could not erase sector 2: Attempt to write block from filesystem resulted in short write
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
2599968 inodes, 10399725 blocks
519986 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
318 block groups
32768 blocks per group, 32768 fragments per group
8176 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624
mkfs.ext2: Invalid argument while zeroing block 10399696 at end of filesystem
Writing inode tables: 0/318
Could not write 5 blocks in inode table starting at 1027: Invalid argument
我装不上
mount -t ext2 /dev/xvda2 /mnt/extra/
mount: wrong fs type, bad option, bad superblock on /dev/xvda2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
我已经用谷歌搜索和谷歌搜索,但我还没有想出在这种情况下有效的东西,因为我从 citrix xen 中心添加到 vhd 中。