Changeset 2351 in MondoRescue for branches/2.2.10/mondo/src/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Aug 28, 2009, 2:41:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondorestore/mondo-rstr-tools.c
r2338 r2351 298 298 299 299 mr_strcat(mount_isodir_command, " -o ro %s", bkpinfo->isodir); 300 run_program_and_log_output("df -m", FALSE); 301 log_msg(1, 302 "The 'mount' command is '%s'. PLEASE report this command to be if you have problems, ok?", 303 mount_isodir_command); 300 run_program_and_log_output("df -m -P", FALSE); 301 log_msg(1, "The 'mount' command is '%s'. PLEASE report this command to be if you have problems, ok?", mount_isodir_command); 304 302 if (run_program_and_log_output(mount_isodir_command, FALSE)) { 305 303 popup_and_OK … … 472 470 * @return The number of errors encountered (0 for success). 473 471 */ 474 int mount_all_devices(struct mountlist_itself 475 *p_external_copy_of_mountlist, bool writeable) 472 int mount_all_devices(struct mountlist_itself *p_external_copy_of_mountlist, bool writeable) 476 473 { 477 474 int retval = 0, lino, res; … … 488 485 489 486 mvaddstr_and_log_it(g_currentY, 0, "Mounting devices "); 490 open_progress_form("Mounting devices", 491 "I am now mounting all the drives.", 492 "This should not take long.", 493 "", mountlist->entries); 487 open_progress_form("Mounting devices", "I am now mounting all the drives.", "This should not take long.", "", mountlist->entries); 494 488 495 489 mr_asprintf(these_failed, ""); 496 490 for (lino = 0; lino < mountlist->entries; lino++) { 497 491 if (!strcmp(mountlist->el[lino].device, "/proc")) { 498 log_msg(1, 499 "Again with the /proc - why is this in your mountlist?"); 492 log_msg(1, "Again with the /proc - why is this in your mountlist?"); 500 493 } else if (is_this_device_mounted(mountlist->el[lino].device)) { 501 494 log_to_screen("%s is already mounted", mountlist->el[lino].device); … … 519 512 if (retval) { 520 513 if (g_partition_table_locked_up > 0) { 521 log_to_screen 522 ("fdisk's ictol() call to refresh its copy of the partition table causes the kernel to"); 523 log_to_screen 524 ("lock up the partition table. You might have to reboot and use Interactive Mode to"); 525 log_to_screen 526 ("format and restore *without* partitioning first. Sorry for the inconvenience."); 514 log_to_screen("fdisk's ictol() call to refresh its copy of the partition table causes the kernel to"); 515 log_to_screen("lock up the partition table. You might have to reboot and use Interactive Mode to"); 516 log_to_screen("format and restore *without* partitioning first. Sorry for the inconvenience."); 527 517 } 528 518 mr_asprintf(tmp, "Could not mount device(s) %s- shall I abort?", these_failed); … … 530 520 if (!ask_me_yes_or_no(tmp)) { 531 521 retval = 0; 532 log_to_screen 533 ("Continuing, although some device(s) failed to be mounted"); 522 log_to_screen("Continuing, although some device(s) failed to be mounted"); 534 523 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 535 524 } else { 536 525 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 537 log_to_screen 538 ("Unable to mount some or all of your partitions."); 526 log_to_screen("Unable to mount some or all of your partitions."); 539 527 } 540 528 mr_free(tmp); … … 548 536 (void)mount_device("/proc","/proc","proc",TRUE); 549 537 (void)mount_device("/sys","/sys","sysfs",TRUE); 550 run_program_and_log_output("df -m ", 3);538 run_program_and_log_output("df -m -P", 3); 551 539 paranoid_free(mountlist); 552 540 return (retval); … … 2036 2024 sort_mountlist_by_mountpoint(mountlist, 0); 2037 2025 2038 run_program_and_log_output("df -m ", 3);2026 run_program_and_log_output("df -m -P", 3); 2039 2027 mvaddstr_and_log_it(g_currentY, 0, "Unmounting devices "); 2040 2028 open_progress_form("Unmounting devices",
Note:
See TracChangeset
for help on using the changeset viewer.