source: trunk/documentation/mondorescue-howto.sgml @ 394

Last change on this file since 394 was 394, checked in by bcornec, 14 years ago

merge -r387:391 $SVN_M/branches/stable

File size: 89.1 KB
Line 
1<!DOCTYPE BOOK PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2<!ENTITY curdate "DDD">
3<!ENTITY curver "VVV">
4
5<!ENTITY WWWB "http://www.mondorescue.org/">
6<!ENTITY WWW '<ulink url="http://www.mondorescue.org">MondoRescue</ulink>'>
7<!ENTITY ML '<ulink url="http://lists.sourceforge.net/lists/listinfo/mondo-devel">mondorescue mailing list</ulink>'>
8<!ENTITY gfdl SYSTEM "fdl.sgml">
9]>
10
11<book>
12
13<bookinfo>
14<title>MondoRescue HOWTO</title>
15<subtitle>
16Utilisation and Configuration of Mondo and Mindi under Linux (Version &curver;)
17</subtitle>
18<graphic fileref="images/protected-by-mondo" align="center">
19
20<pubdate>
21in its latest version the
22&curdate;
23</pubdate>
24
25<abstract>
26<para>
27This document describes the use of mondo and mindi tools to realize disaster recovery backup of your systems. It provides information on installation, backup and restore modes, hardware and software requirements, and answers to some frequently asked questions.
28The goals are to offer a general view of the functions and their best usages.
29Mondo Rescue is a Disaster Recovery Solution which allows you
30to effortlessly backup and interactively restore Linux, Windows and
31other supported filesystem partitions to/from CD/DVD-+R/RW media, tape,
32NFS, ... and Mindi Linux provides the bootable emergency restore
33CD/floppy set which Mondo uses at boot-time.
34</para>
35</abstract>
36
37<author>
38<firstname>Bruno</firstname>
39<surname>Cornec</surname>
40<affiliation>
41<orgname>MondoRescue Project</orgname>
42<address><email>bcornec@users.berlios.de</email></address>
43</affiliation>
44</author>
45<!--
46Hugo Rabson
47Mikael Hultgren
48Stan Benoit
49Randy Delfs
50Cafeole
51Bryan J. Smith
52-->
53
54<copyright>
55<year>2000-2006</year>
56<holder role="mailto:bcornec@users.berlios.de">Bruno Cornec</holder>
57</copyright>
58
59<legalnotice>
60<title>License</title>
61<para>
62</para>
63<para>
64This HOWTO is a free documentation. you may copy, redistribute and/or modify it under the terms of the
65<Link LinkEnd="gfdl">
66GNU Free Documentation License, Version 1.1
67</link>.</para>
68<para>
69or any later version published by the Free Software Foundation; with no Invarian
70t Sections, Front-Cover Texts or Back-Cover Texts. This document is distributed
71hoping it will be useful, but <emphasis>without any guaranty</emphasis>; you're
72completely responsible of its use, and coulnd't complain in case it doesn't work
73, or even if it breaks the hardware. All the software included in it, if not alr
74eady copyrighted is released under the GPL.
75</para>
76</legalnotice>
77
78<revhistory>
79<revision>
80    <revnumber>2.06</revnumber>
81    <date>2006-01-16</date>
82    <authorinitials>Bruno Cornec</authorinitials>
83    <revdescription>
84    <para>
85    First SGML version publically available, remade from the HTML docs of the project.
86    </para>
87    </revdescription>
88</revision>
89</revhistory>
90</bookinfo>
91
92<toc></toc>
93<lot></lot>
94
95
96<chapter id="intro">
97<title>About this Guide</title>
98
99<sect1 id="intro-purpose">
100<title>Purpose / Scope of this Guide</title>
101
102<para>
103This HOWTO serves to help people get started with using
104mondo/mindi as way to backup/restore their system. This is a work
105constantly evolving. It was started by Hugo Rabson and has
106since been worked upon by a number of people. See the
107'<ulink url="&WWWB;about.html#devteam">About</ulink>' web
108page for a list of members of the development team.</para>
109
110<para>There are many ways to contribute to the Linux movement
111without actually writing code. One of the most important is writing
112documentation, allowing each person to share their knowledge with
113thousands of others around the world. This HOWTO is designed to
114help you get familiar with how Mondo/Mindi works.</para>
115
116<para>
117Opinions expressed here are those of the authors.
118Informations are provided in the aim to be useful to the readers.
119However, there can't be, through this document, any warranty of any kind
120on the way it works on your systems, nor the author could be responsible for any problem caused by the use of these informations.
121However, software editors don't garantee you a lot either (re-read the contracts).
122</para>
123</sect1>
124
125<sect1 id="intro-newversion"><title>New versions of this document</title>
126
127<para>The newest version of this document can always be found on
128MondoRescue's homepage &WWW;.</para>
129<para>
130If you make a translation of this document into another language, please let meknow so that I can include a reference to it here.
131</para>
132</sect1>
133
134<sect1><title>Suggestions / Feedback</title>
135<para>
136I rely on you, the reader, to make this HOWTO useful. THis HOWTO is probably incomplete even if it tries to be accurate to the best of our knowledge.
137If you have any suggestions, corrections, recommandations or congratulations :-) don't hesitate to send them to me
138<email>bcornec@users.berlios.de</email>,
139and I will try to incorporate them in a next revision or to the &ML;;
140e-mail the list at
141<ulink url="mailto:mondo-devel@lists.sourceforge.net">mondo-devel@lists.sourceforge.net</ulink>;
142tell us what is wrong and how it should be fixed.
143Include the section title and recommended changes. Whenever possible, include
144the exact, spell-checked, grammar-checked text that you think would
145improve the document.
146</para>
147<para>See Mondo's
148        <ulink url="http://www.mondorescue.org/feedback/feedback.html">Feedback</ulink> page for
149more information.
150</para>
151<para>
152Please note that we do our best to help everyone but it is
153difficult for us to help you if you do not attach a log file to
154your e-mail. Let me say that again - attach your log file to your
155e-mail! Thank you. Without it we can't offer
156any tangible help because you aren't either. That's what the log
157file is for. It is located at <filename>/var/log/mondo-archive.log</filename>; and <filename>/var/log/miindi.log</filename> or at <filename>/var/log/mondo-restore.log</filename>
158</para>
159<para>
160This document was originaly written by native english speakers, but is maintained by a non-native english speaker so help me correct mistaques instead of rumbling that I've done one :-)
161</para>
162<para>
163I am also willing to answer general questions on MondoRescue, the best I can.
164Before doing so, please read all of the information in this HOWTO, and then send me detailed information about the problem, especially including the logs generated by the tools, or traces obtained (Did I say that already :-].
165</para>
166<para>
167If you publish this document on a CD-ROM or in hardcopy form, a complimentary copy would be appreciated; mail me for my postal address. Also consider making a donation to the Linux Documentation Project to help support free documentation for Linux. Contact the Linux HOWTO coordinator,
168Guylhem AZNAR <email>guylhem@rrremovethis.oeil.qc.ca</email>.
169</para>
170</sect1>
171
172<sect1 id=intro-thanks><title>Aknowledgements</title>
173
174<para>Thanks goes to these people for helping and adding to this
175HOWTO.</para>
176
177<para>Document maintainer:</para>
178<itemizedlist mark="bullet" spacing="Compact">
179<listitem>
180<para>Bruno Cornec</para>
181</listitem>
182</itemizedlist>
183<para>Original Design Assistance by:</para>
184<itemizedlist>
185<listitem>
186<para>Xion Network.com</para>
187</listitem>
188</itemizedlist>
189<para>Original Document Assistance by:</para>
190<itemizedlist>
191<listitem>
192<para>Cafeole</para>
193</listitem>
194<listitem>
195<para>Troff</para>
196</listitem>
197<listitem>
198<para>Randy Delfs</para>
199</listitem>
200<listitem>
201<para>Mikael Hultgren</para>
202</listitem>
203</itemizedlist>
204<para>Original LinuxDoc and LaTeX Reformat by:</para>
205<itemizedlist>
206<listitem>
207<para>Bryan J. Smith</para>
208</listitem>
209</itemizedlist>
210<para>Original DocBook Reformat by:</para>
211<itemizedlist>
212<listitem>
213<para>Mikael Hultgren</para>
214</listitem>
215</itemizedlist>
216<para>Original author; 1.6x material:</para>
217<itemizedlist>
218<listitem>
219<para>Hugo Rabson</para>
220</listitem>
221</itemizedlist>
222
223</sect1>
224</chapter>
225
226<chapter id="quickstart"><title>QuickStart</title>
227<itemizedlist mark="bullet" spacing="Compact">
228<listitem>
229<para>We recommend that you read this complete
230HOWTO. However, if you are too busy or impatient, then
231please use this QuickStart guide to stay out of trouble.</para>
232</listitem>
233<listitem>
234<para>Install the tarball, RPM, or DEB mindi and mondo
235packages. (see <link linkend="installation">Installation</link>
236for more details)</para>
237</listitem>
238<listitem>
239<para>Execute as root (type 'su -' to become root if you are not
240logged in as root)</para>
241<para></para>
242
243<informaltable><tgroup cols="1"><tbody>
244<row>
245<entry>
246
247bash# mondoarchive
248
249</entry>
250</row>
251</tbody></tgroup></informaltable>
252
253</listitem>
254</itemizedlist>
255<para></para>
256
257<informaltable><tgroup cols="2"><tbody>
258<row>
259<entry>
260<ulink url="images/mamain.png"><inlinemediaobject><imageobject>
261<imagedata fileref="images/mamain-mini">
262</imageobject></inlinemediaobject>
263</ulink>
264</entry>
265<entry>
266Choose from the list of supported backup media types. The media you
267will use most often are CD/DVD-+R, CD/DVD-+RW, tape, NFS and hard disk. If
268you want to backup/restore over a network, choose 'NFS'. If you
269want to backup/restore to/from a local partition or if you simply
270want to store the ISO images in a local directory until you have
271time or facilities to burn them to CD's, choose 'hard disk'. If you
272choose 'CD/DVD-+R[W]' or 'tape' then in general your hardware will be
273detected and configured for you.
274</entry>
275</row>
276<row>
277<entry>
278<ulink url="images/maburnproof.png"><inlinemediaobject><imageobject>
279<imagedata fileref="images/maburnproof-mini">
280</imageobject></inlinemediaobject>
281</ulink>
282</entry>
283<entry>
284        If you are backing up to CD/DVD-+R[W] then Mondo will ask you if your CD
285burner has BurnProof technology, is inside a laptop, or is
286otherwise eccentric. If you are backing up to a tape streamer then
287you will not see this message.
288</entry>
289</row>
290<row>
291<entry>
292<ulink url="images/macompression.png"><inlinemediaobject><imageobject>
293<imagedata fileref="images/macompression-mini">
294</imageobject></inlinemediaobject>
295</ulink>
296</entry>
297<entry>
298How much compression do you want? None, if your tape streamer has
299built-in hardware compression. Maximum, if your CPU is blazingly
300fast. Average should do just fine for most situations.
301</entry>
302</row>
303<row>
304<entry>
305<ulink url="images/mainclude.png"><inlinemediaobject><imageobject>
306<imagedata fileref="images/mainclude-mini">
307</imageobject></inlinemediaobject>
308</ulink>
309</entry>
310<entry>
311If you want to backup the whole computer (excluding /sys and /proc,
312naturally) then leave this as / which is the default. Otherwise,
313specify subsets, (e.g. /usr/local /home ) being sure to put a space
314in between each path.
315</entry>
316</row>
317<row>
318<entry>
319<ulink url="images/maexclude.png"><inlinemediaobject><imageobject>
320<imagedata fileref="images/maexclude-mini">
321</imageobject></inlinemediaobject>
322</ulink>
323</entry>
324<entry>
325If you are backing up your whole computer then you might want to
326exclude certain directories, e.g. /shared/MP3. Please specify them
327in the 'exclude directories' dialog box. Please put a space in
328between each path, e.g. /shared/private /scratch /nfs /windows
329</entry>
330</row>
331<row>
332<entry>
333<ulink url="images/makernel.png"><inlinemediaobject><imageobject>
334<imagedata fileref="images/makernel-mini">
335</imageobject></inlinemediaobject>
336</ulink>
337</entry>
338<entry>
339Is your kernel sane? Red Hat, Mandrake, SuSE, Debian and Slackware users
340should in general say 'yes' because these vendors are good at
341producing reliable kernels. If you are using Gentoo or LFS
342then your kernel might be non-standard, in which case say 'no' to
343use Mondo's failsafe kernel (provided separately).
344</entry>
345</row>
346<row>
347<entry>
348<ulink url="images/maverifyq.png"><inlinemediaobject><imageobject>
349<imagedata fileref="images/maverifyq-mini">
350</imageobject></inlinemediaobject>
351</ulink>
352</entry>
353<entry>
354If you want to verify the archives after writing them to media, say
355'yes' here. If you have absolute faith in your hardware and your
356Linux distribution, say 'no'... and a little prayer.
357</entry>
358</row>
359<row>
360<entry>
361<ulink url="images/maproceedq.png"><inlinemediaobject><imageobject>
362<imagedata fileref="images/maproceedq-mini">
363</imageobject></inlinemediaobject>
364</ulink>
365</entry>
366<entry>
367If you are sure you want to go ahead, say 'yes' and find something
368else to do while Mondo backs up your computer. If you say 'no' then
369you will be unceremoniously dumped at the shell prompt. :-)
370</entry>
371</row>
372<row>
373<entry>
374<ulink url="images/1.png"><inlinemediaobject><imageobject>
375<imagedata fileref="images/1-mini">
376</imageobject></inlinemediaobject>
377</ulink>
378</entry>
379<entry>
380The backup process will now commence. There are some pre-backup
381tasks to be carried out first but the backup is essentially
382underway. To simplify the backup process, you were asked a series
383of questions. Next time, if you like, you could call mondoarchive
384with various command-line switches to control its behavior, instead
385of answering a series of questions. See the man page for details.
386</entry>
387</row>
388<row>
389<entry>
390<ulink url="images/3.png"><inlinemediaobject><imageobject>
391<imagedata fileref="images/3-mini">
392</imageobject></inlinemediaobject>
393</ulink>
394</entry>
395<entry>
396Mondo will make a catalog of all files to be backed up. This may
397take up to five minutes. The list of files will be divided into
398sets, approximately 4 MB (before compression) of files per set.
399This typically takes one minute.
400</entry>
401</row>
402<row>
403<entry>
404<ulink url="images/4.png"><inlinemediaobject><imageobject>
405<imagedata fileref="images/1-mini">
406</imageobject></inlinemediaobject>
407</ulink>
408</entry>
409<entry>
410Mondo calls Mindi. Mindi generates bootable floppy disk images and
411auxiliary data disk images which are based on your existing Linux
412distribution and filesystem. That way, you can be sure Mondo's
413tools will be compatible with your existing filesystems and
414binaries: Mondo's tools are your tools. Mindi takes up to five
415minutes to run.
416</entry>
417</row>
418<row>
419<entry>
420<ulink url="images/5tape.png"><inlinemediaobject><imageobject>
421<imagedata fileref="images/5tape-mini">
422</imageobject></inlinemediaobject>
423</ulink>
424</entry>
425<entry>
426Finally, Mondo begins backing up your computer. This process may
427take a few minutes or a few hours, depending on how much data you
428are archiving, how fast your CPU is, how much RAM you have, and so
429on. It will backup your regular files and then your large files
430(files larger than approximately 32MB). If you have opted to verify
431your backups, Mondo will do that too.
432</entry>
433</row>
434<row>
435<entry>
436<ulink url="images/10cd.png"><inlinemediaobject><imageobject>
437<imagedata fileref="images/10cd-mini">
438</imageobject></inlinemediaobject>
439</ulink>
440</entry>
441<entry>
442Do you want to create a boot floppy at the end? Yes, if you're a
443tape or NFS user. No, if you are using CD/DVD-R[W]'s and your computer
444supports bootable CD's. Tape users only need one floppy but other
445users may need more. Mondo will advise accordingly.
446</entry>
447</row>
448</tbody></tgroup></informaltable>
449
450<itemizedlist>
451<listitem>
452<para>Try to boot from the first CD of the backup (or the first
453floppy, if you made floppies). Choose 'Compare Mode' by typing
454compare at the boot screen.</para>
455</listitem>
456<listitem>
457<para>If you can boot, fine. If not, make a Mindi "Test" CD to
458checkout the compatibility of your system. (see
459<link linkend="test-mindi">Testing Mindi</link> for more
460details). Remove the CD/floppy; boot your computer as usual;
461execute as root</para>
462<para></para>
463<informaltable><tgroup cols="1"><tbody>
464<row>
465<entry>
466
467        bash# mindi
468        bash# cd /root/images/mindi
469
470</entry>
471</row>
472</tbody></tgroup></informaltable>
473
474<para>(for CD-R)</para>
475<para></para>
476<informaltable><tgroup cols="1"><tbody>
477<row>
478<entry>
479
480bash# cdrecord dev=0,0,0 speed=4 -eject -v mindi.iso
481
482</entry>
483</row>
484</tbody></tgroup></informaltable>
485
486<para>(for CD-RW)</para>
487<para></para>
488<informaltable><tgroup cols="1"><tbody>
489<row>
490<entry>
491
492bash# cdrecord dev=0,0,0 speed=4 blank=fast -eject -v mindi.iso
493
494</entry>
495</row>
496</tbody></tgroup></informaltable>
497
498<para>Reboot your system with the created Mindi CD, with the BIOS
499set to boot from CD. If the result is a command line in 'Expert'
500mode, your system checks out. Remove the CD and reboot your
501system.</para>
502</listitem>
503<listitem>
504<para>If you still cannot boot from Mindi's CD then please e-mail
505the &ML; for help.
506</para>
507</listitem>
508</itemizedlist>
509<para>When making a backup on a live system, there will always be
510processes running that will write out data on the system after you
511have made the backup and before you have made the compare, this
512will result in difference showing up when comparing your backup.
513For a full explanation and what can be done to avoid this, please
514read this section.</para>
515<itemizedlist>
516
517        <listitem>
518<para>This QuickStart covers the ideal case. Upon receiving any
519system feedback/errors, read each related HOWTO section.</para>
520<para>Example 2-1. A test backup of your /home directory to CD-Rs
521using the command line</para>
522<para></para>
523<informaltable><tgroup cols="1"><tbody>
524<row>
525<entry>
526
527bash# mondoarchive -OVc 4 -I /home -gF
528
529</entry>
530</row>
531</tbody></tgroup></informaltable>
532
533<para>The 'c' means you must be writing to CD-Rs, not CD-RWs (the
534latter would require 'w' instead of 'c'). The '4' is the speed of
535your CD writer. The string after -I is the path to be backed up.
536The '-gF' means you are going to see the pretty yellow-on-blue
537screen instead of the boring white-on-black screen. :) It also
538means Mondo will not offer to create physical boot floppies for
539you. It is assumed that you are able to boot from the CD which
540Mondo has generated.</para>
541<para>Example 2-2. A backup of your whole filesystem to NFS using
542the command line</para>
543<para></para>
544<informaltable><tgroup cols="1"><tbody>
545<row>
546<entry>
547
548        bash# mkdir -p /mnt/nfs
549        bash# mount 192.168.1.28:/home/nfs /mnt/nfs
550        bash# mondoarchive -OVn 192.168.1.28:/home/nfs -gF[...]
551        bash# umount /mnt/nfs
552        bash# cdrecord dev=0,0,0 speed=4 -eject -v /root/images/mindi/mindi.iso
553
554</entry>
555</row>
556</tbody></tgroup></informaltable>
557
558<para>Note that you have to mount the NFS partition, backup to it,
559unmount it, and create a boot CD to allow you to restore from
560scratch if necessary. To reassure yourself that you will be able to
561restore from the NFS share even if your PC is wiped, please boot
562from the Mindi CD and type 'compare'. The on-screen instructions
563from that point on should be sufficient.</para>
564<para>Example 2-3. A backup of your whole
565filesystem to tape using the command line</para>
566<para></para>
567<informaltable><tgroup cols="1"><tbody>
568<row>
569<entry>
570
571bash# mondoarchive -OVt -d /dev/st0 -9 -L -g
572
573</entry>
574</row>
575</tbody></tgroup></informaltable>
576
577<para>In this case, we assume Syslinux is incompatible with your
578boot media. For some reason, some BIOSes just don't like Syslinux.
579If you find this to be the case for your computer, please use '-L'
580to force Mondo to use LILO instead of Syslinux as the boot loader
581for its CD/floppies. (NB: This has nothing to do with which boot
582loader your hard drive uses.) Also, it is a good habit to specify
583your tape streamer with '-d &lt;device&gt;'. You don't usually need
584to but it's good to be on the safe side. Some computers call your
585tape streamer /dev/osst0, some call it /dev/ftape, ...</para>
586</listitem>
587</itemizedlist>
588
589</chapter>
590
591<chapter id="overview"><title>Overview</title>
592
593<sect1 id="overview-mondorescue">
594<title>Mondo Rescue</title>
595<para>Mondo Rescue backs up your file system to CD, tape, NFS
596(archives stored remotely) or ISO's (archives stored locally).
597Mondo uses afio as the backup engine; afio is a well-respected
598replacement for tar. In the event of catastrophic data loss, you
599may restore some or all of your system, even if your hard drives
600are now blank. Mondo Rescue can do a lot of other cool
601things:</para>
602<itemizedlist>
603<listitem>
604<para>You can use Mondo to clone an installation of Linux. Just
605backup the crucial stuff and exclude /home, /var/log, etc.</para>
606</listitem>
607<listitem>
608<para>You can backup a non-RAID file system and restore it as RAID
609including the root partition (if your kernel supports that).</para>
610</listitem>
611<listitem>
612<para>You can backup a system running on one format and restore as
613another format.</para>
614</listitem>
615<listitem>
616<para>You can restructure your partitions, e.g. shrink/enlarge,
617reassign devices, add hard drives, etc, before you partition and
618format your drives. Mondo will restore your data and amend
619/etc/lilo.conf and /etc/fstab accordingly.</para>
620</listitem>
621<listitem>
622<para>You can backup Linux/Windows systems, including the boot
623sectors. Mondo will make everything right at restore-time.
624(However, do run "Scandisk" when you first boot into Windows, just
625in case.)</para>
626</listitem>
627<listitem>
628<para>You can use your Mondo backup CD to verify the integrity of
629your computer.</para>
630</listitem>
631</itemizedlist>
632<para>Mondo's principal virtue is that it protects you from the
633problems that can arise when you reinstall completely from scratch.
634If you want to wipe and restore your system every year just as a
635matter of 'good practice', Mondo is not for you. However, if you
636want to get up and running again in a hurry after someone breaks
637into your computer and wipes it (or if you accidentally wipe it
638yourself) then Mondo is definitely for you. It will permit you to
639roll back to a known-good installation in a very short period of
640time, sometimes as little as twenty minutes. Even if you backup
641large amounts of data to tape daily and do not want to add yet
642another backup regime, please consider backing up the core
643filesystem (i.e. everything but the directories containing your
644huge database and your prizewinning novel) every month or so, just
645in case. You will be glad you did.</para>
646<para>What is Mondo not?</para>
647<para>Mondo is not an everyday backup program. It is not designed
648to replace tar, afio, kbackup, etc. Mondo is designed to make it
649possible to recover from scratch if necessary. Tar and afio offer a
650quick, convenient way to backup small sets of files, sometimes to
651removable media.</para>
652</sect1>
653
654<sect1 id="overview-mindi">
655<title>Mindi</title>
656<para>
657Mindi Linux creates a set of boot/root floppy disk images
658that will let you perform basic system maintenance on your Linux
659distro. The principal virtues of Mindi's boot disks are the fact
660that they contain your kernel, modules, tools and libraries. You
661can ask for additional binaries (or other files) to be included on
662the kit. The libraries will be added for you.
663</para>
664<para>Whichever modules were loaded at backup-time, they are
665reloaded at boot-time. So, in theory, you will boot into almost the
666same environment as you were in when you backed up. If you want to
667add files to your Mindi boot disks, edit '&lt;INSTALLPATH OF
668MINDI&gt;/mindi/deplist.txt' and add the files to that list. The
669added files and dependencies, will be spread across the data disks
670at run-time.
671</para>
672<para>Mindi makes sure that Mondo has all the tools it needs at
673boot-time. Mondo uses fdisk, mkfs, cat, less, more, afio, gzip,
674bzip2, your keyboard configuration, your glibc libraries, your
675other libraries, your kernel, your modules, ... a lot! Mindi takes
676care of all that, so that Mondo can get on with the job of backing
677up or restoring your data.
678</para>
679<para>Mindi is also handy for making boot CDs/disks which stand on
680their own. You do not need Mondo. Indeed, if you like, you could
681use another backup/restore program with Mindi. Just add it to
682Mindi's dependency list (type 'locate deplist.txt' to find it).
683Mindi will include your software on its boot CD/disks the next time
684you run mindi.
685</para>
686</sect1>
687
688
689<sect1 id="overview-linuxbackup">
690<title>Linux Backup</title>
691<para>Mondo Rescue and Mindi Linux are used primarily as Linux
692backup and cloning tools. The fall in prices of CD-RW drives and
693writable discs will allow current users to keep good backups and
694future users to leverage the cloning capability.</para>
695<para>Tape drives are more likely to suit your needs if you run a
696larger installation (or have lots of MP3's). Warning! OnStream
697drives do not play well with Mondo. I do not know why. It is, in my
698opinion, something which OnStream should look into. Mondo uses
699fopen(), fread(), fwrite() and fclose() to interact with tape
700drives. That works for most drives but some drives just don't like
701that.</para>
702<para>Mondo Rescue has tested thousands of times on various computers.
703It worked for them.
704Thousands of users testify to Mondo's stability and its ease of
705use. However, please test it on your own system before you rely on
706it. In fact, do not rely on any software until you have tested it
707to see if it performs as expected.</para>
708<para>To establish that Mondo will behave well in an emergency,
709please be prepared. Run a test backup as follows:-</para>
710<itemizedlist>
711<listitem>
712<para>Run mondoarchive without any command-line options.</para>
713</listitem>
714<listitem>
715    <para>Backup a subset of files - e.g. /usr/local - to CD or
716            tape. Say 'yes' when asked if you want to verify them.</para>
717</listitem>
718<listitem>
719    <para>If you are not backing up to CD, please create boot
720    floppies when prompted.</para>
721</listitem>
722</itemizedlist>
723<para>Next, restore archives to your live filesystem.</para>
724<itemizedlist>
725<listitem>
726<para>When mondoarchive terminates, run mondorestore without any
727command-line options.</para>
728</listitem>
729<listitem><para>Insert the CD or the first boot floppy when prompted.
730                Press &lt;Enter&gt;. Wait a moment.</para></listitem>
731<listitem><para>Select a subset of files to restore, e.g. /usr/local/man
732                and /usr/local/bin. Hit OK.</para></listitem>
733<listitem><para>Restore files to /tmp or /root/RESTORED or something
734                similar.</para></listitem>
735<listitem><para>When mondorestore terminates, compare the restored files
736                to the originals using cmp or diff.</para></listitem>
737</itemizedlist>
738<para>Finally, simulate an emergency restore.</para>
739<itemizedlist>
740<listitem>
741<para>Boot from CD/floppies.</para>
742</listitem>
743<listitem><para>Select 'Interactive Mode' at boot-time. (Type
744                'interactive' and hit &lt;Enter&gt;.)</para></listitem>
745<listitem><para>Hit OK when shown the mountlist. Say 'yes' when asked if
746                you accept the mountlist.</para></listitem>
747<listitem><para>Select files to restore, e.g. /usr/local/man and
748                /usr/local/bin. Hit OK.</para></listitem>
749<listitem><para>Restore files to /tmp or /root/RESTORED or something
750                similar.</para></listitem>
751<listitem><para>When mondorestore terminates, please reboot and compare
752                the restored files to the originals.</para></listitem>
753</itemizedlist>
754<para>FYI, the subroutines to repartition and reformat your drives
755are very stable. If you are a RAID or LVM user, you
756might&nbsp;encounter some difficulties when wiping and restoring
757from scratch because of the sheer range of filesystem layouts and
758the impossibility of testing Mondo on every single one. If you have
759trouble, just drop to the command-line and partition/format
760manually. Then, call mondorestore, select Interactive Mode, and say
761'no' when asked if you want Mondo to partition or format your
762drives for you.</para>
763<para>You see, even if you have trouble, you still have two hands
764and most of the tools you need - lvchange, pvcreate, fdisk, mkraid,
765etc. - to do it manually. After you have prepped and formatted your
766drives manually (if you have to), just run mondorestore again and
767say 'no' when asked if you want to prep or format your drives. What
768could be easier?</para>
769</sect1>
770
771<sect1 id="overview-winbackup">
772<title>Windows Backup</title>
773<para>Backing up windows partitions.</para>
774<sect2 id="overview-winbackup-win95"><title>Windows ME/95/98</title>
775<para>Verify that the partition is listed in /etc/fstab and is
776mounted (e.g. /dev/hda1). Mondo will take care of everything else.
777The files will be archived just like all other files in the live
778file system. At restore-time, Mondo will take care of the boot
779sector of /dev/hda1 prior to the restore.</para>
780<para>Note: if Windows ME/95/98 is not located on /dev/hda1 or
781/dev/sda1, then Mondo will not take care of the boot sector of
782/dev/hda1. The user will have to boot from a DOS floppy and run SYS
783C: to correct the Windows boot sector.</para>
784</sect2>
785<sect2 id="overview-winbackup-winnt"><title>Windows NT4/2K/XP</title>
786<para>Windows NT4/2K/XP typically use the NTFS file system, not
787VFAT.. The user should use '-x /dev/hda1' (or whichever device the
788Windows partition resides). Mondo will treat the partition as a
789biggiefile. Mondo will also add an entry to the mountlist to
790reflect the size and type of the partition. The user may not edit
791that partition's size at restore-time (for obvious reasons).</para>
792<para>Please bear in mind that Mondo was written for Linux users.
793If Mondo does not backup or restore your Windows system well, you
794might want to consider reporting it to the &ML;
795</para>
796</sect2>
797</sect1>
798
799<sect1 id="overview-history">
800<title>Mondo Rescue and Mindi Linux
801History</title>
802<para>Mondo Rescue was created in December 1999 by Hugo Rabson as a utility to
803clone Linux/Windows installations. Norton Ghost would not do the
804job, and his boss wanted to jump on the Linux bandwagon. So, he wrote
805a few scripts and shoehorned them into the latest Linux-Mandrake
806CD. Since that time, Mondo grew into a disaster recovery suite for
807Linux and Windows. Mondo forced him to learn about the kernel, its
808initrd initial ramdisk, modules, library dependencies, disk
809partitioning, and the myriad differences between the Top 10 Linux
810distributions.</para>
811<para>The first formal release was made on February 18th, 2000.
812Mondo is currently one of the top five Linux backup/restore
813programs. Mondo has been compared favorably to ArcServe, Arkeia and
814BRU. Although Mondo lacks the more advanced, enterprise-level
815features of ArcServe and Arkeia, for workstations and small- to
816medium-size servers it is ideal because it is small, fast,
817efficient, stable, comes with source code, and is being actively
818developed and supported.</para>
819<para>
820        Since November 2005, Hugo Rabson has tranfered the maintenance
821        of the Mondo Rescue suite to Andree Leidenfrost and Bruno Cornec,
822        both previous developpers and packagers of the tool since nearly
823        the begining.
824</para>
825</sect1>
826
827<sect1 id="overview-sysreq">
828<title>System Requirements</title>
829<sect2 id="overview-sysrq-hwreq">
830<title>Hardware Requirements</title>
831
832<para>Your computer must have:</para>
833<itemizedlist>
834<listitem>
835        <para>Intel(R)-compatible CPU (ia32, x86_64/amd64 or ia64)</para>
836</listitem>
837<listitem>
838<para>64MB of RAM (128MB recommended)</para>
839</listitem>
840<listitem>
841<para>800MB of hard disk space free</para>
842</listitem>
843<listitem>
844<para>CD writer, tape streamer, NFS share or some way to backup the
845backups :)</para>
846</listitem>
847</itemizedlist>
848<para>It is recommended that your computer have very good airflow.
849The backup with Mondo Rescue and Mindi Linux will utilize your CPU,
850CD drive and fixed disk(s) like very few other applications. With a
851few hours of system backup activity, computers without sufficient
852airflow may show symptoms such as not burning full CD discs. The
853solution is a $20 or less additional fan at your local electronics
854discount store.</para>
855</sect2>
856
857<sect2 id="overview-sysrq-kernelreq">
858<title>Kernel Requirements</title>
859
860<para>Your kernel must have:</para>
861<itemizedlist>
862<listitem>
863<para>stable loopfs support, which means it really needs to be
8642.2.19 or 2.4.7 (or later)</para>
865</listitem>
866<listitem>
867<para>CD-ROM device support</para>
868</listitem>
869<listitem>
870<para>ISO9660 file system support</para>
871</listitem>
872<listitem>
873<para>initrd ramdisk support (built-in)</para>
874</listitem>
875<listitem>
876<para>Virtual memory file system support (built-in)</para>
877</listitem>
878<listitem>
879<para>floppy disk support (built in)</para>
880</listitem>
881<listitem>
882<para>ext2 file system support (built-in)</para>
883</listitem>
884<listitem>
885<para>Support for the backup media (Tape, CD-RW, NFS, Hard
886disk)</para>
887</listitem>
888<listitem>
889<para>If the backup media is CD-RW then you need SCSI emulation
890also</para>
891</listitem>
892</itemizedlist>
893<para>Please note that the stock kernels of Red Hat/RHEL/Fedora,
894    Mandrake/Mandriva, SuSE/SLES/OpenSuSE, Debian and Slackware
895    all meet Mondo's requirements. If your kernel does not meet Mondo's
896    requirements then there is something wrong with it. Mondo's demands
897    are not unreasonable.</para>
898<para>Mondo (specifically Mindi) does not require any specific
899module. It does require that your kernel support the initrd
900initial ramdisk facility. Typically this is supported by the Linux
901kernel. Modules used are needed to support the CD, floppy disks,
902hard disks, etc. If the support is modular, then the modules will
903be incorporated in a boot disk by Mindi. If the support is built-in
904(static), then it will be available at boot-time by default.</para>
905</sect2>
906<sect2 id="overview-sysrq-swreq">
907<title>Software Requirements</title>
908<para>See Mondo's <ulink url="http://www.mondorescue.org/download.html">Download
909page</ulink> for details.</para>
910<para>Mondo requires afio, bzip2, cdrtools/cdrecord/growisofs, ncurses, newt,
911isolinux/syslinux, lzo (optional), lzop (optional), mkisofs, slang,
912and a few other packages.</para>
913<para>Good Linux distributions provide all these packages. If yours
914does not then please go to the aforementioned Download page or surf
915the Net, preferably the website of the distribution you are
916using.</para>
917<para>Mondo's expectations are not unreasonable, either of your
918Linux distribution or of your kernel. However, if your distribution
919fails to meet its expectations and you cannot find out how to
920resolve them, please feel free to e-mail the &ML;
921</para>
922</sect2>
923</sect1>
924</chapter>
925
926<chapter id="installation">
927<title>Installation</title>
928
929<sect1 id="installation-mindi">
930<title>Mindi Installation</title>
931<para>If you are installing from a tarball then copy it to wherever
932you have enough space, for example /tmp and type:</para>
933<para></para>
934<informaltable><tgroup cols="1"><tbody>
935<row>
936<entry>
937
938        bash# cd /tmp
939        bash# tar -zxvf mindi-1.x.tgz
940        bash# cd mindi-1.x
941        bash# ./install.sh
942
943</entry>
944</row>
945</tbody></tgroup></informaltable>
946
947<para>This installs mindi additional files into /usr/local/lib/mindi and
948the program into /usr/local/sbin</para>
949<para>Or, if you are installing from an RPM/deb then copy it to
950wherever you have enough space, for example /tmp and type:</para>
951<para></para>
952<informaltable><tgroup cols="1"><tbody>
953<row>
954<entry>
955
956bash# rpm -Uvh /tmp/mindi-1.x-x.i386.rpm
957
958or
959
960bash# dpkg -i /tmp/mindi-1.x-x.deb
961
962</entry>
963</row>
964</tbody></tgroup></informaltable>
965
966<para>This installs mindi additional files into /usr/lib/mindi and
967the program into /usr/sbin.
968</para>
969</sect1>
970
971<sect1 id="installation-mondo">
972<title>Mondo Installation</title>
973<para>If you are installing from a tarball then copy it to wherever
974you have enough space, for example /tmp and type:</para>
975<para></para>
976<informaltable><tgroup cols="1"><tbody>
977<row>
978<entry>
979
980        bash# cd /tmp
981        bash# tar -zxvf mondo-2.xx.tgz
982        bash# cd mondo-2.xx
983        bash# make &amp;&amp; make install
984
985</entry>
986</row>
987</tbody></tgroup></informaltable>
988
989<para>This installs mondo into /usr/local/lib/mondo and installs
990the programs into /usr/local/sbin</para>
991<para>Or, if you are installing from an RPM/deb then copy it to copy it
992to wherever you have enough space, for example /tmp and
993type:</para>
994<para></para>
995<informaltable><tgroup cols="1"><tbody>
996<row>
997<entry>
998
999bash# rpm -Uvh /tmp/mondo-2.x-x.i386.rpm
1000
1001or
1002
1003bash# dpkg -i /tmp/mondo-2.x-x.deb
1004
1005</entry>
1006</row>
1007</tbody></tgroup></informaltable>
1008
1009<para>This installs mondo into /usr/lib/mondo and installs
1010the programs into /usr/sbin</para>
1011</sect1>
1012</chapter>
1013
1014<chapter id="test">
1015<title>Tests</title>
1016
1017<sect1 id="test-mindi">
1018<title>Testing Mindi</title>
1019
1020<para>Mindi is a vital part of the backup procedure. If you have
1021used Mondo before or if you are in a hurry, skip steps 6.2 and 6.3;
1022go straight to QuickStart.</para>
1023<para>However, if you have time or if you have been having trouble
1024getting Mondo to work, I would recommend trying out Mindi directly
1025(rather than via Mondo) to see if it can produce a bootable CD on
1026your system.</para>
1027<para>Make sure you are root while doing this, otherwise mindi will
1028fail, now do this.</para>
1029<para>If you have any problems, please:-</para>
1030<itemizedlist>
1031<listitem>
1032<para>less /var/log/mindi.log</para>
1033</listitem>
1034<listitem><para>feel free to edit mindi (it's a shell script, btw) to try
1035                to fix the problem yourself</para></listitem>
1036<listitem><para>contact the &ML; if you get stuck.</para></listitem>
1037</itemizedlist>
1038<para>Type:-</para>
1039<para></para>
1040<informaltable><tgroup cols="1"><tbody>
1041<row>
1042<entry>
1043
1044bash# mindi
1045
1046</entry>
1047</row>
1048</tbody></tgroup></informaltable>
1049
1050<para>Example screen output, selecting to use your own kernel, to
1051create boot disks, and to create a bootable CD image:</para>
1052<para></para>
1053<informaltable><tgroup cols="1"><tbody>
1054<row>
1055<entry>
1056
1057# mindi
1058Mindi Linux mini-distro generator v1.06-r343
1059
1060Latest Mindi is available from http://mondorescue.berlios.de
1061
1062BusyBox sources are available from http://www.busybox.net
1063
1064------------------------------------------------------------------------------
1065Do you want to use your own kernel to build the boot disk (y/n) ?y
1066Would you like to use LILO (instead of syslinux)
1067for your boot CD/floppies (y/n) ?n
1068Analyzing dependency requirements                               Done.
1069Making complete dependency list                                 Done.
1070Analyzing your keyboard's configuration.
1071
1072Adding the following keyboard mapping tables: us-latin1         Done.
1073Assembling dependency files...................................................................                                                  Done.
1074The files have been subdivided into 5 directories.                              Your mountlist will look like this:-
1075    Finding all volume groups
1076  No volume groups found
1077  No volume groups found
1078  No volume groups found
1079  No volume groups found
1080        DEVICE          MOUNTPOINT      FORMAT          SIZE (MB)
1081        /dev/hda1       /               ext3                399
1082        /dev/hda9       /home           ext3              48478
1083        /dev/hda6       /usr            ext3               4999
1084        /dev/hda7       /var            ext3               1000
1085        /dev/hda5       swap            swap                349
1086        /dev/hda8       swap            swap               2003
1087    Finding all volume groups
1088  No volume groups found
1089  No volume groups found
1090  No volume groups found
1091  No volume groups found
1092Tarring and zipping the groups..................                Done.
1093Creating data disk #1...#2...#3...#4...#5...                    Done.
1094Making 1722KB boot disk...........................1440+0 enregistrements lus.
10951440+0 enregistrements écrits.
1096mke2fs 1.38 (30-Jun-2005)
1097cp: écriture de `vmlinuz': Aucun espace disponible sur le périphérique
1098Failed to copy /boot/vmlinuz-2.6.12-15mdk-i686-up-4GB to ramdisk
1099
1100Warning - failed to create 1.44MB boot/root floppies
1101
1102Warning - failed to create 1.72MB boot image. Please reduce your kernel's size
1103
1104if you want to make a 1.72MB floppy disk.
1105
1106Making 2880KB boot disk...........................mkfs.vfat 2.10 (22 Sep 2003)
1107... 2880 KB boot disks were created OK                          Done.
1108In the directory '/root/images/mindi' you will find the images:-
1109   mindi-data-1.img    mindi-data-2.img    mindi-data-3.img    mindi-data-4.img    mindi-data-5.img mindi-root.1440.img
1110Would you like to create boot+data floppy disks now (y/n) ?n
1111Shall I make a bootable CD image? (y/n) y
1112NB: Mindi's bootable CD always uses isolinux.
1113
1114For a bootable CD w/LILO, please use Mondo.
1115
1116Finished.
1117
1118Boot and data disk images were created.
1119
1120#
1121       
1122</entry>
1123</row>
1124</tbody></tgroup></informaltable>
1125
1126<para>If your kernel is too large (more than about 900KB) then you
1127cannot make boot floppies, although you can still make a bootable
1128CD image. The easiest way to test Mindi in either case is to say
1129'n' to its first question and 'y' to its second, then use the
1130separate application cdrecord to make a bootable CD-R or
1131CD-RW.</para>
1132<para>Use the cdrecord application to write the CD image:</para>
1133<para></para>
1134<informaltable><tgroup cols="1"><tbody>
1135<row>
1136<entry>
1137
1138        bash# cd /root/images/mindi
1139        bash# cdrecord -scanbus
1140
1141</entry>
1142</row>
1143</tbody></tgroup></informaltable>
1144
1145<para>The output of the above call to cdrecord will tell you your
1146CD writer's node. It is usually '0,0,0'. Choose one of the
1147following calls to write the CD, depending on whether the disk in
1148the drive is a CD-R or a CD-RW. Please replace 'x,x,x' with your
1149writer's node. For further information, type 'man cdrecord" from a
1150Linux command line.</para>
1151<para>If writing to a CD-RW Drive/Disc:</para>
1152<para></para>
1153<informaltable><tgroup cols="1"><tbody>
1154<row>
1155<entry>
1156
1157bash# cdrecord -v blank=fast dev=x,x,x speed=4 mindi.iso (for CD-RW)
1158
1159</entry>
1160</row>
1161</tbody></tgroup></informaltable>
1162
1163<para>If writing to a CD-R Drive/Disc:</para>
1164<para></para>
1165<informaltable><tgroup cols="1"><tbody>
1166<row>
1167<entry>
1168
1169bash# cdrecord -v dev=x,x,x speed=4 mindi.iso (for CD-R)
1170
1171</entry>
1172</row>
1173</tbody></tgroup></informaltable>
1174</sect1>
1175
1176<!--
1177<sect1 id="test-mondo">
1178<title>Testing Mondo</title>
1179</sect1>
1180-->
1181</chapter>
1182
1183<chapter id="backup">
1184<title>Backup</title>
1185
1186<sect1 id="backup-recommandations">
1187<title>Recommandations</title>
1188<itemizedlist>
1189<listitem>
1190<para>Shut down all possible applications (this minimizes any
1191        compare differences following the backup). Especially shutdown
1192        properly any running database on your system, as the recovery
1193        may lead to corrupted data.</para>
1194</listitem>
1195<listitem>
1196<para>Type:</para>
1197</listitem>
1198</itemizedlist>
1199<para></para>
1200<informaltable><tgroup cols="1"><tbody>
1201<row>
1202<entry>
1203
1204bash# mondoarchive
1205
1206</entry>
1207</row>
1208</tbody></tgroup></informaltable>
1209
1210<para>For most users, that should be enough. :-) Mondoarchive will
1211usually autodetect your hardware and configure it for you.</para>
1212<para>If you are a power user (or you like to control every detail
1213of how Mondo runs) then you may want to look at the command-line
1214switches. For example:-</para>
1215<para></para>
1216<informaltable><tgroup cols="1"><tbody>
1217<row>
1218<entry>
1219
1220bash# mondoarchive -Ow9 -gF -I /home
1221
1222</entry>
1223</row>
1224</tbody></tgroup></informaltable>
1225
1226<para>cdrecord will tell you where your CD recorder lives, in SCSI
1227terms, which looks like '0,0,0'. The previous call to mondoarchive tells
1228Mondo to backup everything to a 4x CD-RW drive that has
1229a CD-RW disk in it. (Use -Oc instead of -Ow if you are using
1230CD-R.)</para>
1231<para>Please put the first CD-R(W) in the drive now. You will be
1232prompted to insert CD #2 but you will not be prompted to insert the
1233first disk. However, if you forget, do not worry: if Mondo fails to
1234write the first (or any) disk, it will offer to retry, abort or
1235fail.</para>
1236<para>Find the speed/compression
1237compromise that best suits your needs. Here maximum (-9) compression level is used.</para>
1238<para>If you are using cron then please use -F to make sure that
1239Mondo does not prompt you to create bootable floppy disks. Cron
1240does not handle user interaction well because it pipes stdin and
1241stdout specially. Please consult cron's manual for more
1242information. Jesse Keating has written a script for cron/Mondo
1243users. It is available on the
1244<ulink url="http://www.mondorescue.org/docs/docs.html">Documentation</ulink>
1245page.</para>
1246</sect1>
1247
1248<sect1 id="backup-cmd">
1249<title>Backup Commands and Options</title>
1250
1251<para>Backup Command:</para>
1252<para></para>
1253<informaltable><tgroup cols="1"><tbody>
1254<row>
1255<entry>
1256
1257mondoarchive &lt;-option1&gt; &lt;-option2&gt; ... &lt;-optionN&gt;
1258
1259</entry>
1260</row>
1261</tbody></tgroup></informaltable>
1262
1263<para>E.g.,</para>
1264<para></para>
1265<informaltable><tgroup cols="1"><tbody>
1266<row>
1267<entry>
1268
1269bash# mondoarchive -E "/mnt/dos /mnt/cdrom" -9 -Oc 8
1270
1271</entry>
1272</row>
1273</tbody></tgroup></informaltable>
1274
1275<para>Would create backup CD to a CD-R disc at the highest
1276compression level, writing at speed 8 and ignoring the /mnt/dos and
1277/mnt/cdrom directories.</para>
1278<para>To see a detailed list of switches and their meaning, see the
1279<ulink url="http://www.mondorescue.org/download/mondoarchive.1.html">HTML
1280man page</ulink> on the website or type 'man mondoarchive' at the
1281console.</para>
1282<sect2 id="backup-cmd-cdr">
1283<title>Standard Example With CD-R</title>
1284<para></para>
1285<informaltable><tgroup cols="1"><tbody>
1286<row>
1287<entry>
1288
1289bash# mondoarchive -Oc 2 -g
1290
1291</entry>
1292</row>
1293</tbody></tgroup></informaltable>
1294
1295<para>Replace '2' in '-Oc 2' with the writer's speed. If
1296mondoarchive cannot find your CD-R then please add '-d 0,0,0' (or
1297whatever your CD writer's SCSI node is; usually, it is 0,0,0) to
1298the call.</para>
1299<para>Please insert the first disk in the writer while the PC is
1300chugging away. If Mondo needs additional CD-R(W) then it will ask
1301for them.</para>
1302</sect2>
1303<sect2 id="backup-cmd-cdrw">
1304<title>Standard Example With CD-RW</title>
1305<para></para>
1306<informaltable><tgroup cols="1"><tbody>
1307<row>
1308<entry>
1309
1310bash# mondoarchive -Ow 2 -g
1311
1312</entry>
1313</row>
1314</tbody></tgroup></informaltable>
1315
1316<para>Replace '2' in '-Ow 2' with the writer's speed.</para>
1317</sect2>
1318<sect2 id="backup-cmd-tape">
1319        <title>Standard Example With Tape</title>
1320<para></para>
1321<informaltable><tgroup cols="1"><tbody>
1322<row>
1323<entry>
1324
1325bash# mondoarchive -Ot -d /dev/st0 -g
1326
1327</entry>
1328</row>
1329</tbody></tgroup></informaltable>
1330
1331</sect2>
1332<sect2 id="backup-cmd-failsafe">
1333        <title>Standard Example With Failsafe kernel</title>
1334<para></para>
1335<informaltable><tgroup cols="1"><tbody>
1336<row>
1337<entry>
1338
1339bash# mondoarchive -k FAILSAFE -Ow 2
1340
1341</entry>
1342</row>
1343</tbody></tgroup></informaltable>
1344
1345<para>If you have problems during the restore phase, due to your kernel
1346        (which may be the case on some distributions), you may want to explore the Failsafe
1347        approach, In order for this option to work you'll have to get
1348        the mindi-kernel tarball or package for your distribution.</para>
1349</sect2>
1350<sect2 id="backup-cmd-network">
1351        <title>Standard Example With Network Backup</title>
1352<para></para>
1353<informaltable><tgroup cols="1"><tbody>
1354<row>
1355<entry>
1356
1357        bash# mount 192.168.1.3:/home/nfs -t nfs /mnt/nfs
1358        bash# mondoarchive -OVn 192.168.1.3:/home/nfs -g -s 200m
1359        bash# umount /mnt/nfs
1360
1361</entry>
1362</row>
1363</tbody></tgroup></informaltable>
1364
1365<para>The resultant ISO's can be burned to CD's if you want (which
1366isn't a good idea unless you're a Mondo expert because they'll try
1367to restore over a network by default, which is silly because the
1368archives are on the CD's). Or, you can boot from the Mindi floppies
1369(or mondorescue.iso) and hit ENTER a few times to restore.</para>
1370<para>Those ISO images can also be used for a PXE restore. For this
1371        to work, please refer to the file README.pxe provided with
1372        your mindi package.
1373</para>
1374</sect2>
1375</sect1>
1376</chapter>
1377
1378<chapter id="compare">
1379<title>Compare</title>
1380<para>Before you trust your backup CD, make sure your BIOS can boot
1381CD (and that it is configured to do so).</para>
1382<itemizedlist>
1383<listitem>
1384<para>Boot from the first CD.</para>
1385</listitem>
1386<listitem>
1387<para>Type:</para>
1388</listitem>
1389</itemizedlist>
1390<para></para>
1391<informaltable><tgroup cols="1"><tbody>
1392<row>
1393<entry>
1394
1395LILO: compare
1396
1397</entry>
1398</row>
1399</tbody></tgroup></informaltable>
1400
1401<para>Follow the on-screen instructions. This will compare your
1402backup against your original file system.</para>
1403<para>FYI, no bad archives have been created since May 2000. Having
1404said that, I would still encourage you to run Compare before
1405trusting the backups.</para>
1406<para>To view the file differences, look at the file
1407'/tmp/changed.txt'. Normal differences include logs and other
1408dynamic system files that changed during the time of the backup
1409process. If only a few files differ - e.g. files in /var, files
1410ending in '&amp;#732;', logs, temporary files, /etc/mtab,
1411/etc/adjtimex - then you know the archives are good. Your logs will
1412change over time, too. Bear in mind that a difference between the
1413backup and the live copy does not&nbsp;indicate a flaw in Mondo. It
1414indicates that you or your filesystem changed the files, so the
1415backup is no longer 100% up to date. However, that is inevitable,
1416as your filesystem changes from moment to moment (which is why you
1417back it up regularly).</para>
1418
1419</chapter>
1420
1421<chapter id="restore">
1422<title>Restore</title>
1423
1424<sect1 id="restore-overview">
1425<title>Overview</title>
1426
1427<para>I hope you don't have to restore from scratch very often.
1428It's nerve-wracking until you realize that Mondo's restore engine
1429is very reliable.
1430</para>
1431<para>If you find that you cannot make your PC boot from the CD,
1432take heart: the first backup CD of each set contains floppy disk
1433images to give you the same functionality as the CD (minus the
1434archives, of course) on floppies. Remember, your Mondo CD is a
1435fully functional CD-based mini-distribution as well as a recovery
1436CD.</para>
1437<para>You can choose from the following modes:</para>
1438
1439<variablelist>
1440<varlistentry><term>Interactive</term>
1441<listitem><para>Restore step-by-step, or restore a subset of the
1442archives. This is the method you should mainly use for your
1443recovery needs.</para>
1444</listitem></varlistentry>
1445<varlistentry><term>Nuke</term>
1446<listitem><para>Wipe your drives and restore everything,
1447automatically and unattended. Warning: This does exactly what is
1448says, so be carefull using it.</para>
1449</listitem></varlistentry>
1450<varlistentry><term>Expert</term>
1451<listitem><para>Boot to a shell prompt. If you want to do anything
1452creative, you should boot into Expert Mode. It's called expert, I
1453think that says it all.</para>
1454</listitem>
1455</varlistentry>
1456</variablelist>
1457
1458<para>If the CD is not found during the initial restore CD boot
1459attempt, reboot the PC a second time prior to reporting failure.
1460Occasional timing errors and hardware/software/system conflicts do
1461occur.</para>
1462</sect1>
1463
1464<sect1 id="restore-tips">
1465<title>Tips and Tricks</title>
1466
1467<para>Ideally, restore your system to a spare hard drive to test
1468the integrity and reliability of your disks. To do that, either
1469edit your mountlist to make the devices point to your spare hard
1470drive, or swap your hard drive cables between boots.</para>
1471<para>At a bare minimum, compare your CD against your file system
1472before you decide whether to trust them.</para>
1473<para>To test Mondo's ability to handle your LILO or GRUB boot
1474loader and accompanying configuration file:</para>
1475<itemizedlist>
1476<listitem>
1477<para>Boot from the backup CD into Expert Mode</para>
1478</listitem>
1479<listitem>
1480<para>Type:</para>
1481</listitem>
1482</itemizedlist>
1483<para></para>
1484<informaltable><tgroup cols="1"><tbody>
1485<row>
1486<entry>
1487
1488bash# mondorestore --mbr
1489
1490</entry>
1491</row>
1492</tbody></tgroup></informaltable>
1493
1494<itemizedlist>
1495<listitem>
1496<para>To fix any mess it made (not that it should) type:</para>
1497</listitem>
1498</itemizedlist>
1499<para></para>
1500<informaltable><tgroup cols="1"><tbody>
1501<row>
1502<entry>
1503
1504        bash# mount-me
1505        bash# chroot /mnt/RESTORING
1506        bash# lilo OR grub-install '(hd0)'
1507        bash# exit
1508        bash# unmount-me
1509
1510</entry>
1511</row>
1512</tbody></tgroup></informaltable>
1513
1514<itemizedlist>
1515<listitem>
1516<para>If it did not work then please copy /tmp/mondo-restore.log to
1517a floppy (or to your hard disk, USB key, ...), gzip it and e-mail it to the
1518&ML;.</para>
1519</listitem>
1520</itemizedlist>
1521
1522<sect2>
1523    <title>Barebones (Nuke) Restore</title>
1524<para>Imagine that your hard drives happen to be wiped,
1525deliberately or accidentally. Or, imagine that you want to clone
1526your existing operating system. In either case, you want to run in
1527Nuke Mode.</para>
1528<para>If you want to wipe everything and restore your whole system
1529from CD, please:</para>
1530<itemizedlist>
1531<listitem>
1532<para>Use the -H option when invoking mondoarchive</para>
1533</listitem>
1534<listitem>
1535<para>Boot from the first Mondo CD</para>
1536</listitem>
1537<listitem>
1538<para>Press RESTORE&lt;enter&gt;</para>
1539</listitem>
1540<listitem>
1541<para>Insert the subsequent CD when asked</para>
1542</listitem>
1543<listitem>
1544<para>Watch the screen for errors</para>
1545</listitem>
1546</itemizedlist>
1547<para>That's it. The restoration process for tape or NFS users is
1548similarly easy: just boot, answer the on-screen prompts, and
1549wait.</para>
1550<para>Now, should something go wrong, you will be able to examine
1551/tmp/mondo-restore.log to see what happened. All is not lost. You
1552can fdisk and format the partitions yourself, using the tools that
1553come with the CD. You can then run mondorestore in Interactive Mode
1554and say 'no' when asked if you want Mondo to partition/format your
1555drives.</para>
1556<para>If you want to see exactly what Mondo is doing while it is
1557restoring, press &lt;Alt&gt;&lt;left cursor&gt; to view its
1558logfile, in a virtual console, scrolling past.</para>
1559</sect2>
1560<sect2>
1561<title>Interactive Restore</title>
1562<para>Interactive Mode is for people who have lost a subset of data
1563from their live file system, or perhaps who have lost some data
1564from their latest backup and want to restore a subset of data from
1565an earlier backup. If you want to restore only some files or if you
1566do not want to prep/format your drives, then you should boot into
1567Interactive Mode. The interactive mode will provide an 'Editing
1568mountlist screen' that allows you to setup a different disk
1569geometry.</para>
1570<para>To move up and down between partitions in the 'Editing
1571mountlist screen', use the Up and Down arrows. To move between the
1572main window and the buttons at the bottom, use the Left and Right
1573cursor keys. TAB shifts focus from one screen item to the other in
1574a haphazard fashion, owing to the complexities of the Newt
1575library.</para>
1576<para>If you want to restore selectively, just press &lt;enter&gt;
1577and follow the on-screen instructions. You will be asked to say
1578yes/no to a range of questions.</para>
1579<para>If you are planning to modify your partition table, you would
1580do well to read up on the partition layout and the use of fdisk, it
1581gives you some pointers on how to best lay out partitions.
1582You can find a good guide at
1583<ulink url="http://www.ibiblio.org/pub/Linux/docs/HOWTO/mini/Partition/index.html">http://www.ibiblio.o
1584rg/pub/Linux/docs/HOWTO/mini/Partition/index.html</ulink></para>
1585<para>If you want to restore a subset of the backup then:</para>
1586<itemizedlist>
1587<listitem>
1588<para>Boot from the CD</para>
1589</listitem>
1590<listitem>
1591<para>Type:</para>
1592</listitem>
1593</itemizedlist>
1594<para></para>
1595<informaltable><tgroup cols="1"><tbody>
1596<row>
1597<entry>
1598
1599bash# interactive
1600
1601</entry>
1602</row>
1603</tbody></tgroup></informaltable>
1604
1605<itemizedlist>
1606<listitem>
1607<para>Then, after booting, answer the questions as follows:</para>
1608</listitem>
1609</itemizedlist>
1610<para></para>
1611<informaltable><tgroup cols="1"><tbody>
1612<row>
1613<entry>
1614
1615        Do you want to partition your devices? no
1616        Do you want to format them? no
1617        Do you want to restore everything? no
1618        Do you want to restore something? yes
1619        Which path do you want to restore? /mydata [e.g.]
1620        Do you want to run LILO to setup your boot sectors? Yes
1621
1622</entry>
1623</row>
1624</tbody></tgroup></informaltable>
1625
1626</sect2>
1627
1628<sect2>
1629<title>Expert Restore</title>
1630<para>If you are planning to modify your partition table, you would
1631do well to read up on the partition layout and the use of fdisk, it
1632gives you some could pointers on how to best lay out partitions.
1633You can find good a guide at
1634<ulink url="http://www.ibiblio.org/pub/Linux/docs/HOWTO/mini/Partition/index.html">http://www.ibiblio.o
1635rg/pub/Linux/docs/HOWTO/mini/Partition/index.html</ulink></para>
1636<para>To restore manually, please:</para>
1637<itemizedlist>
1638<listitem>
1639<para>Boot from the first CD, then type:</para>
1640</listitem>
1641</itemizedlist>
1642<para></para>
1643<informaltable><tgroup cols="1"><tbody>
1644<row>
1645<entry>
1646
1647bash# expert
1648
1649</entry>
1650
1651</row>
1652</tbody></tgroup></informaltable>
1653
1654<itemizedlist>
1655<listitem>
1656<para>Then do whatever you like. :) You may type the following, of
1657course:</para>
1658</listitem>
1659</itemizedlist>
1660<para></para>
1661<informaltable><tgroup cols="1"><tbody>
1662<row>
1663<entry>
1664
1665bash# mondorestore
1666
1667</entry>
1668</row>
1669</tbody></tgroup></informaltable>
1670</sect2>
1671       
1672<sect2>
1673<title>Modified partitions - Restore to a different disk geometry</title>
1674<para>One of the nice things about Mondo is that it lets you wipe
1675your existing system and restore it in any layout you like (within
1676reason). You can move from non-RAID to RAID,install and utilize
1677additional drives, move from ext2 to ReiserFS, etc., all without
1678risking the loss of data.</para>
1679<para>If the user excluded a particular partition from backup and
1680specifically excluded it from the mountlist itself using -E then
1681Mondo will insert a small (32MB) partition at restore-time, in
1682order to avoid having to re-jig fstab, the partition table,
1683etc.</para>
1684<para>To do this:</para>
1685<itemizedlist>
1686<listitem>
1687<para>Boot into Expert Mode, then type:</para>
1688</listitem>
1689</itemizedlist>
1690<para></para>
1691<informaltable><tgroup cols="1"><tbody>
1692<row>
1693<entry>
1694
1695bash# mondorestore
1696
1697</entry>
1698</row>
1699</tbody></tgroup></informaltable>
1700
1701<itemizedlist>
1702<listitem>
1703<para>(edit the mountlist using the on-screen editor)</para>
1704</listitem>
1705</itemizedlist>
1706<para>If you want to move from ext2 to ReiserFS, you can do it here
1707(so long as your kernel supports ReiserFS). Ditto for XFS, JFS or
1708ext3.</para>
1709<para>Mondorestore will try to modify your /etc/fstab to reflect
1710changes you have made to the mountlist. If you are not using LILO,
1711you can still create your own /mnt/RESTORING/etc/lilo.conf and run
1712lilo -r /mnt/RESTORING to configure your boot sectors and Master
1713Boot Record.</para>
1714<para>Mondo (technically, Mindi on behalf of Mondo) creates a file
1715called a mountlist. This can be found on the ramdisk at
1716/tmp/mountlist.txt; it looks something like this:</para>
1717<para></para>
1718<informaltable><tgroup cols="1"><tbody>
1719<row>
1720<entry>
1721
1722        /dev/hda1   /mnt/windows    vfat        4096000
1723        /dev/hda5   /               reiserfs    6023000
1724        /dev/hda6   /tmp            xfs         955000
1725        /dev/hda7   /usr            ext3        4096000
1726
1727</entry>
1728</row>
1729</tbody></tgroup></informaltable>
1730
1731<para>It is fairly easy to understand the list. Each line refers to
1732a single device/partition. The line format is:</para>
1733<para></para>
1734<informaltable><tgroup cols="1"><tbody>
1735<row>
1736<entry>
1737
1738&lt;device&gt; &lt;partition&gt; &lt;format&gt; &lt;Kilobytes&gt;
1739
1740</entry>
1741</row>
1742</tbody></tgroup></informaltable>
1743
1744<para>If you have added a hard drive and want to take advantage of
1745the additional space, you could amend the above mountlist to
1746read:</para>
1747<para></para>
1748<informaltable><tgroup cols="1"><tbody>
1749<row>
1750<entry>
1751
1752        /dev/hda1   /mnt/windows    vfat        6096000
1753        /dev/hda5   /               reiserfs    9123000
1754        /dev/hda6   /tmp            xfs         955000
1755        /dev/hdb1   /usr            ext3        8192000
1756        /dev/hdb2   /home           xfs         8192000
1757
1758</entry>
1759</row>
1760</tbody></tgroup></informaltable>
1761
1762<para>This assumes that your old hard drive is /dev/hda and the new
1763hard drive is /dev/hdb.</para>
1764<para>Or, if you want to add RAID support, create a new
1765/etc/raidtab on the ramdisk (which is beyond the scope of this
1766HOWTO) and then write a mountlist like this:</para>
1767<para></para>
1768<informaltable><tgroup cols="1"><tbody>
1769<row>
1770<entry>
1771
1772        /dev/hda1   /mnt/windows    vfat        6096000
1773        /dev/md0    /               reiserfs    9123000
1774        /dev/md1    /tmp            xfs         955000
1775        /dev/md2    /usr            ext3        8192000
1776        /dev/md3    /home           xfs         8192000
1777
1778</entry>
1779</row>
1780</tbody></tgroup></informaltable>
1781
1782<para>So long as your /etc/raidtab file is sane, Mondo can
1783automatically partition and format your disks for you, including
1784the RAID devices.</para>
1785<para>Once you have finished editing /tmp/mountlist.txt using
1786mondorestore's built-in editor then you may choose 'OK'. Please
1787note that this will not write anything to your hard disk. You will
1788only reformat or repartition your disks if you say 'Yes' when asked
1789if you want to do those things.</para>
1790</sect2>
1791
1792<sect2>
1793<title>Advanced</title>
1794<para>It is now possible to restore to a live filesystem using
1795Mondo. In other words, you do not have to boot your PC from your
1796CD/floppy in order to restore files. Mondo was originally designed
1797for disaster recovery - situations in which you cannot boot your
1798PC. If you can boot your PC, it is not really a disaster, is it? :)
1799Well, if you have wiped out your priceless collection of "MTV's
1800Bjork Unplugged" MP3's, perhaps it is. Anyway, just type this as
1801root</para>
1802<para></para>
1803<informaltable><tgroup cols="1"><tbody>
1804<row>
1805<entry>
1806
1807bash# mondorestore
1808
1809</entry>
1810</row>
1811</tbody></tgroup></informaltable>
1812
1813<para></para>
1814<informaltable><tgroup cols="2"><tbody>
1815<row>
1816<entry>
1817<ulink url="images/rest1.png"><inlinemediaobject><imageobject>
1818<imagedata fileref="images/rest1-mini">
1819</imageobject></inlinemediaobject>
1820</ulink>
1821</entry>
1822<entry>
1823Choose your type of backup media. The live restoration process is
1824very similar to what you'll experience if you type mondorestore
1825with no parameters after booting from a Mondo CD/floppy.
1826</entry>
1827</row>
1828<row>
1829<entry>
1830<ulink url="images/rest2.png"><inlinemediaobject><imageobject>
1831<imagedata fileref="images/rest2-mini">
1832</imageobject></inlinemediaobject>
1833</ulink>
1834</entry>
1835<entry>
1836Hit 'OK' when you have inserted the tape/CD. If you generated a
1837tape backup, the tape itself should be enough. If you generated a
1838CD backup, the first CD should be enough. Otherwise, you may need
1839the boot floppy.
1840</entry>
1841</row>
1842<row>
1843<entry>
1844<ulink url="images/rest3.png"><inlinemediaobject><imageobject>
1845<imagedata fileref="images/rest3-mini">
1846</imageobject></inlinemediaobject>
1847</ulink>
1848</entry>
1849<entry>
1850Flag the files and directories you wish to restore. Use the 'More'
1851and 'Less' buttons to open and close subdirectories.
1852</entry>
1853</row>
1854<row>
1855<entry>
1856<ulink url="images/rest4.png"><inlinemediaobject><imageobject>
1857<imagedata fileref="images/rest4-mini">
1858</imageobject></inlinemediaobject>
1859</ulink>
1860</entry>
1861<entry>
1862Specify the location to restore the files to. In general, '/' is
1863appropriate. If you do not want to overwrite newer versions of the
1864files you are restoring then specify /tmp/BKP or similar as the
1865restore path.
1866</entry>
1867</row>
1868<row>
1869<entry>
1870<ulink url="images/rest5.png"><inlinemediaobject><imageobject>
1871<imagedata fileref="images/rest5-mini">
1872</imageobject></inlinemediaobject>
1873</ulink>
1874</entry>
1875<entry>
1876Mondorestore will retrieve configuration information from the
1877media. (The sample screen is for tape users. CD users will see
1878something different.)
1879</entry>
1880</row>
1881<row>
1882<entry>
1883<ulink url="images/rest6.png"><inlinemediaobject><imageobject>
1884<imagedata fileref="images/rest6-mini">
1885</imageobject></inlinemediaobject>
1886</ulink>
1887</entry>
1888<entry>
1889Data will be restored to the hard disk - first the regular files,
1890then any big (32MB or greater) files in the restore set.
1891</entry>
1892</row>
1893</tbody></tgroup></informaltable>
1894
1895<para>I hope this manual is proving to be useful to you.</para>
1896</sect2>
1897</sect1>
1898
1899</chapter>
1900
1901<chapter id="faq">
1902<title>FAQ</title>
1903
1904<sect1 id="faq-overview">
1905<title>Overview</title>
1906<para>Are the errors from Mindi or Mondo? Look at
1907/var/log/mondo-archive.log, /var/log/mindi.log or the
1908mondo.err.xxxxx.tgz log indicated by the screen message. Pipe
1909screen errors which relate to the creation of boot disk(s) and or
1910data disk(s) to a text file.</para>
1911<para>See the &WWW; for details. If you are going to e-mail
1912&ML; then
1913please attach that text file (zipped!) and give :</para>
1914<itemizedlist>
1915<listitem>
1916<para>Your kernel version</para>
1917</listitem>
1918<listitem>
1919<para>Your Linux distro's name and version</para>
1920</listitem>
1921<listitem>
1922<para>Whether your kernel supports initrd and loopfs; it should!</para>
1923</listitem>
1924<listitem>
1925<para>What sort of PC you are using, including hard disk configurations</para>
1926</listitem>
1927</itemizedlist>
1928<para>Mondo is freely available under the GPL and you are given it for no charge.
1929When you e-mail the &ML;, please bear that in mind.</para>
1930</sect1>
1931<sect1 id="faq-general">
1932<title>General Questions</title>
1933
1934<qandaset>
1935<qandaentry>
1936        <question><para>Q: What is "Mindi"?</para></question>
1937        <answer>
1938<para>A: Mindi, a.k.a. Mindi-Linux, makes a mini-distribution from
1939your kernel, modules, modules, tools and libraries. It can also
1940generate an El Torito 2.88/5.76MB boot disk image. Mondo uses Mindi to
1941create a mini-distro, then boots from it and runs on it.</para>
1942</answer>
1943</qandaentry>
1944<qandaentry>
1945        <question><para>Q: Why is it called "Mondo"?</para></question>
1946        <answer>
1947<para>A: The Teenage Mutant Ninja Turtles described cool things as
1948'mondo'. Hugo Rabson wasn't sure what to call this project. 'Faust' was one
1949idea he had, partly as a dig at his former boss who practically owned
1950him because of his legal status at the time. In the end, He chose
1951something short and distinctive.</para>
1952</answer>
1953</qandaentry>
1954<qandaentry>
1955<question><para>Q: Mondo does not work on my system. It
1956                keels over and dies. What's wrong?</para></question>
1957<answer>
1958        <para>A: It works on Red Hat 7.x/8/9, RHEL 2.1/3/4, Mandrakelinux 8.x/9.x/10.x, Debian 3.0, most flavors
1959                of SuSE/SLES, some flavors of Slackware, etc.
1960The more distributions we support, the more moving targets we have to
1961hit. Please bear this in mind when e-mailing the list. :) If you
1962would like to help us by beta-testing Mondo (or Mindi) on your PC
1963then we would be very interested in working with you to work around
1964the eccentricities of your Linux distro. However, rest assured, 90%
1965of the bugs reported are actually symptoms of FooLinux X.Y's
1966unique way of doing things.</para>
1967<para>Please send a copy of <filename>/var/log/mondo-archive.log</filename> to the &ML;
1968along with a description of your distro, your kernel, etc.
1969Oh, and before sending it, please try to read it.</para>
1970</answer>
1971</qandaentry>
1972<qandaentry>
1973        <question><para>Q: What if the error is in Mindi?</para></question>
1974        <answer>
1975                <para>A: Please send a copy of <filename>/var/log/mindi.log</filename> to the &ML;
1976along with a description of your distro, your kernel, etc.
1977Oh, and before sending it, please read it asit's much easier to understand it.</para>
1978</answer>
1979</qandaentry>
1980<qandaentry>
1981        <question><para>Q: Can I trust Mondo?</para></question>
1982        <answer>
1983<para>A: Mondo has generated reliable archives since May 2000.
1984Lost data occured by using bad CD-R disks and not verifying their
1985contents. Some users have not tried booting from their CD until
1986crunch time. Remember to boot into Compare Mode to verify the
1987backup before you trust it. If Mondo did not work, you would not be
1988reading this. If it does not work for you, your kernel is usually
1989the culprit. Check <link linkend="overview-sysrq-kernelreq">Linux Kernel
1990support</link> to see what your kernel should support. Please
1991e-mail the list if you need some help with this.</para>
1992</answer>
1993</qandaentry>
1994<qandaentry>
1995        <question><para>Q: How do I report a bug?</para></question>
1996        <answer>
1997                <para>A: E-mail the bug report (mondo.err.xxxxx.tgz) to the &ML;.
1998                        Ok you've read it already but it's really important if you want help.
1999If you don't send a logfile then there isn't a lot that we can do for you, so
2000PLEASE include a logfile at the very least.</para>
2001</answer>
2002</qandaentry>
2003<qandaentry>
2004<question><para>Q: I think Mondo should (...insert
2005suggestion here...) and I have rewritten it accordingly. Would you
2006like to see my patch?</para></question>
2007<answer>
2008<para>A: Absolutely! :-) The best way for you to make Mondo do what
2009you want is to modify it and then send the patch. That way, we
2010can all benefit.</para>
2011</answer>
2012</qandaentry>
2013<qandaentry>
2014<question><para>Q: I think Mondo should (...insert
2015suggestion here...); will you incorporate this feature for me,
2016please?</para></question>
2017<answer>
2018<para>A: please enter the suggestion in our feature system at &WWW;
2019</para>
2020</answer>
2021</qandaentry>
2022<qandaentry>
2023<question><para>Q: Mondo says, "XXX is missing," and
2024                then terminates. What's wrong?</para></question>
2025<answer>
2026<para>A: A good Linux distribution should contain XXX but the
2027designers, in their infinite wisdom, decided not to include that
2028particular tool. Check <!--<link linkend="linuxpackages">-->Related
2029        Linux Packages<!--</link>--> and install the missing package. If that
2030fails, contact the vendor/distributor/manufacturer/designer of your
2031distro.</para>
2032</answer>
2033</qandaentry>
2034<qandaentry>
2035<question><para>Q: Can Mondo handle multi-CD backups and
2036                restores?</para></question>
2037<answer>
2038<para>A: Yes, up to twenty CD per set. This 20-CD limit results
2039from laziness on mondorescue's part. I'll be removed in the future. However, if
2040your system occupies more than 20 CD, may it's time for another type of media ?
2041</para>
2042</answer>
2043</qandaentry>
2044<qandaentry>
2045<question><para>Q: Can Mondo handle Linux/Windows
2046                dual-boot systems?</para></question>
2047<answer>
2048<para>A: Yes. If your system currently boots into Linux or Windows
2049via LILO, you can backup and restore both OSes at the same time
2050using Mondo. If you are using NTFS then add the switch, '-x
2051&lt;device&gt;'.</para>
2052</answer>
2053</qandaentry>
2054<qandaentry>
2055<question><para>Q: Can Mondo backup Windows-only
2056                systems?</para></question>
2057<answer>
2058<para>A: Not at the moment.
2059</para>
2060</answer>
2061</qandaentry>
2062<qandaentry>
2063        <question><para>Q: Does Mondo support LVM?</para></question>
2064        <answer>
2065<para>A: Mondo supports LVM v1 and v2. Mondo backs up and restores your
2066existing setup but it does not make it easy for you to change your
2067LVM configuration, at the moment. You have to edit <filename>/tmp/i-want-my-lvm</filename> at boot-time
2068to do that.</para>
2069</answer>
2070</qandaentry>
2071<qandaentry>
2072<question><para>Q: What if I don't use LILO? What if I
2073                use GRUB?</para></question>
2074<answer>
2075<para>A: GRUB is supported by Mondo.</para>
2076</answer>
2077</qandaentry>
2078<qandaentry>
2079<question><para>Q: I get the error, 'Cannot find
2080                /tmp/dev.0' or 'Cannot mount device 0x0701'; what do I do?</para></question>
2081<answer>
2082        <para>A: Please free up <filename>/dev/loop0</filename> using 'losetup /dev/loop0 -d' to
2083unmount that loop device. If your OS will not let you do that,
2084contact your local support group or Linux vendor.</para>
2085</answer>
2086</qandaentry>
2087<qandaentry>
2088<question><para>Q: Can I create a Mondo CD and then use
2089                it to create an archive of any OS on any PC?</para></question>
2090<answer>
2091<para>A: Not yet. You can use Mondo to backup Linux or
2092Linux/Windows dual boot. One day, Mondo will let you backup
2093partitions it can't read or write, by treating each partition as
2094one long file to be backed up. This file will be chopped,
2095compressed and archived like any other big file.</para>
2096</answer>
2097</qandaentry>
2098<qandaentry>
2099<question><para>Q: Why do you insist on putting floppy
2100disk images on Mondo CD? They waste space and I never use them. The
2101CD works just fine, so why keep the floppy disk images?</para>
2102</question>
2103<answer>
2104<para>A: Because. It helped us in the past. If you
2105really, truly want them gone then please submit a patch to make
2106them optional.</para>
2107</answer>
2108</qandaentry>
2109<qandaentry>
2110<question><para>Q: Why doesn't the Mondo project have a
2111cool-looking animal logo?</para></question>
2112<answer>
2113<para>A: Excellent question! Please submit graphics of candidate
2114        animal logos!</para>
2115        </answer>
2116</qandaentry>
2117<qandaentry>
2118<question><para>Q: Is there a Mondo user 'Code of
2119                Conduct?</para></question>
2120<answer>
2121<para>A: Yes. Read the HOWTO. Submit patches. Recommend realistic
2122improvements. Be courteous to other users on the discussion list.
2123Do not whine.</para>
2124</answer>
2125</qandaentry>
2126</qandaset>
2127</sect1>
2128
2129<sect1 id="faq-booting">
2130<title>Booting and Kernel related Questions</title>
2131<qandaset>
2132<qandaentry>
2133<question><para>Q: When I try to boot from the Mondo CD,
2134it says, "VFS: Unable to mount root fs." I am using an old Debian
2135distro. What do I do?</para></question>
2136<answer>
2137<para>A: Ask Debian's designers why they, unlike every other distro
2138I can find, have included cramfs and other 'goodies' with their
2139kernel. In the meantime, please use '-k FAILSAFE' in your command
2140line when calling Mondo.</para>
2141<para>A: Upgrade to Sarge as it's fairly well supported by Andree Leidenfrost</para>
2142</answer>
2143</qandaentry>
2144<qandaentry>
2145<question><para>Q: When I try to boot from the Mondo CD,
2146it says, "Cannot mount root fs - kernel panic," or something
2147similar. What do I do?</para></question>
2148<answer>
2149<para>A: Recompile your kernel (or use '-k FAILSAFE'). Take a look
2150at <link linkend="overview-sysrq-kernelreq">Linux Kernel support</link> to
2151see what you're kernel must support.</para>
2152</answer>
2153</qandaentry>
2154<qandaentry>
2155<question><para>Q: When I try to boot from the Mondo CD,
2156                it says, "UPGRADE YOUR RAM". What does that mean?</para></question>
2157<answer>
2158<para>A: Recompile your kernel and add Virtual memory file system
2159support. Take a look at <link linkend="overview-sysrq-kernelreq">Linux
2160Kernel support</link> to see what you're kernel must support. (Of
2161course, if your PC has less than 64MB of RAM, you could always...
2162what's the phrase? I know, upgrade your RAM!)</para>
2163</answer>
2164</qandaentry>
2165<qandaentry>
2166<question><para>Q: When I try to boot from the Mondo CD,
2167it says something about not finding my CD-ROM drive and then it
2168blames the kernel. What does that mean?</para></question>
2169<answer>
2170        <para>A: Your kernel must support initrd, loopfs, IDE|SCSI|USB CD-ROM's, and
2171ramdisks. Take a look at <link linkend="overview-sysrq-kernelreq">Linux
2172Kernel support</link> to see what you're kernel must support. If
2173your kernel does not support these things, Mondo will not boot from
2174your CD. However, when running Mindi, you may choose to use _its_
2175kernel instead of your own. In addition, you may boot from floppy
2176disk images instead the CD: copy the disk images from the CD
2177/images directory to floppy disks, using 'dd'. Take a look at
2178<link linkend="copybootdatadisk">Copy boot data
2179disks</link> on how to make those.</para>
2180</answer>
2181</qandaentry>
2182<qandaentry>
2183<question><para>Q: The Mondo CD/floppy takes ages to
2184                boot. How can I speed it up?</para></question>
2185<answer>
2186<para>A: Edit mindi (it's a shell script, btw) and change
2187LILO_OPTIONS="" to LILO_OPTIONS="-c". This enables map compaction
2188in lilo and speeds up booting, for more info see the lilo man
2189page.</para>
2190</answer>
2191</qandaentry>
2192<qandaentry>
2193<question><para>Q: I made a Mondo CD using the failsafe
2194kernel (i.e. I said 'no' when Mondo asked if I wanted to use my own
2195kernel). It still doesn't boot. Help!</para></question>
2196<answer>
2197<para>A: OK, now that is a bug. :-) I included a kernel with Mondo
2198(technically, with Mindi, which Mondo uses) to make sure that users
2199could use Mondo despite flaws in their own kernels. If you are
2200using Mondo/Mindi's kernel but still cannot boot from your Mondo CD
2201then please e-mail the &ML;.</para>
2202</answer>
2203</qandaentry>
2204<qandaentry>
2205<question><para>Q: What if my PC won't boot from a
2206                CD?</para></question>
2207<answer>
2208<para>A: Copy the image files from the CD /images directory, using
2209the dd command. Take a look at
2210<link linkend="copybootdatadisk">Copy boot data
2211disks</link> on how to make those. Then boot from the first
2212floppy; follow it up with the data disks; finally, type 'mount
2213/mnt/cdrom' and then utilize the restore script as usual, e.g.
2214mondorestore.</para>
2215<para>A: You may also want to boot using the network with PXE.
2216        Look at the README.pxe file of mindi to know more details on how.</para>
2217</answer>
2218</qandaentry>
2219<qandaentry>
2220<question><para>Q: But why won't Mondo boot from my CD?
2221It says my kernel is flawed/outdated/ whatever, and when I wrote to
2222the ML, they told me the same thing... but I still don't get it. I
2223mean, my kernel works for everything else. Why not Mondo?</para></question>
2224<answer>
2225<para>A: Because Mondo makes a boot disk using your kernel. I bet
2226your other software doesn't do that. Also, not all kernels are
2227suitable for boot disks. I'm sorry but that's Life. Upgrade your
2228kernel and/or recompile it. Take a look at
2229<link linkend="overview-sysrq-kernelreq">Linux Kernel support</link> to see
2230what you're kernel must support.</para>
2231</answer>
2232</qandaentry>
2233<qandaentry>
2234<question><para>Q: Why do I only need a boot disk if I'm
2235                using a tape drive? Where are the data disks?</para></question>
2236<answer>
2237<para>A: On the tape. :-) The first 32MB of the tape will be set
2238aside for a large tarball containing the data disks, a list of all
2239files backed up, and other sundries. If Mondo and Mindi do their
2240respective jobs then you won't need additional floppies, just the
2241boot floppy and the tape(s).</para>
2242<para>For the moment mondorescue doesn't support OBDR for tapes.
2243        Feel free to produce patches for it :-)</para>
2244</answer>
2245</qandaentry>
2246<qandaentry>
2247<question><para>Q: Why does it say, "Process accounting
2248                FAILED" when I reboot?</para></question>
2249<answer>
2250<para>A: You were using Process Accounting. Red Hat (or whichever
2251distro you are using) does not provide a startup/shutdown script
2252yet. So, when you try to backup the process log, it just grows and
2253grows as Mondo tries to back it up. Mondo doesn't back it up
2254anymore and that's why. The unfortunate side-effect is... well,
2255what you see on your screen. Type 'touch /var/log/pacct' and then
2256'paccton' to fix the error message.</para>
2257</answer>
2258</qandaentry>
2259<qandaentry>
2260<question><para>Q: Why does it say,
2261&amp;#8220;request_module[block-major-1]: Root fs not mounted VFS:
2262Cannot open root device "100" or 01:00 Please append a correct
2263"root=" boot option kernel panic: VFS: Unable to mount root fs on
226401:00&amp;#8221; when i boot from the CD?</para></question>
2265<answer>
2266<para>A: Recompile your kernel and add initrd support. Take a look
2267at <link linkend="overview-sysrq-kernelreq">Linux Kernel support</link>to
2268see what you're kernel must support.</para>
2269</answer>
2270</qandaentry>
2271<qandaentry>
2272<question>
2273<para><anchor id="COPYBOOTDATADISK"/>Q: How do i copy boot+data
2274        disk images to physical floppy disks ?</para>
2275</question>
2276<answer>
2277<para>A: The images are in /root/images/mindi (even if they are
2278created by Mondo) and also in the 'images' directory on the first
2279CD of your backup set, if you have backed up to CD. You can copy
2280the images to disk as follows:-</para>
2281<informaltable><tgroup cols="1"><tbody>
2282<row>
2283<entry>
2284        Put an empty Boot floppy
2285        bash# fdformat /dev/fd0u1722
2286        bash# dd if=/root/images/mindi/mindi-boot.1722.img of=/dev/fd0u1722
2287        Put an empty Data floppy
2288        bash# fdformat /dev/fd0
2289        bash# dd if=/root/images/mindi/mindi-data-N.img of=/dev/fd0
2290        Replace N with 1, 2, etc.
2291
2292</entry>
2293</row>
2294</tbody></tgroup></informaltable>
2295</answer>
2296</qandaentry>
2297
2298<qandaentry>
2299<question><para id="TAPENICE">Q: My tape drive
2300doesn't play nicely with Mondo at boot-time. What do I do?</para></question>
2301<answer><para>A: Play with 'mt'. Use its setblksize and
2302defblksize switches to reconfigure your tape drive if necessary.
2303Some tape drives just are painful. If yours is one of
2304them then God help you. Mondo can handle any tape drive whose drive
2305and firmware can handle fopen(), fwrite(), fread() and fclose().
2306Mondo uses standard C libraries to talk to your tape streamer. If
2307your tape streamer can't handle that then you had better call a
2308priest. Either that or ask for a refund.
2309</para>
2310</answer>
2311</qandaentry>
2312</qandaset>
2313</sect1>
2314
2315<sect1 id="faq-install">
2316<title>Installation related Questions</title>
2317<qandaset>
2318<qandaentry>
2319<question><para>Q: Why do I get, "newt.h not found," or
2320"popt.h not found," several times when I try to install
2321Mondo?</para></question>
2322<answer>
2323<para>A: You have not installed libnewt and/or libnewt-devel.
2324Please do so. Check <ulink url="linuxpackages.html">Related Linux
2325Packages</ulink> to see what Mondo requires and where you can get
2326tarballs and RPM's. Make sure you are using the right version of
2327newt/libnewt. Read the error messages carefully.</para>
2328</answer>
2329</qandaentry>
2330<qandaentry>
2331<question><para>Q: Newt won't compile when I try. What's
2332                the problem?</para></question>
2333<answer>
2334<para>A: You are probably missing popt.h, which newt needs to
2335compile, it can be found in the 'popt' package. Check your
2336distribution and see if they have popt, if not check
2337<ulink url="linuxpackages.html">Related Linux Packages</ulink> to
2338see where you can get it.</para>
2339</answer>
2340</qandaentry>
2341<qandaentry>
2342<question><para>Q: I've just used up 6 CD-R, only to
2343                find that Mondo won't boot!</para></question>
2344<answer>
2345<para>A: You should have used CD-RW. ;) In the HOWTO, it gives
2346instructions on how to create a test CD (one, not six).</para>
2347</answer>
2348</qandaentry>
2349<qandaentry>
2350<question>
2351<para id="PACKREQ">Q: Lots of packages,
2352required by Mondo, are missing from my system. What do I do?</para>
2353</question>
2354<answer>
2355<para>
2356A: Install them. :) If you are using RPM or deb
2357then you'll be told which packages you need. Mondo offers a lot of
2358those packages on its
2359<ulink url="http://www.mondorescue.org/download/download.html">Download</ulink>
2360web page.</para>
2361</answer>
2362</qandaentry>
2363</qandaset>
2364</sect1>
2365
2366<sect1 id="faq-hardware">
2367<title>Hardware related Questions</title>
2368<qandaset>
2369<qandaentry>
2370        <question><para>Q: Can Mondo handle CD-RW?</para></question>
2371        <answer>
2372<para>A: Yes. Use '-Ow &lt;speed&gt; &lt;device&gt;' to make it
2373work.</para>
2374</answer>
2375</qandaentry>
2376<qandaentry>
2377<question><para>Q: Does Mondo support tape
2378                drives?</para></question>
2379<answer>
2380<para>A: Yes. See above.</para>
2381</answer>
2382</qandaentry>
2383<qandaentry>
2384<question><para>Q: Does Mondo support my tape
2385                drive?</para></question>
2386<answer>
2387<para>A: If your tape drive and its firmware and the kernel-level
2388driver support fopen(), fread(), fwrite() and fclose() - standard C
2389library calls - then yes, Mondo should support it. If not, well,
2390you need a refund. :) Mondo plays nicely with any sane, sensible
2391drives. That's most of them, by the way. :) If your drive doesn't
2392play nicely with Mondo then you may try tinkering with setblksize
2393and defblksize using 'mt', or tweaking Mondo's block size by
2394recompiling it with make INTTAPE=4096 or INTTAPE=8192 or something.
2395Other than that, you need a priest or a refund.</para>
2396</answer>
2397</qandaentry>
2398<qandaentry>
2399<question><para>Q: How do I copy the floppy images from
2400                the CD to floppy disks?</para></question>
2401<answer>
2402<para>A: Mount the CD-ROM, e.g. at /mnt/cdrom. Insert a blank
2403floppy. Type:</para>
2404<para></para>
2405<informaltable><tgroup cols="1"><tbody>
2406<row>
2407<entry>
2408
2409        bash# cd /mnt/cdrom/images
2410        bash# dd if=mindi-boot.1722.img of=/dev/fd0u1722
2411
2412</entry>
2413</row>
2414</tbody></tgroup></informaltable>
2415
2416<para>Insert another blank floppy and type:</para>
2417<para></para>
2418<informaltable><tgroup cols="1"><tbody>
2419<row>
2420<entry>
2421
2422bash# dd if=mindi-data-1.img of=/dev/fd0u1722
2423
2424</entry>
2425</row>
2426</tbody></tgroup></informaltable>
2427
2428<para>Do the above for each 'mindi-data' disk image.</para>
2429</answer>
2430</qandaentry>
2431<qandaentry>
2432<question><para>Q: Sometimes, my laptop won't mount
2433                Mondo CD properly, or something. Umm...</para></question>
2434<answer>
2435<para>A: Please insert the CD, close the CD-ROM tray, wait a few
2436seconds and then press Enter to acknowledge insertion of the next
2437CD. Your laptop is on crack and is sucking a little too hard on the
2438pipe.</para>
2439</answer>
2440</qandaentry>
2441<qandaentry>
2442        <question><para>Q: Does Mondo support Hardware RAID?</para></question>
2443        <answer>
2444<para>A: Yes. You may backup and restore RAID systems. You may also
2445backup a non-RAID system and restore as RAID (or vice versa) by
2446using the mountlist editor to edit your RAID and non-RAID
2447partitions and their settings. Mondo will do the partitioning and
2448formatting for you.</para>
2449<para>Tested Raid controllers includes all those showind only classical devices
2450        such as /dev/sdx, and SmartArray cciss controllers.</para>
2451</answer>
2452</qandaentry>
2453<qandaentry>
2454<question><para>Q: Where is my CD burner, in SCSI
2455                terms?</para></question>
2456<answer>
2457<para>A: Type:</para>
2458<para></para>
2459<informaltable><tgroup cols="1"><tbody>
2460<row>
2461<entry>
2462
2463bash# cdrecord -scanbus
2464
2465</entry>
2466</row>
2467</tbody></tgroup></informaltable>
2468
2469<para>Find your CD burner's device# (e.g. '0,0,0'). Call Mondo with
2470the switch '-Oc &lt;speed&gt;' -d '&lt;device&gt;'. Or, if you feel
2471lucky, just use '-Oc 2'; Mondo will (a) assume you want to write at
24724x to a CD-R and (b) will do its best to find your CD burner.</para>
2473</answer>
2474</qandaentry>
2475<qandaentry>
2476        <question><para>Q: Can Mondo handle SCSI devices?</para></question>
2477        <answer>
2478<para>A: Mondo should be able to handle almost any hardware. So
2479long as your kernel and modules support it, Mindi will support it
2480and therefore so will Mondo.</para>
2481</answer>
2482</qandaentry>
2483</qandaset>
2484</sect1>
2485
2486<sect1 id="faq-backup">
2487<title>Backup related Questions</title>
2488
2489<qandaset>
2490<qandaentry>
2491<question><para id="MMKM">Q: Mondo says, 'Cannot
2492                run mindi --makemountlist' and aborts. What do I do?</para></question>
2493<answer>
2494        <para>
2495                A: Look at <filename>/var/log/mindi.log</filename> and see what it
2496says. Also, try typing 'mindi --makemountlist /tmp/mountlist.txt'
2497to see what Mindi says. Send the log to the &ML; if you get stuck.
2498</para>
2499</answer>
2500</qandaentry>
2501<qandaentry>
2502<question><para>Q: Can Mondo burn CD as they are
2503                created?</para></question>
2504<answer>
2505<para>A: Yes. Use the '-Oc &lt;speed&gt;' switch. Use a negative
2506number for a dummy burn.</para>
2507</answer>
2508</qandaentry>
2509<qandaentry>
2510<question><para>Q: Mondo failed to burn my CD. It said
2511something like, "Error CDB A1 01 02 53 ..." and so on. What does
2512that mean?</para></question>
2513<answer>
2514<para>A: Cdrecord reported some serious errors while trying to burn
2515your CD. Check your CD burner, your CD-R and your kernel.</para>
2516</answer>
2517</qandaentry>
2518<qandaentry>
2519<question><para>Q: May I backup my system with one
2520                partition layout and restore with another?</para></question>
2521<answer>
2522<para>A: Yes. Boot in Interactive Mode and edit the mountlist using
2523the snazzy new mountlist editor. Mondo can now edit your RAID
2524partitions for you. Just open /dev/md0 (or whatever) and select
2525"RAID.." to start. Or, to add a RAID device:</para>
2526<itemizedlist>
2527<listitem>
2528<para>Add two or more partitions, of type and mountpoint
2529'raid'</para>
2530</listitem>
2531<listitem>
2532<para>Add device '/dev/md0' and click OK</para>
2533</listitem>
2534<listitem>
2535<para>Follow the prompts and your own common-sense :)</para>
2536</listitem>
2537</itemizedlist>
2538</answer>
2539</qandaentry>
2540<qandaentry>
2541<question><para>Q: Why does Mondo need so much free disk
2542                space?</para></question>
2543<answer>
2544        <para>A: Because it need space to create the archive files with afio, then
2545                again space to create the ISO images that you'll be able to burn.
2546</para>
2547</answer>
2548</qandaentry>
2549<qandaentry>
2550<question><para>Q: I am trying to do something clever,
2551e.g. write my ISO's to an NFS mount, and I get some weird error
2552messages. What do I do?</para></question>
2553<answer>
2554<para>A: Well, (a) use '-T /tmp' or '-T /home' or something in your
2555        call to Mondo. Oh, and (b) check the <filename>/etc/exports</filename> file on your NFS server
2556        and verify the exported filesystem is writable for the client, and relaunch exportfs -a.
2557</para>
2558</answer>
2559</qandaentry>
2560<qandaentry>
2561<question><para>Q: Can Mondo backup to data files on
2562                another partition, e.g. an NFS mount?</para></question>
2563<answer>
2564<para>A: Yes. Just backup as usual but add '-d /mnt/nfs' or
2565wherever your partition is mounted; don't use '-Oc' or '-Ot' at
2566all; just '-Oi -d /root'. Then, after booting from the floppies
2567which Mondo generates, you need to type 'ISO' at the
2568console.</para>
2569</answer>
2570</qandaentry>
2571<qandaentry>
2572<question><para>Q: Can Mondo backup _to_ an NFS
2573                partition, i.e. backup over a network? How about restoring?</para></question>
2574<answer>
2575<para>A: Yes. Use '-On &lt;mount&gt; &lt;directory&gt;'. Example:
2576</para>
2577<informaltable><tgroup cols="1"><tbody>
2578<row>
2579<entry>
2580
2581bash# mondoarchive -On 192.168.1.3:/home/nfs
2582
2583</entry>
2584</row>
2585</tbody></tgroup></informaltable>
2586
2587</answer>
2588</qandaentry>
2589<qandaentry>
2590<question><para>Q: Does Mondo handle System or Hidden
2591                attributes when archiving Dos/Win files?</para></question>
2592<answer>
2593<para>A: No. It probably never will, either. Sorry.</para>
2594</answer>
2595</qandaentry>
2596</qandaset>
2597</sect1>
2598
2599<sect1 id="faq-compare">
2600<title>Compare related Questions</title>
2601
2602<qandaset>
2603<qandaentry>
2604<question><para>Q: When I compare my archives to my file
2605system, Mondo tells me there are differences or errors. Are the
2606archives bad?</para></question>
2607<answer>
2608        <para>A: Look at <filename>/tmp/changed.files</filename>; if the files are logfiles,
2609temp files or files which you think you may have changed recently
2610then the archives are simply out of date, albeit only by a few
2611minutes. Not a problem. However, if lots of files in /usr have
2612changed or if you get lots of errors then perhaps your CD, your
2613tapes or even your hardware could be to blame. Check your CD writer
2614or tape streamer.</para>
2615<para>Also, don't forget to review <filename>/var/log/mondo-archive.log</filename> for
2616more information.</para>
2617</answer>
2618</qandaentry>
2619</qandaset>
2620</sect1>
2621
2622<sect1 id="faq-restore">
2623<title>Restore related Questions</title>
2624<qandaset>
2625<qandaentry>
2626<question><para>Q: Can Mondo help me
2627                move/resize/re-allocate my partitions?</para></question>
2628<answer>
2629<para>A: Yes. Just backup your system in Interactive Mode using
2630Mondo. Edit the mountlist when prompted.</para>
2631</answer>
2632</qandaentry>
2633<qandaentry>
2634<question><para>Q: My zip drive is a SCSI drive. When I
2635restore, Mondo craps out, saying it can't mount the drive (because
2636there is no disk in it). What do I do?</para></question>
2637<answer>
2638<para>A: Restore in Interactive Mode. Delete the SCSI drive from
2639the mountlist before you restore. Then Mondo won't try to partition
2640or format it. Next time you backup, use -E /dev/sdd (or whatever
2641your zip drive is). The /dev entry will be excluded from the
2642mountlist but not from the filelist. So, when you restore, you
2643won't accidentally reformat your zip disk. However, after
2644restoring, you will find that /dev/sdd (the _file_) will still be
2645present in your /dev directory. Cool, eh?</para>
2646</answer>
2647</qandaentry>
2648<qandaentry>
2649<question><para>Q: I received a message like, 'Fileset
2650                NNN failed' during restore. What does it mean.</para></question>
2651<answer>
2652<para>A: It usually means either you had a very large (&gt;2GB)
2653file which was not archived owing to a flaw in your distro or your
2654filesystem has changed in relation to the backup.</para>
2655</answer>
2656</qandaentry>
2657<qandaentry>
2658<question><para>Q: Why does my ext3 partition have less
2659                space free than when I backed it up?</para></question>
2660<answer>
2661<para>A: Mondo creates a 10MB journal file area. Your journal was
2662probably smaller than that, hence the difference.</para>
2663</answer>
2664</qandaentry>
2665<qandaentry>
2666<question><para id="SEGF">Q: When I restore after
2667booting from the CD/floppies, I sometimes get errors like, "Running
2668out of memory" or "Segmentation fault". What is going on?</para></question>
2669<answer><para>A: It sounds as if you are running out of disk
2670space, probably ram disk space. Type 'df -m' to see which
2671partitions are running low on space. Please send as much
2672information as you can to the &ML;. This problem is
2673believed to have been fixed in 1.63 and 1.71.</para>
2674</answer>
2675</qandaentry>
2676<qandaentry>
2677<question>
2678<para id="LVM"/>Q: I can't nuke-restore my LVM or RAID or
2679LVM-on-RAID setup. I have to do it manually. What now?</para></question>
2680<answer>
2681<para>A: You said it yourself. You have to do it manually. :) Sorry
2682but that's about it. At least you have all the tools to do it. I
2683assume you know how. If you don't, look at i-want-my-lvm (a script
2684on the ramdisk) if you're using LVM. It should give you a few
2685clues. RAID is harder but in general Mondo's RAID support is good.
2686After you've prepped and formatted your drives, run mondorestore
2687again but say 'no' when asked if you want Mondo to prep or format
2688your drives.</para>
2689</answer>
2690</qandaentry>
2691</qandaset>
2692</sect1>
2693</chapter>
2694
2695&gfdl;
2696
2697</book>
Note: See TracBrowser for help on using the repository browser.