Currently I have this case, I have a dedicated server that has several attached disks, one of them a 350GB SSD and a 2TB HDD.
The 350GB disk is covering the entire /root partition so I need to reduce that partition to only 30GB and leave the remaining free for other purposes.
I can only access the server via SSH and the only other option is to enter rescue mode with GRML.
I tried to install Debian with GRML, through debootstrap but I was unsuccessful. I thought about backing up the entire root directory and then delete the partition and restore the backup, but apparently it contains files from the service provider, which gives a weight above what the 30GB partition allows me, and surely problems can occur with the files in the future.
So I was thinking of doing a direct installation while I am in GRML rescue mode or if it is possible to install the entire system on the secondary disk, modify the grub and start that second disk and then perform the same process but with a new 30GB partition.
How could I perform an installation of either debian or ubuntu while running the system and in turn without having access to the BIOS or without access to a LIVE CD, and having as the only connection, via SSH?