gparted by to měl umět zvětšit přímo…
jinak myslel jsem to nějak takhle:
root@pokusland:~# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 7.8G 1.1G 6.4G 14% /
root@pokusland:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sda: 12 GiB, 12884901888 bytes, 25165824 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: 0x000d1d86
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 16777215 16775168 8G 83 Linux
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-25165823, default 2048): 2048
Last sector, +sectors or +size{K,M,G,T,P} (2048-25165823, default 25165823): 25165823
Created a new partition 1 of type 'Linux' and of size 12 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
root@pokusland:~#
<reboot>
root@pokusland:~# resize2fs /dev/sda1
resize2fs 1.42.12 (29-Aug-2014)
Filesystem at /dev/sda1 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
The filesystem on /dev/sda1 is now 3145472 (4k) blocks long.
root@pokusland:~# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 12G 1.1G 11G 10% /
důležité je, aby seděl první sektor původní a nově vytvořené partišny