Opened 9 years ago

Closed 8 years ago

#433 closed defect (fixed)

mondorestore fails to locate config/archive files on an external hard disk

Reported by: jgsylvester Owned by: bruno
Priority: normal Milestone: 2.2.9.7
Component: mondo Version: 2.2.9.4
Severity: normal Keywords:
Cc:

Description

When restoring archives (ISO files) from an external hard disk, mondorestore fails to find the config/archive files located on the device and directory that the user has input as to where the archive files are located. This generates a fatal error:"Could not find config file/archives. Aborting.". This error occurs even after a fix for Bug #432 has been applied (That bug caused mondorestore to fail to mount external hard disk device correctly). In this sitiution, the PC has been booted from either a Mondorescue CD or the ISO file-#1 generated from the building of the archive.

In looking at the code, mondoresore has tried a Plan A and Plan B on locating the config/archive files in mount_media(), but it fails to look in the directory (path) on /tmp/isodir that the user has input as to where the archive files are.

Attachments (1)

mondorestore.after.log.tar.gz (12.1 KB) - added by jgsylvester 9 years ago.
Compressed mondorestore.log showing errors received

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by jgsylvester

Compressed mondorestore.log showing errors received

comment:1 Changed 9 years ago by jgsylvester

The following changes have been tested on my system running Ubuntu Lucid 10.04. I am not equipped to test other configurations:

  1. From Bug 432, file src/mondorestore/mondo-rstr-tools.c, function iso_fiddly_bits(), add to line 315:

/* Need to mount device to /tmp/isodir first */

strcpy(bkpinfo->isodir, "/tmp/isodir");

  1. From Bug432, file src/mondorestore/mondo-rstr-tools.c, function iso_fiddly_bits(), change line 317:

mr_strcat(mount_isodir_command, " -o ro %s", bkpinfo->isodir);

to

mr_strcat(mount_isodir_command, " -o rw %s", bkpinfo->isodir);

(change read-only (ro) to read-write (rw). This change is needed to prevent segmentation fault on subsequent launching of mondorestore. I needed to explicitly specify "Read-write" because on my system, leaving out "-o ro" was not the same as "-o rw" as the man page would lead you to believe.

  1. file src/mondorestore/mondo-rstr-tools.c, function mount_media, add to line 599:

char *iso_path = NULL;

malloc_string(iso_path);

  1. file src/mondorestore/mondo-rstr-tools.c, function mount_media, add to line 642:

if (bkpinfo->disaster_recovery) {

read_cfg_var(g_mondo_cfg_file, "isodir", iso_path);

strcpy( bkpinfo->isodir, "/tmp/isodir" );

mr_strcat( bkpinfo->isodir, iso_path );

}

comment:2 Changed 9 years ago by bruno

  • Milestone changed from 2.2.9.5 to 2.2.9.6

comment:3 Changed 9 years ago by bruno

  • Status changed from new to assigned

comment:4 Changed 8 years ago by bruno

  • Milestone changed from 2.2.9.6 to 2.2.9.7

1/ Can you mount manually your HDD in that format in ro mode under Linux ? I'm still very reluctant to mount the ISO repo rw as there are some problems with mondo removing some images in some cases. Can you change the format of your external HDD to have it mount ro ?

2/ Rev [2769] should provide a proper fix for the rest of the problem. I'm regenerating ubuntu 10.04 packages for you to test right now. (Under ftp://ftp.mondorscue.org/test/ubuntu/10.04)

comment:5 Changed 8 years ago by bruno

  • Resolution set to fixed
  • Status changed from assigned to closed

Considering it fixed for now with upcoming 2.2.9.7 this week-end. Please reopen if it's not the case.

Note: See TracTickets for help on using tickets.