I want to merge an unused partition with my main partition where the OS is installed (Debian 8).
df -h
output:
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 9.9G 2.1G 7.4G 22% /
udev 10M 0 10M 0% /dev
tmpfs 393M 5.3M 388M 2% /run
tmpfs 982M 0 982M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 982M 0 982M 0% /sys/fs/cgroup
tmpfs 197M 0 197M 0% /run/user/0
/dev/vdb 50G 52M 47G 1% /mnt/vdb
So I want to merge /dev/vda1 with dev/vdb.
fdisk /dev/vbd
output:
[...]
/dev/vdb: device contains a valid 'ext4' signature, it's strongly recommended to wipe the device by command wipefs(8) if this setup is unexpected to avoid possible collisions.
The /dev/vdb don't have anything of interest and can be removed. On the other hand, /dev/vda1 has important files.
What is the best way to merge them? Thank you.