-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Jan 20, 2017 at 08:15:27PM +0100, Pascal Hambourg wrote: > Le 20/01/2017 à 11:11, to...@tuxteam.de a écrit : > > > >>On 01/20/2017 11:54 AM, Gokan Atmaca wrote: > >>>Pre: > >>>root@debian:/home/gokan# fdisk -l > >>> > >>>Disk /dev/sda:[b] 40 GiB[/b], 42949672960 bytes, 83886080 sectors > (...) > >>>Post: > >>>root@debian:/home/gokan# fdisk -l > >>> > >>>Disk /dev/sda:[b] 50 GiB[/b], 53687091200 bytes, 104857600 sectors > (...) > >>>How can I grow this disc? > > You just did. The disk size is now 50 GiB. > Do not confuse disk, partition and filesystem. > > > (3) you could try to add your new space to your existing root > > partition (sda1). Problem is, the swap is on the way. So > > first disable swap, remove swap partition (as in (2)), delete > > swap partition (fdisk), enlarge sda1 (still fdisk), re-create > > swap at the end (still fdisk). When finished, and all is > > well, then you can resize your file system (resize2fs). Note > > that root can't be mounted read/write for that. > > Why not ? ext4 supports online growing.
You're right: only shrinking has to be done off-line these days. Sorry for the confusion. regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAliDFE8ACgkQBcgs9XrR2kYFGwCeJhjxoy3LlVHhlm5+5cHXIEKI FRMAn1GePzsYDhw6OUE/A30avXn9LU9k =ROyC -----END PGP SIGNATURE-----