Questions tagged «parted»

2
如何扩展分区Linux分区
语境 我在托管MYSQL数据库的Azure上有一个远程Linux CentOS VM。我刚完成将磁盘大小从30GB升级到100GB。问题是没有向该分区添加额外的空间。 $分开 (parted) print free Model: Msft Virtual Disk (scsi) Disk /dev/sda: 107GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 32.3kB 1049kB 1016kB Free Space 1 1049kB 31.2GB 31.2GB primary ext4 boot 2 31.2GB 32.2GB 1049MB primary …

2
扩展linux分区失败
我对一个非常简单的任务感到困惑。我有一个img文件,其中包含一个带有2个分区的文件系统。 正如在一些教程中发现的那样,我以这种方式扩展了可用空间: dd if=/dev/zero of=./temp_image bs=1 count=1 seek=3G cat temp_image >> orig_image.img losetup --offset [offset of the second partition*512] /dev/loop0 orig_image.img e2fsck -f /dev/loop0 resize2fs -f /dev/loop0 losetup -d /dev/loop0 但我担心分区表没有正确调整大小: parted orig_image.img > print Model: (file) Disk /home/user/orig_image.img: 7255MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.