哪些linux命令可以将扩展分区(如下所示)移动到7G的空闲空间上,同时将其作为主分区进行扩展。
下面是parted在VM上输出print free:
Model: ATA VBOX HARDDISK (scsi)
Disk: /dev/sda: 698GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
32.3kB
我使用vmware设置菜单扩展了Ubuntu磁盘空间,但是Ubuntu中仍然显示出相同数量的磁盘。有没有一种方法可以将增加的空间链接到Ubuntu,而不需要在虚拟机上从头开始安装Ubuntu?
Model: VMware, VMware Virtual S (scsi)
Disk /dev/sda: 53.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049k
我需要将/home分区中的LV扩展到另外10 VG,但是VG中没有足够的空间。
/dev/mapper/VG1-lv_home 23G 20G 2.3G 90% /home
卷组和物理卷的详细信息如下所述,
--- Volume group ---
VG Name VG1
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 7
VG Access read/write
VG Status
我会解决这个问题:我想把我的所有数据在我的实际硬盘500 1TB,因为它几乎是满的,到一个新的1TB硬盘,有可能扩大分区。
如果我克隆我的磁盘,那么我能扩大这些分区吗?你推荐哪种工具?
编辑
这是sudo parted -ls的输出
Model: ATA ST2000DM006-2DM1 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File
在我研究的文本中(如: R.W. Smith的LPIC_1学习指南),linux分区被引入为/home、/boot、/usr和/etc.
查看lsblk返回的内容如下:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 100M 0 part
├─sda2 8:2 0 195.2G 0 part
├─sda3
我试图在linux 13中将我的单独/home分区与我的/分区合并。我被告知要将它挂载到一个不同的位置,并将内容复制到/分区上的/home目录中。
我试过了,但我不能叫/home。当我尝试这样做的时候,我会收到一个信息:
umount: /home device is busy (which processes use this device can be possibly be found with lsof or fuser)
如何卸载/home并将其安装到单独的位置(/dev/sda2 2/mnt/home)以便能够将内容复制到/home?