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.
Note : fdisk is not the best tool for such operation. It does not allow
to directly resize partitions ; you must delete and recreate them at the
exact same beginning position. Also, it cannot update the kernel's idea
of the partition table if partitions of the disk are in use. So the
reboot was required so that the kernel sees the new size
Parted would allow both resizing partitions and updating the kernel's view.
(4-n) you could use LVM...
I'm afraid it it's too late now, the installation was done without LVM.