I have read a lot of articles about that, but I'm not sure about the results...
On my dedicated server (debian), I have the following :
Sys. fich. Taille Util. Dispo Uti% Monté sur
rootfs 20G 1,4G 17G 8% /
/dev/root 20G 1,4G 17G 8% /
devtmpfs 7,8G 0 7,8G 0% /dev
tmpfs 1,6G 244K 1,6G 1% /run
tmpfs 5,0M 0 5,0M 0% /run/lock
tmpfs 3,3G 4,0K 3,3G 1% /dev/shm
/dev/sda3 1,4T 866G 468G 65% /home
/dev/sda5 481G 4,9G 452G 2% /var
What I would like to do is to allocate 400G (for example) of the /dev/sda5
partition to the /dev/sda3
partition. (/var to /home)
So I would like to know if I can follow these instructions (or this one) or if I have to do otherwise to avoid losing any data. Or if it's just impossible.
EDIT (fdisk -l output) :
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 3907029167 1953514583+ ee GPT
EDIT 2 (parted output) :
Model: ATA HGST HUS724020AL (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 20,5kB 1049kB 1029kB primary bios_grub
2 2097kB 21,0GB 21,0GB ext4 primary
3 21,0GB 1476GB 1455GB ext4 primary
4 1476GB 1476GB 536MB linux-swap(v1) primary
5 1476GB 2000GB 524GB ext4 primary
parted
. – PersianGulf May 02 '16 at 12:48/var
partition to the/home
partition. Thank you for your reply, if you need more information please ask me. – Maxime May 02 '16 at 15:14