system-tar-and-restore
system-tar-and-restore copied to clipboard
[ERROR] /dev/sda1 is already mounted as /boot/efi, refusing to use it
Having an issue restoring an Ubuntu Server 18.04.05 installation from a live VPS to a VM on a local machine. Fully updated. Only new software are the requirements for STAR. Below is my command, its results, and my df and lsblk results if that helps.
System Tar & Restore 7.0
[INFO] UEFI environment detected. (use -W to ignore)
Checking archive type
[ERROR] /dev/sda1 is already mounted as /boot/efi, refusing to use it
df results:
System Tar & Restore 7.0
[INFO] UEFI environment detected. (use -W to ignore)
Checking archive type
[ERROR] /dev/sda1 is already mounted as /boot/efi, refusing to use it
lsblk results:
loop0 7:0 0 97.9M 1 loop /snap/core/10444
loop1 7:1 0 97.8M 1 loop /snap/core/10185
sda 8:0 0 25G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
└─sda2 8:2 0 24.5G 0 part /
Original system df and lsblk
Filesystem Size Used Avail Use% Mounted on
/dev/ploop37935p1 30G 15G 14G 51% /
none 3.0G 0 3.0G 0% /sys/fs/cgroup
none 3.0G 0 3.0G 0% /dev
tmpfs 3.0G 4.0K 3.0G 1% /dev/shm
tmpfs 3.0G 1.2M 3.0G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
none 3.0G 0 3.0G 0% /run/shm
aaron@freder-graylog:$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
ploop37935 182:606960 0 30G 0 disk
-ploop37935p1 182:606961 0 30G 0 part /
Most likely, I believe I'm misunderstanding how the boot system works in linux. But I'm unsure and haven't been able to find Google searches that match the error I see from this script.
You are trying to restore (extract the contents of an archive) to a partition that is already mounted from the running system, and probably its in use. The script will not accept it, its a safety check.
Can you describe more what are you trying to do by steps?
Hi @tritonas00. Thank you for that explanation and your quick response.
My ultimate goal is to know that I can restore any Linux system that I have to another machine, VPS, or VM for my own knowledge and safeguards. I do not want to rely on my VPS provider's snapshot systems.
Essentially, I created the backup on a live VPS that is running my software. There are no issues on this machine. I used STAR to backup the file. I downloaded it to my newly created Ubuntu Server VM on a separate machine. Installed the necessary pre-requisites for STAR and then STAR itself.
How would I restore my STAR backup that I created to another machine for recovery if I ever need to do that. I would want to recover everything and boot into it error free for development or disaster recover purposes.
The process to backup/restore should be:
Boot the system you want to backup, run star's backup mode Boot the target system (the one you want to restore the backup) from a live cd/environment and run star's restore mode
The target disk shouldn't be in use anywhere