mondo-devel Mailing List for Mondo Rescue
Brought to you by:
bcornec
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(1) |
Feb
(20) |
Mar
(50) |
Apr
(9) |
May
(1) |
Jun
(8) |
Jul
(46) |
Aug
(91) |
Sep
(63) |
Oct
(63) |
Nov
(80) |
Dec
(201) |
| 2002 |
Jan
(248) |
Feb
(390) |
Mar
(328) |
Apr
(278) |
May
(224) |
Jun
(236) |
Jul
(276) |
Aug
(228) |
Sep
(167) |
Oct
(219) |
Nov
(523) |
Dec
(379) |
| 2003 |
Jan
(757) |
Feb
(308) |
Mar
(218) |
Apr
(464) |
May
(692) |
Jun
(585) |
Jul
(417) |
Aug
(197) |
Sep
(531) |
Oct
(595) |
Nov
(303) |
Dec
(139) |
| 2004 |
Jan
(146) |
Feb
(294) |
Mar
(356) |
Apr
(358) |
May
(182) |
Jun
(263) |
Jul
(174) |
Aug
(198) |
Sep
(195) |
Oct
(130) |
Nov
(99) |
Dec
(152) |
| 2005 |
Jan
(243) |
Feb
(108) |
Mar
(150) |
Apr
(104) |
May
(36) |
Jun
(63) |
Jul
(66) |
Aug
(100) |
Sep
(106) |
Oct
(164) |
Nov
(247) |
Dec
(258) |
| 2006 |
Jan
(173) |
Feb
(122) |
Mar
(131) |
Apr
(164) |
May
(270) |
Jun
(178) |
Jul
(128) |
Aug
(112) |
Sep
(153) |
Oct
(157) |
Nov
(311) |
Dec
(277) |
| 2007 |
Jan
(264) |
Feb
(167) |
Mar
(263) |
Apr
(150) |
May
(200) |
Jun
(159) |
Jul
(126) |
Aug
(131) |
Sep
(155) |
Oct
(142) |
Nov
(90) |
Dec
(121) |
| 2008 |
Jan
(161) |
Feb
(70) |
Mar
(78) |
Apr
(94) |
May
(111) |
Jun
(104) |
Jul
(94) |
Aug
(123) |
Sep
(131) |
Oct
(139) |
Nov
(155) |
Dec
(281) |
| 2009 |
Jan
(221) |
Feb
(157) |
Mar
(152) |
Apr
(57) |
May
(93) |
Jun
(58) |
Jul
(83) |
Aug
(58) |
Sep
(60) |
Oct
(125) |
Nov
(153) |
Dec
(94) |
| 2010 |
Jan
(115) |
Feb
(103) |
Mar
(119) |
Apr
(120) |
May
(107) |
Jun
(108) |
Jul
(109) |
Aug
(104) |
Sep
(107) |
Oct
(48) |
Nov
(66) |
Dec
(44) |
| 2011 |
Jan
(111) |
Feb
(107) |
Mar
(170) |
Apr
(160) |
May
(58) |
Jun
(125) |
Jul
(129) |
Aug
(67) |
Sep
(86) |
Oct
(93) |
Nov
(73) |
Dec
(64) |
| 2012 |
Jan
(147) |
Feb
(132) |
Mar
(99) |
Apr
(99) |
May
(101) |
Jun
(132) |
Jul
(43) |
Aug
(35) |
Sep
(45) |
Oct
(29) |
Nov
(111) |
Dec
(65) |
| 2013 |
Jan
(18) |
Feb
(45) |
Mar
(53) |
Apr
(35) |
May
(29) |
Jun
(64) |
Jul
(37) |
Aug
(68) |
Sep
(78) |
Oct
(44) |
Nov
(56) |
Dec
(36) |
| 2014 |
Jan
(38) |
Feb
(35) |
Mar
(36) |
Apr
(41) |
May
(7) |
Jun
(47) |
Jul
(13) |
Aug
(25) |
Sep
(35) |
Oct
(59) |
Nov
(25) |
Dec
(30) |
| 2015 |
Jan
(58) |
Feb
(59) |
Mar
(79) |
Apr
(34) |
May
(36) |
Jun
(9) |
Jul
(30) |
Aug
(34) |
Sep
(82) |
Oct
(30) |
Nov
(52) |
Dec
(43) |
| 2016 |
Jan
(44) |
Feb
(117) |
Mar
(45) |
Apr
(69) |
May
(80) |
Jun
(25) |
Jul
(39) |
Aug
(22) |
Sep
(43) |
Oct
(34) |
Nov
(25) |
Dec
(107) |
| 2017 |
Jan
(58) |
Feb
(11) |
Mar
(38) |
Apr
(15) |
May
(33) |
Jun
(31) |
Jul
(16) |
Aug
(53) |
Sep
(66) |
Oct
(13) |
Nov
(3) |
Dec
(8) |
| 2018 |
Jan
(9) |
Feb
(21) |
Mar
(3) |
Apr
(9) |
May
(16) |
Jun
(13) |
Jul
(22) |
Aug
(20) |
Sep
(3) |
Oct
(6) |
Nov
(5) |
Dec
(13) |
| 2019 |
Jan
(18) |
Feb
(6) |
Mar
(15) |
Apr
(10) |
May
(6) |
Jun
(4) |
Jul
(3) |
Aug
(12) |
Sep
(1) |
Oct
(13) |
Nov
(36) |
Dec
(1) |
| 2020 |
Jan
(3) |
Feb
(7) |
Mar
(6) |
Apr
(13) |
May
|
Jun
|
Jul
(2) |
Aug
(15) |
Sep
|
Oct
(12) |
Nov
(3) |
Dec
(6) |
| 2021 |
Jan
(9) |
Feb
|
Mar
(2) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
(3) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(7) |
Jul
|
Aug
(8) |
Sep
(3) |
Oct
(1) |
Nov
|
Dec
(10) |
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
(11) |
Aug
|
Sep
(5) |
Oct
|
Nov
(1) |
Dec
|
| 2024 |
Jan
(2) |
Feb
(12) |
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
(4) |
Oct
(5) |
Nov
(2) |
Dec
(6) |
| 2025 |
Jan
(1) |
Feb
(7) |
Mar
(4) |
Apr
(9) |
May
(12) |
Jun
(5) |
Jul
|
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2026 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
1
|
2
(1) |
3
(3) |
4
|
5
|
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
|
13
|
14
|
15
|
16
|
17
(1) |
18
|
19
|
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
|
27
|
28
|
29
(1) |
30
|
31
|
|
|
|
From: Tomas K. <tom...@gm...> - 2020-12-29 17:05:35
|
Hello, I have finally found some time to look into this again. After your response, I was confused. I kept looking into the code, and even after many more attempts, I still don't understand how this could work. Unless there is some hidden magic, we can't copy image of given size into the fs made in this image, it will never fit, regardless of how big it is. Even when it is a copy, the size is still the same. So I made these changes into mindi on my system and backup now succeeds. I have no idea which files are needed for EFI boot, so I kept them all. I still need to test it actually boots, but at least it does not report any errors :-). Best regards Tomas --- mindi 2020-12-29 17:57:44.623191813 +0100 +++ mindi-mine 2020-12-29 17:58:24.626430683 +0100 @@ -1874,6 +1874,13 @@ if [ "$target" = "ISO" ]; then cp $part $MINDI_CACHE if [ "$ARCH" = "ia64" ] || [ "$BOOT_TYPE" = "UEFI" ]; then + + # TK hack + # create a new, bigger image instead of the original one + size2=$(($size*2)) + dd if=/dev/zero of=$part bs=1k count=$size2 &> /dev/null || Die "Cannot dd blank $part" + mkfs.vfat $part 2>&1 >> $LOGFILE + # Mount again ! LogAll "INFO: Re-Mounting $part on $MINDI_TMP/mpt" mount -t vfat $mount_opt $part $MINDI_TMP/mpt 2>> $LOGFILE @@ -1892,6 +1899,8 @@ ls -lR $MINDI_TMP/mpt >> $LOGFILE LogFile "------------------------------------------" MakeISO + # TK hack + umount $MINDI_TMP/mpt fi else # USB On 03/12/2020 18:45, Bruno Cornec wrote: > Hello Tomas, > > Tomas Kopal said on Wed, Dec 02, 2020 at 03:52:15PM +0100: >> Turns out only after upgrade I started doing backups as UEFI. Most >> issues were easy to resolve, but the last one. > > I'm interested by the issues youfixed, if they are of general insterest. > >> During boot disc creation, mindi reports an error: >> '/tmp/mondo.tmp.xrh8ft/mpt/images/mindi-bootroot.img': No space left >> on device* > [...] >> But, for ISO image on UEFI system (my case), there is more code >> starting on line 1875 >> (http://trac.mondorescue.org/browser/MondoRescue/branches/3.3/mindi/mindi#L1875), >> where the final partition image is copied to $MINDI_CACHE, then the >> original image is mounted to $MINDI_TMP/mpt (line 1879). Then the >> copy of the image from $MINDI_CACHE is mounted to $MINDI_TMP/mpt2 >> (line 1882), and then *the whole partition image* (mindi-bootroot.img >> file) *is copied to the mounted partition image* folder via command >> 'cp -a $MINDI_TMP/mpt2/images/all.tar.gz >> $MINDI_CACHE/*mindi-bootroot.img* $MINDI_TMP/mpt/images' (line 1886). >> >> How on earth can partition image fit into itself? > > svn diff -r3532:3546 gives indeed the addition of that block, nearly > as it is now at the first addition. > The comment associated with rev 3535 (from 2016) is (and corresponding > to the introduction of that block of code > "Fix the creation of the bootable ISO for UEFI mode (needs kernel and > initrd at the root with EFI and images for the boot and restore part) > which can be created without making a FS for it BTW" > > Now as you mentionned I've done tests with RHEL since that time on > UEFI base systems with success, similarly for SLES. I have not done > these tests on Debian/Ubuntu by lack of time. > > If I try to comment the code (with ###): > cp $part $MINDI_CACHE > ### We first keep a copy of the boot+root disk created before > under MINDI_CACHE > ### part=$MINDI_TMP/mindi-bootroot.img previously in mindi > if [ "$ARCH" = "ia64" ] || [ "$BOOT_TYPE" = "UEFI" ]; then > # Mount again ! > LogAll "INFO: Re-Mounting $part on $MINDI_TMP/mpt" > mount -t vfat $mount_opt $part $MINDI_TMP/mpt 2>> $LOGFILE > ### We now remount the file $part so under MINDI_TMP on the > mpt mount point also under MINDI_TMP > # We just need the EFI dir and the boot image for this case > mkdir -p $MINDI_TMP/mpt2 $MINDI_TMP/mpt/images > $MINDI_TMP/mpt/archives > mount -o loop $MINDI_CACHE/mindi-bootroot.img $MINDI_TMP/mpt2 > 2>> $LOGFILE > ### Here the file we loopback mount is the one under > MINDI_CACHE under mpt2 > # We need again the kernel+initrd at the root for UEFI boot at > least > cp -a $MINDI_TMP/mpt2/EFI $MINDI_TMP/mpt2/vmlinuz > $MINDI_TMP/mpt2/initrd.img $MINDI_TMP/mpt > ### we copy content from MINDI_CACHE image on MINDI_TMP image > # We need the boot image now and what mindi needs at restore > time as well > cp -a $MINDI_TMP/mpt2/images/all.tar.gz > $MINDI_CACHE/mindi-bootroot.img $MINDI_TMP/mpt/images > ### We continue to copy ontent from MINDI_CACHE image on > MINDI_TMP image. ### The MINDI_CACHE/mindi-bootroot.img file > has not changed since we created the copy before the if block upper > # Avoids graphical tool to keep the FS mounted > sync > umount $MINDI_TMP/mpt2 > LogFile "----------- target dir content -----------" > LogFile "------------------------------------------" > ls -lR $MINDI_TMP/mpt >> $LOGFILE > LogFile "------------------------------------------" > MakeISO > fi > > So I think this can work as indeed we are copying content of a loop > mounted file on itself but in another copy, because we need it. > Now, Is that a working mechanism for Debian/Ubuntu is somehitng I have > never have time to explore, but would be happy to solve with your help ! > And maybe again we need to increase EXTRA_SPACE in your context, or > there is something behaving differently that explains that the copy > fails for you. > > Hope this clarifies, > Bruno > PS: It took me some time to realize that it was working indeed ;-) My > first mail was saying you were right !! > > > _______________________________________________ > Mondo-devel mailing list > Mon...@li... > https://lists.sourceforge.net/lists/listinfo/mondo-devel |
|
From: Marc S. <mar...@gm...> - 2020-12-17 12:40:49
|
Hi! I have some 10 year old backups i created years ago with mondo and had a moment of panic where i couldn't retrieve the file list on a fresh install of mondo yesterday. After a bit of looking at the logs i can see that around version 3.0.4 the config file name was changed from mondo-restore.cfg to mondorestore.cfg all well and good, but may i suggest that newer versions of mondo do a 2nd check for the old filename on a restore command? I fixed it on my end by installing an old version of mondo, but... Thanks! -- ----------------------------- Marc Swanson M Swanson Consulting LLC |
|
From: Tomas K. <tom...@gm...> - 2020-12-03 19:33:33
|
Hello Bruno, thanks a lot for the fast answer (and for all your work on Mondo in the first place :-) ). On 03/12/2020 18:45, Bruno Cornec wrote: > Hello Tomas, > > Tomas Kopal said on Wed, Dec 02, 2020 at 03:52:15PM +0100: >> Turns out only after upgrade I started doing backups as UEFI. Most >> issues were easy to resolve, but the last one. > > I'm interested by the issues youfixed, if they are of general insterest. Well, one maybe interesting bit is that I had to update genisoimage to testing package (9:1.1.11-3.1) to get the -efi-boot option, the version in stable does not have it. Other issues were mostly my internal stuff, e.g. I am calling mondo in chroot environment to backup lvm snapshots, and I had to add bind mount to /run, as some sockets were not found. One thing I noticed, which might be interesting for you is that the 4.19 kernel I am using is compressed using xz compression, not gzip, so the check for initramfs fails. But the default is fine, so it does not matter. Still, if you are interested, I can try adding a specific check for xz compression and make the heuristic work again. >> During boot disc creation, mindi reports an error: >> '/tmp/mondo.tmp.xrh8ft/mpt/images/mindi-bootroot.img': No space left >> on device* > [...] >> But, for ISO image on UEFI system (my case), there is more code >> starting on line 1875 >> (http://trac.mondorescue.org/browser/MondoRescue/branches/3.3/mindi/mindi#L1875), >> where the final partition image is copied to $MINDI_CACHE, then the >> original image is mounted to $MINDI_TMP/mpt (line 1879). Then the >> copy of the image from $MINDI_CACHE is mounted to $MINDI_TMP/mpt2 >> (line 1882), and then *the whole partition image* (mindi-bootroot.img >> file) *is copied to the mounted partition image* folder via command >> 'cp -a $MINDI_TMP/mpt2/images/all.tar.gz >> $MINDI_CACHE/*mindi-bootroot.img* $MINDI_TMP/mpt/images' (line 1886). >> >> How on earth can partition image fit into itself? > > svn diff -r3532:3546 gives indeed the addition of that block, nearly > as it is now at the first addition. > The comment associated with rev 3535 (from 2016) is (and corresponding > to the introduction of that block of code > "Fix the creation of the bootable ISO for UEFI mode (needs kernel and > initrd at the root with EFI and images for the boot and restore part) > which can be created without making a FS for it BTW" > > Now as you mentionned I've done tests with RHEL since that time on > UEFI base systems with success, similarly for SLES. I have not done > these tests on Debian/Ubuntu by lack of time. > > If I try to comment the code (with ###): > cp $part $MINDI_CACHE > ### We first keep a copy of the boot+root disk created before > under MINDI_CACHE > ### part=$MINDI_TMP/mindi-bootroot.img previously in mindi > if [ "$ARCH" = "ia64" ] || [ "$BOOT_TYPE" = "UEFI" ]; then > # Mount again ! > LogAll "INFO: Re-Mounting $part on $MINDI_TMP/mpt" > mount -t vfat $mount_opt $part $MINDI_TMP/mpt 2>> $LOGFILE > ### We now remount the file $part so under MINDI_TMP on the > mpt mount point also under MINDI_TMP > # We just need the EFI dir and the boot image for this case > mkdir -p $MINDI_TMP/mpt2 $MINDI_TMP/mpt/images > $MINDI_TMP/mpt/archives > mount -o loop $MINDI_CACHE/mindi-bootroot.img $MINDI_TMP/mpt2 > 2>> $LOGFILE > ### Here the file we loopback mount is the one under > MINDI_CACHE under mpt2 > # We need again the kernel+initrd at the root for UEFI boot at > least > cp -a $MINDI_TMP/mpt2/EFI $MINDI_TMP/mpt2/vmlinuz > $MINDI_TMP/mpt2/initrd.img $MINDI_TMP/mpt > ### we copy content from MINDI_CACHE image on MINDI_TMP image > # We need the boot image now and what mindi needs at restore > time as well > cp -a $MINDI_TMP/mpt2/images/all.tar.gz > $MINDI_CACHE/mindi-bootroot.img $MINDI_TMP/mpt/images Well, I am far from being a shell guru, but as I understand the code, we copy the image itself, not the contents of the image in the line above. Or is there some behavior of cp I am missing? The source of the copy here are two files, first is all.tar.gz (from the mounted copy in MINDI_CACHE), and second is mindi-bootroot.img from MINDI_CACHE itself, right? The fact that it is mounted should not matter for this second param, right? What I am missing here? > ### We continue to copy ontent from MINDI_CACHE image on > MINDI_TMP image. ### The MINDI_CACHE/mindi-bootroot.img file > has not changed since we created the copy before the if block upper > # Avoids graphical tool to keep the FS mounted > sync > umount $MINDI_TMP/mpt2 > LogFile "----------- target dir content -----------" > LogFile "------------------------------------------" > ls -lR $MINDI_TMP/mpt >> $LOGFILE > LogFile "------------------------------------------" > MakeISO > fi > > So I think this can work as indeed we are copying content of a loop > mounted file on itself but in another copy, because we need it. > Now, Is that a working mechanism for Debian/Ubuntu is somehitng I have > never have time to explore, but would be happy to solve with your help ! > And maybe again we need to increase EXTRA_SPACE in your context, or > there is something behaving differently that explains that the copy > fails for you. > > Hope this clarifies, Not realy, I am afraid :-(. Apart from the point above, I also don't understand why we copy e.g. the all.tar.gz file, the partition image in MINDI_CACHE is the same as the one from MINDI_TMP (we did a copy), so if we mount both, the all.tar.gz file should be already there and identical? Looks like the images were meant to be different, but we are doing copy, so they are not? I feel I am missing some important part of a big puzzle, but can't put my finger on it, so please have patience with me :-). Increasing EXTRA_SPACE didn't seem to help during my first attempts, but I admit I tried only small values, I wanted to understand what should be the right value first, and that got me into this mess ;-). > Bruno > PS: It took me some time to realize that it was working indeed ;-) My > first mail was saying you were right !! > I hope I will have a chance to say the same soon :-). Thank you a lot for your support. Best regards Tomas |
|
From: Bruno C. <Bru...@hp...> - 2020-12-03 17:45:35
|
Hello Tomas, Tomas Kopal said on Wed, Dec 02, 2020 at 03:52:15PM +0100: >Turns out only after upgrade I started doing backups as UEFI. Most >issues were easy to resolve, but the last one. I'm interested by the issues youfixed, if they are of general insterest. >During boot disc creation, mindi reports an error: >'/tmp/mondo.tmp.xrh8ft/mpt/images/mindi-bootroot.img': No space left >on device* [...] >But, for ISO image on UEFI system (my case), there is more code >starting on line 1875 (http://trac.mondorescue.org/browser/MondoRescue/branches/3.3/mindi/mindi#L1875), >where the final partition image is copied to $MINDI_CACHE, then the >original image is mounted to $MINDI_TMP/mpt (line 1879). Then the copy >of the image from $MINDI_CACHE is mounted to $MINDI_TMP/mpt2 (line >1882), and then *the whole partition image* (mindi-bootroot.img file) >*is copied to the mounted partition image* folder via command 'cp -a >$MINDI_TMP/mpt2/images/all.tar.gz $MINDI_CACHE/*mindi-bootroot.img* >$MINDI_TMP/mpt/images' (line 1886). > >How on earth can partition image fit into itself? svn diff -r3532:3546 gives indeed the addition of that block, nearly as it is now at the first addition. The comment associated with rev 3535 (from 2016) is (and corresponding to the introduction of that block of code "Fix the creation of the bootable ISO for UEFI mode (needs kernel and initrd at the root with EFI and images for the boot and restore part) which can be created without making a FS for it BTW" Now as you mentionned I've done tests with RHEL since that time on UEFI base systems with success, similarly for SLES. I have not done these tests on Debian/Ubuntu by lack of time. If I try to comment the code (with ###): cp $part $MINDI_CACHE ### We first keep a copy of the boot+root disk created before under MINDI_CACHE ### part=$MINDI_TMP/mindi-bootroot.img previously in mindi if [ "$ARCH" = "ia64" ] || [ "$BOOT_TYPE" = "UEFI" ]; then # Mount again ! LogAll "INFO: Re-Mounting $part on $MINDI_TMP/mpt" mount -t vfat $mount_opt $part $MINDI_TMP/mpt 2>> $LOGFILE ### We now remount the file $part so under MINDI_TMP on the mpt mount point also under MINDI_TMP # We just need the EFI dir and the boot image for this case mkdir -p $MINDI_TMP/mpt2 $MINDI_TMP/mpt/images $MINDI_TMP/mpt/archives mount -o loop $MINDI_CACHE/mindi-bootroot.img $MINDI_TMP/mpt2 2>> $LOGFILE ### Here the file we loopback mount is the one under MINDI_CACHE under mpt2 # We need again the kernel+initrd at the root for UEFI boot at least cp -a $MINDI_TMP/mpt2/EFI $MINDI_TMP/mpt2/vmlinuz $MINDI_TMP/mpt2/initrd.img $MINDI_TMP/mpt ### we copy content from MINDI_CACHE image on MINDI_TMP image # We need the boot image now and what mindi needs at restore time as well cp -a $MINDI_TMP/mpt2/images/all.tar.gz $MINDI_CACHE/mindi-bootroot.img $MINDI_TMP/mpt/images ### We continue to copy ontent from MINDI_CACHE image on MINDI_TMP image. ### The MINDI_CACHE/mindi-bootroot.img file has not changed since we created the copy before the if block upper # Avoids graphical tool to keep the FS mounted sync umount $MINDI_TMP/mpt2 LogFile "----------- target dir content -----------" LogFile "------------------------------------------" ls -lR $MINDI_TMP/mpt >> $LOGFILE LogFile "------------------------------------------" MakeISO fi So I think this can work as indeed we are copying content of a loop mounted file on itself but in another copy, because we need it. Now, Is that a working mechanism for Debian/Ubuntu is somehitng I have never have time to explore, but would be happy to solve with your help ! And maybe again we need to increase EXTRA_SPACE in your context, or there is something behaving differently that explains that the copy fails for you. Hope this clarifies, Bruno PS: It took me some time to realize that it was working indeed ;-) My first mail was saying you were right !! -- HPE WW FLOSS Technology Strategist http://www.hpe.com/engage/opensource Open Source Profession, WW Linux Community Lead http://github.com/bcornec FLOSS projects: http://mondorescue.org http://project-builder.org Musique ancienne? http://www.musique-ancienne.org http://www.medieval.org |
|
From: Bruno C. <Bru...@hp...> - 2020-12-03 15:21:48
|
Hello Richard, Well, you know, I can't really complain that people have work to do, when on my side I've been dalaying the release of MondoRescue for 4 years now ! Anyway, indeed ubuntu was not "supported" in UEFI mode up to now. So as it should work fine, I've just added it in mindi so you can test and report. I've rebuild packages for ubuntu 18.04 that you'll find here: ftp://ftp.mondorescue.org/test/ubuntu/18.04 (you just need to update the mindi package in your case. And the nvme driver is now part of mindi ver listas well, so you should be able to go back to a std mindi.conf, but your modif doesn't hurt either. Best regards, bruno. Richard Taylor said on Sun, Nov 29, 2020 at 11:34:37AM -0500: > Bruno, > > Sorry it has taken me so long to get around to working with this. This is > a work computer and I needed a quiet time where I could take a change on > the 20.04 upgrade and have time to restore. > > Today I tried to create my backup. I modified the mindi.conf file to load > the nvme driver (FORCE_MODS=nvme) on restore as that is needed for my main > (SSD) drive. > I got an error during my attempt. This is what I am seeing is: > -- HPE WW FLOSS Technology Strategist http://www.hpe.com/engage/opensource Open Source Profession, WW Linux Community Lead http://github.com/bcornec FLOSS projects: http://mondorescue.org http://project-builder.org Musique ancienne? http://www.musique-ancienne.org http://www.medieval.org |
|
From: Tomas K. <tom...@gm...> - 2020-12-02 14:52:28
|
Hi, I am using MondoArchive on my Debian system for some time, and it's been always working great. However, after updating to Buster, I started receiving errors from mondoarchive (version v3.3.0-r3762). Turns out only after upgrade I started doing backups as UEFI. Most issues were easy to resolve, but the last one. During boot disc creation, mindi reports an error: INFO: Creating a vfat filesystem on /tmp/mondo.tmp.xrh8ft/mindi-bootroot.img INFO: Mounting /tmp/mondo.tmp.xrh8ft/mindi-bootroot.img on /tmp/mondo.tmp.xrh8ft/mpt INFO: Moving boot info on /tmp/mondo.tmp.xrh8ft/mpt INFO: Re-Mounting /tmp/mondo.tmp.xrh8ft/mindi-bootroot.img on /tmp/mondo.tmp.xrh8ft/mpt *cp: error writing '/tmp/mondo.tmp.xrh8ft/mpt/images/mindi-bootroot.img': No space left on device* INFO: Generating ISO image. INFO: Invoking /usr/bin/genisoimage -J -r -v -p Mindi -publisher http://www.mondorescue.org -A Mindi -V MindiCD -o /var/cache/mindi/mindi.iso -b EFI/isolinux.bin -c EFI/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -efi-boot images/mindi-bootroot.img -no-emul-boot . INFO: Created bootable ISO image at /var/cache/mindi/mindi.iso After some naive attempts increasing the EXTRA_SPACE parameter, I started reading through the code to figure out what happens. And I got lost :-(. Looking at mindi script source, I can see from line 1788 (http://trac.mondorescue.org/browser/MondoRescue/branches/3.3/mindi/mindi#L1788), that $MINDI_TMP/mindi-bootroot.img is an image of vfat partition, populated with the contents of the target folder. So far so good. But, for ISO image on UEFI system (my case), there is more code starting on line 1875 (http://trac.mondorescue.org/browser/MondoRescue/branches/3.3/mindi/mindi#L1875), where the final partition image is copied to $MINDI_CACHE, then the original image is mounted to $MINDI_TMP/mpt (line 1879). Then the copy of the image from $MINDI_CACHE is mounted to $MINDI_TMP/mpt2 (line 1882), and then *the whole partition image* (mindi-bootroot.img file) *is copied to the mounted partition image* folder via command 'cp -a $MINDI_TMP/mpt2/images/all.tar.gz $MINDI_CACHE/*mindi-bootroot.img* $MINDI_TMP/mpt/images' (line 1886). How on earth can partition image fit into itself? I am sure I am missing something, or reading some code somewhere wrong, as it looks the code has been there for ages and I found no reports that it does not work. Can someone, please, explain to me how this piece of code is actually meant to be working? AFAIK vfat can't do sparse files, there is no compression... I am lost. Thank you in advance for any hints. Tomas |