Вы можете использовать bash builtin wait
.
Три раза подождите -n
, каждый раз проверяя состояние выхода.
От man bash
:
wait [-n] [n ...]
Wait for each specified child process and return its termination
status. Each n may be a process ID or a job specification; if a
job spec is given, all processes in that job's pipeline are waited
for. If n is not given, all currently active child processes are
waited for, and the return status is zero. If the -n option is
supplied, wait waits for any job to terminate and returns its exit
status. If n specifies a non-existent process or job, the return
status is 127. Otherwise, the return status is the exit status of
the last process or job waited for.
Вы можете перенести свое расширенное (swap space) в конец нераспределенного пространства, а затем изменить размер sda1
. Под перемещением я подразумеваю, что вы можете просто удалить его, изменить размер sda1
, а затем создать swap пространство в конце диска.