I pushed 6.0.8 to the repo an hour ago.
openmediavault-backup 6.0.7 plugin
-
- OMV 6.x
- helzayat
-
-
I pushed 6.0.8 to the repo an hour ago.
Oh, sorry. OK I've updated. It's not trying to copy the Windows partition but it still wants to copy esppart which is all of /dev/sda before it copies the grub files.
If I comment outCodedd if=${esppart} bs=1M conv=sync,noerror status=progress | gzip -c > "${backupDir}/${OMV_BACKUP_FILE_PREFIX}-${date}.espdd.gz"
I get a complete backup with just /dev/sda1:
CodePublic/omvbackup total 3.2G -rw-rw-rw-+ 1 root users 981 Sep 14 18:30 backup-omv-2022-09-14_18-30-12.blkid -rw-rw-rw-+ 1 root users 3.2G Sep 14 18:36 backup-omv-2022-09-14_18-30-12.dd.gz -rw-rw-rw-+ 1 root users 556 Sep 14 18:30 backup-omv-2022-09-14_18-30-12.fdisk -rw-rw-rw-+ 1 root users 446 Sep 14 18:30 backup-omv-2022-09-14_18-30-12.grub -rw-rw-rw-+ 1 root users 1.4K Sep 14 18:30 backup-omv-2022-09-14_18-30-12.grubparts -rw-rw-rw-+ 1 root users 882 Sep 14 18:30 backup-omv-2022-09-14_18-30-12.packages
-
but it still wants to copy esppart which is all of /dev/sda before it copies the grub files.
If I comment outWhy? It only creates the backup if you need it (using gpt). How big is the backup file?
-
It had reached 15GB when I interrupted it.
-
It had reached 15GB when I interrupted it.
You esp partition should be 1G at the biggest. How big is it?
-
My esp (EFI System Partition) is 105MB. It is the second partition on the NVMe Windows drive.
Code
Alles anzeigenparted -l Model: ATA WDC WD40EFRX-68N (scsi) Disk /dev/sda: 4001GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 7730MB 7729MB ext4 OMVmain 2 7730MB 8590MB 860MB linux-swap(v1) swap 3 8590MB 4001GB 3992GB ext4 Model: Samsung SSD 950 PRO 512GB (nvme) Disk /dev/nvme0n1: 512GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 556MB 555MB ntfs Basic data partition hidden, diag 2 556MB 661MB 105MB fat32 EFI system partition boot, esp 3 661MB 677MB 16.8MB Microsoft reserved partition msftres 4 677MB 461GB 460GB ntfs Basic data partition msftdata
However omv-backup somehow ends up with '/dev/sda' for esppart (I added an echo "esppart = '${esppart}}'." line) and /dev/sda is 4TB
-
Could you run the follow as root?
num_parts=$(parted -m /dev/sda print | tail -n1 | cut -b1)
echo $num_parts
grubparts_bs_calc=$(((128 * num_parts) + 1024))
echo $grubparts_bs
parted -m /dev/sda print | awk -F ":" '$7 ~ /esp/ { print $1 }')
-
The problem seems to be that the esp is not on the root drive.
-
The problem seems to be that the esp is not on the root drive.
that makes sense. That is something I really didn't want to have to support because it gets difficult in bash.
-
No problem. I understand that it's a very particular case.
I put /dev/nvme0n1 under 'root device' in the gui. I needed to make one little tweak because the partitions on the NVMe are named with a 'p'Code
Alles anzeigenfdisk -l /dev/nvme0n1 Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors Disk model: Samsung SSD 950 PRO 512GB Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: BDF18B66-803E-4B71-8C54-64A848CDF427 Device Start End Sectors Size Type /dev/nvme0n1p1 2048 1085439 1083392 529M Windows recovery environment /dev/nvme0n1p2 1085440 1290239 204800 100M EFI System /dev/nvme0n1p3 1290240 1323007 32768 16M Microsoft reserved /dev/nvme0n1p4 1323008 900194958 898871951 428.6G Microsoft basic data
so I changed esppart="${root}${esp}" to esppart="${root}p${esp}" and it happily copied my esp.
-
Output of what I think is a successful backup
Code
Alles anzeigenMethod: dd Device file: /dev/sda1 Root drive: /dev/nvme0n1 Copying esppart = '/dev/nvme0n1p2' 22020096 bytes (22 MB, 21 MiB) copied, 1 s, 20.8 MB/s 38797312 bytes (39 MB, 37 MiB) copied, 2 s, 19.0 MB/s 100+0 records in 100+0 records out 104857600 bytes (105 MB, 100 MiB) copied, 2.54281 s, 41.2 MB/s Copying grub & grubparts 1+0 records in 1+0 records out 446 bytes copied, 0.000135764 s, 3.3 MB/s 1+0 records in 1+0 records out 1536 bytes (1.5 kB, 1.5 KiB) copied, 0.000127524 s, 12.0 MB/s Using dd... Copying devicefile = '/dev/sda1' 60817408 bytes (61 MB, 58 MiB) copied, 1 s, 60.6 MB/s 84934656 bytes (85 MB, 81 MiB) copied, 2 s, 42.0 MB/s . . . 7729053696 bytes (7.7 GB, 7.2 GiB) copied, 307 s, 25.2 MB/s 7371+0 records in 7371+0 records out 7729053696 bytes (7.7 GB, 7.2 GiB) copied, 307.022 s, 25.2 MB/s Purging old files... Purging done.
Thanks for all your help!
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!