From: David K. <da...@ke...> - 2020-05-23 17:34:06
|
If I create fresh from an ISO install, how is the available disk partitioned... does most of it get assigned to the kd ? David On Sat, May 23, 2020 at 1:26 PM Michael Keuter <li...@mk...> wrote: > > > > Am 23.05.2020 um 19:08 schrieb Lonnie Abelbeck < > li...@lo...>: > > > > > > > >> On May 23, 2020, at 11:15 AM, David Kerr <da...@ke...> wrote: > >> > >> Is it possible to expand the disk partition that Astlinux uses? For > example I am running a test system in ESXi and expanded the disk from 16GB > to 32GB. I can see that the "physical" disk is expanded in Astlinux using > fdisk... but is there a non-destructive way to expand /dev/sda2 to use that > full space? > >> > >> pbx-test / # fdisk -l > >> Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors > >> Units: sectors of 1 * 512 = 512 bytes > >> Sector size (logical/physical): 512 bytes / 512 bytes > >> I/O size (minimum/optimal): 512 bytes / 512 bytes > >> Disklabel type: dos > >> Disk identifier: 0xdd48f40c > >> > >> Device Boot Start End Sectors Size Id Type > >> /dev/sda1 * 2048 524159 522112 255M 6 FAT16 > >> /dev/sda2 524288 33554431 33030144 15.8G 83 Linux > >> pbx-test / # > >> > >> Thanks > >> David > > > > Interesting question. > > > > Looking at this: > > https://geekpeek.net/resize-filesystem-fdisk-resize2fs/ > > > > This would require access via the RUNNIX shell, which has fdisk, e2fsck, > but we don't include resize2fs. > > > > Kind of a unique scenario for only VM's, but I understand why you want > this. > > > > Just thinking out loud ... could you create a new VM disk and install > AstLinux from scratch via the ISO installer, then shutdown, attach the old > VM drive along with the new VM drive and boot into the RUNNIX shell, mount > common partitions and "cp -a ..." the files from the small partition to the > large partition. > > > > For extra credit, could you use this technique to take a unionfs /mnt/kd > and convert it to a sda3 /mnt/kd ? > > > > We could look at enabling resize2fs for RUNNIX builds if this is useful, > regardless it is kind of scary deleting the partition you have data on. > > > > Lonnie > > Since it is a VM, I would create a backup first, and then try GParted: > > https://gparted.org/download.php > > Michael > > http://www.mksolutions.info > > > > > > _______________________________________________ > Astlinux-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/astlinux-devel > |