Hello,
On a mail server, We have the following FS:
Code:
[user@server ~]# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 38G 34G 2.1G 95% /
/dev/sda1 99M 17M 78M 18% /boot
/dev/sda4 29G 27G 728M 98% /home/vpopmail
tmpfs 1014M 0 1014M 0% /dev/shm
as you can see the /dev/sda4 is nearly full...
Code:
[user@server ~]# fdisk -l
Disk /dev/sda: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 5091 40789035 83 Linux
/dev/sda3 5092 5221 1044225 82 Linux swap / Solaris
/dev/sda4 5222 8957 30009420 83 Linux
The disk is not fully used, /dev/sda has 214.7 GB
The output of the parted utility is:
Code:
Disk /dev/sda: 215GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 107MB 107MB primary ext3 boot
2 107MB 41.9GB 41.8GB primary ext3
3 41.9GB 42.9GB 1069MB primary linux-swap
4 42.9GB 73.7GB 30.7GB primary ext3
My question is the following:
as /dev/sda4 is the last partition of the disk, can I use parted to grow (resize) this primary parition (to take all the free space left)?
Thanks in advance!