- Timestamp:
- Dec 1, 2014, 11:35:37 PM (10 years ago)
- Location:
- branches/3.2/mondo/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mondo/src/common/libmondo-devices.c
r3309 r3318 2666 2666 mr_free(tmp); 2667 2667 // NTFS 2668 strcpy(tmp1, call_program_and_get_last_line_of_output("parted2fdisk -l | grep -i ntfs | awk '{ print $1};' | tr -s '\\n' ' ' | awk '{ print $0};'"));2668 strcpy(tmp1, call_program_and_get_last_line_of_output("parted2fdisk -l 2>/dev/null | grep -i ntfs | awk '{ print $1};' | tr -s '\\n' ' ' | awk '{ print $0};'")); 2669 2669 if (strlen(tmp1) > 2) { 2670 2670 if (!popup_and_get_string("NTFS partitions", "Please enter/confirm the NTFS partitions you wish to backup as well.", tmp1, MAX_STR_LEN / 4)) { … … 3274 3274 malloc_string(fdisk); 3275 3275 sprintf(fdisk, "/sbin/parted2fdisk"); 3276 sprintf(command, "%s -l %s | grep 'EFI GPT'", fdisk, drive);3276 sprintf(command, "%s -l %s 2>/dev/null | grep 'EFI GPT'", fdisk, drive); 3277 3277 mr_asprintf(tmp, "%s", call_program_and_get_last_line_of_output(command)); 3278 3278 if (strstr(tmp, "GPT") == NULL) { -
branches/3.2/mondo/src/common/libmondo-tools.c
r3292 r3318 363 363 assert(bkpinfo != NULL); 364 364 365 bkpinfo->optimal_set_size = (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type) ? 16 : 16) * 1024 ;365 bkpinfo->optimal_set_size = (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type) ? 16 : 16) * 1024L; 366 366 367 367 log_msg(1, "Post-param"); … … 803 803 } 804 804 strcpy(bkpinfo->prefix, STD_PREFIX); 805 bkpinfo->optimal_set_size = 0 ;805 bkpinfo->optimal_set_size = 0L; 806 806 bkpinfo->backup_media_type = none; 807 807 bkpinfo->make_filelist = TRUE; // unless -J supplied to mondoarchive -
branches/3.2/mondo/src/restore-scripts/mondo/format-and-kludge-vfat
r2186 r3318 28 28 device=$1 29 29 drive=$2 30 ftype=`parted2fdisk -l $drive | grep $device | tr '*' ' ' | tr -s '\t' ' ' | cut -d' ' -f5`30 ftype=`parted2fdisk -l $drive 2>/dev/null | grep $device | tr '*' ' ' | tr -s '\t' ' ' | cut -d' ' -f5` 31 31 case $ftype in 32 32 # "b" | "c") -
branches/3.2/mondo/src/restore-scripts/mondo/grub-MR
r3047 r3318 169 169 line=`grep $base /proc/mdstat | head -n1` 170 170 echo "mbrdev was $mbrdev" 2>&1 | tee -a $LOGFILE 171 mbrdev=`parted2fdisk -l | grep /dev/ | head -n1 | tr ':' ' ' | cut -d' ' -f2`171 mbrdev=`parted2fdisk -l 2>/dev/null | grep /dev/ | head -n1 | tr ':' ' ' | cut -d' ' -f2` 172 172 echo "mbrdev is $mbrdev" 2>&1 | tee -a $LOGFILE 173 173 partno="0"; # cheating - FIXME -
branches/3.2/mondo/src/restore-scripts/mondo/make-me-bootable
r3071 r3318 17 17 dummy="$3" 18 18 19 activepart=`parted2fdisk -l $drivetouse | tr -s '\t' ' ' | grep "$drivetouse" | grep '*' | cut -d' ' -f1`19 activepart=`parted2fdisk -l $drivetouse 2>/dev/null | tr -s '\t' ' ' | grep "$drivetouse" | grep '*' | cut -d' ' -f1` 20 20 21 21 for i in `cat $1 | tr -s '\t' ' ' | cut -d' ' -f1 | grep -vE "/dev/fd|none|#"` ; do
Note:
See TracChangeset
for help on using the changeset viewer.