Re: mondoarchive failed to create USB
Imran Malik <[email protected]> Thu, 6 Jun 2024 13:55:45 +0100
| Newsgroups | gmane.linux.mondo.devel |
|---|---|
| Message-ID | <CADrgK6fkF=DP_iAPxUe4HTbqAh_A-DchxTxet_jx1FwY7JeJ7w@mail.gmail.com> |
--===============0315224249796247116== Content-Type: multipart/alternative; boundary="0000000000003a5f72061a383444" --0000000000003a5f72061a383444 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Burno In addition to my last email, I have noticed one more anomaly. When the error is displayed FAILED to create USB# 1, if I delete the EFI directory from usb folder mount. It proceeds normally and finishes the backup with Success message. But then it deletes everything from the USB. Looking at the logs, I can see mondoarchive has issued a command rm -rf /tmp/mondo.XXXXXX, this is where the USB device was mounted /tmp/mondo.xxxxxx/usb and it deletes all contents of the USB too. I think the problem is that rm -rf /tmp/mondo.xxxxxx is issued before USB is unmounted hence the lost of data. I have also noticed, even though USB contents are deleted by the mondo's rm -rf command mentioned above, usb stays mounted within the directory /tmp/mondo.xxxxxx/usb but it is empty. So this means USB device is never unmounted after completion. So in my honest opinion, just needs two things to fix it, 1. Fix the EFI folder getting created early and mondoarchive complaining that folder already exists and fails the backup. 2. umount the USB device before issuing rm -rf /tmp/mondo.xxxx command. I hope this may fix the problem. Thanks On Thu, Jun 6, 2024 at 11:40=E2=80=AFAM Imran Malik <[email protected]= m> wrote: > Hi Burno > > It seems that you key (in /dev/sdb) already has a EFI directory no ? > iCould you try erasing the key before using it, with a > dd if=3D/dev/zero of=3D/dev/sdb count=3D100 bs=3D1M e.g. (please check tw= ice the > device to use !!) > > I always delete all data and partitions from USB drive before archiving > data with mondoarchive. However, I am still getting the same error, also > tried dd if=3D/dev/zero of=3D/dev/sdb count=3D100 bs=3D1M before archivin= g. but > still the same results. > Mondoarchive.log is 950KB in size which I could not send previously to > mondo-devel list and was held for moderation. > I have now uploaded the mondoarchive.log to google drive. > Here is the link for Mondoarchive.log > https://drive.google.com/file/d/1rz90if3wvQqjRGzZiBibgMLqoHKP_a01/view?us= p=3Dsharing > Here ist he link for Mindi.log > https://drive.google.com/file/d/1LuQg-hBhVPghsXNiNi5oOkz0Rzc7KDKA/view?us= p=3Dsharing > Thank you so much in advance. > > > > On Thu, Jun 6, 2024 at 10:52=E2=80=AFAM Bruno Cornec via Mondo-devel < > [email protected]> wrote: > >> Hello, >> >> Imran Malik said on Thu, Jun 06, 2024 at 10:16:01AM +0100: >> >I have been using mondo since last 10 years and it always worked >> flawless. >> >> Good to know ;-) >> >> >I could not find CentOS 9 RPM or repo data. So proceeded to install >> CentOS >> >8 mondo and mindi. >> >> No, I'm still having issues building packages at the moment for the new >> version. As ussual stay tuned should appear one day ! >> >> >How can I fix this issue. >> >> It's always easier for me to debug, when you provide the full log file >> (/var/log/mondoarchive.log). Here I think I have what is needed to start >> explaining, but would like the full one anyway. >> >> >DBG1: [Main] libmondo-archive.c->make_usb_fs#1484: Mounting USB device. >> >INFO: running: mkdir -p /tmp/mondo.tmp.ghsvyV/usb > >> >INFO: running: mount /dev/sdb1 /tmp/mondo.tmp.ghsvyV/usb > >> >DBG1: [Main] libmondo-fork.c->eval_call_to_make_USB#229: command =3D 'c= d >> >/home/mondo.scratch.Oi1IKT ; rm -fr /tmp/mondo.tmp.ghsvyV/usb/syslinux = ; >> mv >> >* /tmp/mondo.tmp.ghsvyV/usb' >> >DBG3: [Main] >> >mv: inter-device move failed: 'EFI' to '/tmp/mondo.tmp.ghsvyV/usb/EFI'; >> >unable to remove target: Directory not empty >> >> It seems that you key (in /dev/sdb) already has a EFI directory no ? >> iCould you try erasing the key before using it, with a >> dd if=3D/dev/zero of=3D/dev/sdb count=3D100 bs=3D1M e.g. (please check t= wice the >> device to use !!) >> >> If not, then the full log may help. >> >> Bruno. >> -- >> Des infos sur la musique ancienne -- http://www.musique-ancienne.org >> Des infos sur les logiciels libres -- http://www.HyPer-Linux.org >> Home, sweet musical Home -- Lover of Androm=C3=A8de, B=C3=A9atrice, Earl= y Music, >> Josquin, Linux, M=C3=A9lisande, Recorder, and S=C3=A9gol=C3=A8ne (not in= that order) >> >> >> _______________________________________________ >> Mondo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/mondo-devel >> > --0000000000003a5f72061a383444 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi Burno<div><br></div><div>In addition to my last email, = I have noticed one more anomaly.=C2=A0</div><div>When the error is displaye= d FAILED to create USB# 1, if I delete the EFI directory from usb folder mo= unt. It proceeds normally and finishes the backup with Success message. But= then it deletes everything from the USB. Looking at the logs, I can see mo= ndoarchive has issued a command rm -rf /tmp/mondo.XXXXXX, this is where the= USB device was mounted /tmp/mondo.xxxxxx/usb and it deletes all contents o= f the USB too.=C2=A0</div><div><br></div><div>I think the problem is that r= m -rf /tmp/mondo.xxxxxx is issued before USB is unmounted hence the lost of= data.=C2=A0</div><div>I have also noticed, even though USB contents are de= leted by the mondo's rm -rf command mentioned above, usb stays mounted = within the directory /tmp/mondo.xxxxxx/usb=C2=A0 but it is empty. So this m= eans USB device is never unmounted after completion.=C2=A0</div><div><br></= div><div>So in my honest opinion, just needs two things to fix it,=C2=A0</d= iv><div><br></div><div>1. Fix the EFI folder getting created early and mond= oarchive complaining that folder already exists and fails the backup.</div>= <div>2. umount the USB device before issuing rm -rf /tmp/mondo.xxxx command= .</div><div><br></div><div>I hope this may fix the problem.</div><div><br><= /div><div>Thanks</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr"= class=3D"gmail_attr">On Thu, Jun 6, 2024 at 11:40=E2=80=AFAM Imran Malik &= lt;<a href=3D"mailto:[email protected]">[email protected]</a>&g= t; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p= x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div d= ir=3D"ltr">Hi Burno<div><br></div><div>It seems that you key (in /dev/sdb) = already has a EFI directory no ?<br>iCould you try erasing the key before u= sing it, with a<br>dd if=3D/dev/zero of=3D/dev/sdb count=3D100 bs=3D1M e.g.= (please check twice the<br>device to use !!)<br></div><div><br></div><div>= <font color=3D"#38761d">I always delete all data and partitions from USB dr= ive before archiving data with mondoarchive. However, I am still getting th= e same error, also tried dd if=3D/dev/zero of=3D/dev/sdb count=3D100 bs=3D1= M before archiving. but still the same results.</font></div><div><font colo= r=3D"#38761d">Mondoarchive.log is 950KB in size which I could not send prev= iously to mondo-devel list and was held for moderation.=C2=A0</font></div><= div><font color=3D"#38761d">I have now uploaded the mondoarchive.log to goo= gle drive.=C2=A0</font></div><div><font color=3D"#38761d">Here is the link = for Mondoarchive.log=C2=A0<a href=3D"https://drive.google.com/file/d/1rz90i= f3wvQqjRGzZiBibgMLqoHKP_a01/view?usp=3Dsharing" target=3D"_blank">https://d= rive.google.com/file/d/1rz90if3wvQqjRGzZiBibgMLqoHKP_a01/view?usp=3Dsharing= </a></font></div><div><font color=3D"#38761d">Here ist he link for Mindi.lo= g=C2=A0<a href=3D"https://drive.google.com/file/d/1LuQg-hBhVPghsXNiNi5oOkz0= Rzc7KDKA/view?usp=3Dsharing" target=3D"_blank">https://drive.google.com/fil= e/d/1LuQg-hBhVPghsXNiNi5oOkz0Rzc7KDKA/view?usp=3Dsharing</a></font></div><d= iv><font color=3D"#38761d">Thank you so much in advance.=C2=A0</font></div>= <div><br></div><div><br></div></div><br><div class=3D"gmail_quote"><div dir= =3D"ltr" class=3D"gmail_attr">On Thu, Jun 6, 2024 at 10:52=E2=80=AFAM Bruno= Cornec via Mondo-devel <<a href=3D"mailto:[email protected]= .net" target=3D"_blank">[email protected]</a>> wrote:<br= ></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;= border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br> <br> Imran Malik said on Thu, Jun 06, 2024 at 10:16:01AM +0100:<br> >I have been using mondo since last 10 years and it always worked flawle= ss.<br> <br> Good to know ;-)<br> <br> >I could not find CentOS 9 RPM or repo data. So proceeded to install Cen= tOS<br> >8 mondo and mindi.<br> <br> No, I'm still having issues building packages at the moment for the new= <br> version. As ussual stay tuned should appear one day !<br> <br> >How can I fix this issue.<br> <br> It's always easier for me to debug, when you provide the full log file<= br> (/var/log/mondoarchive.log). Here I think I have what is needed to start<br= > explaining, but would like the full one anyway.<br> <br> >DBG1: [Main] libmondo-archive.c->make_usb_fs#1484: Mounting USB devi= ce.<br> >INFO: running: mkdir -p /tmp/mondo.tmp.ghsvyV/usb ><br> >INFO: running: mount /dev/sdb1 /tmp/mondo.tmp.ghsvyV/usb ><br> >DBG1: [Main] libmondo-fork.c->eval_call_to_make_USB#229: command =3D= 'cd<br> >/home/mondo.scratch.Oi1IKT ; rm -fr /tmp/mondo.tmp.ghsvyV/usb/syslinux = ; mv<br> >* /tmp/mondo.tmp.ghsvyV/usb'<br> >DBG3: [Main]<br> >mv: inter-device move failed: 'EFI' to '/tmp/mondo.tmp.ghsv= yV/usb/EFI';<br> >unable to remove target: Directory not empty<br> <br> It seems that you key (in /dev/sdb) already has a EFI directory no ?<br> iCould you try erasing the key before using it, with a <br> dd if=3D/dev/zero of=3D/dev/sdb count=3D100 bs=3D1M e.g. (please check twic= e the<br> device to use !!)<br> <br> If not, then the full log may help.<br> <br> Bruno.<br> -- <br> Des infos sur la musique ancienne=C2=A0 -- <a href=3D"http://www.musique-an= cienne.org" rel=3D"noreferrer" target=3D"_blank">http://www.musique-ancienn= e.org</a><br> Des infos sur les logiciels libres -- <a href=3D"http://www.HyPer-Linux.org= " rel=3D"noreferrer" target=3D"_blank">http://www.HyPer-Linux.org</a><br> Home, sweet musical Home -- Lover of Androm=C3=A8de, B=C3=A9atrice, Early M= usic, <br> Josquin, Linux, M=C3=A9lisande, Recorder, and S=C3=A9gol=C3=A8ne (not in th= at order)<br> <br> <br> _______________________________________________<br> Mondo-devel mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">Mond= [email protected]</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/mondo-devel" rel=3D= "noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo= /mondo-devel</a><br> </blockquote></div> </blockquote></div> --0000000000003a5f72061a383444-- --===============0315224249796247116== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0315224249796247116== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Mondo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mondo-devel --===============0315224249796247116==--