Changeset 3086 in MondoRescue
- Timestamp:
- Mar 8, 2013, 6:29:36 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/mindi
r3084 r3086 1571 1571 if [ $? -ne 0 ]; then 1572 1572 LogAll "ERROR: Unable to access $USBDEVICE" 1573 LogAll " Make sure your USB device is plug ed in"1573 LogAll " Make sure your USB device is plugged in" 1574 1574 MindiExit -1 1575 1575 fi … … 1606 1606 if [ $? -ne 0 ]; then 1607 1607 LogAll "ERROR: Unable to create a vfat Filesystem on $USBDEVICE" 1608 LogAll " Make sure your USB device is plug ed in"1608 LogAll " Make sure your USB device is plugged in" 1609 1609 $FDISK -l $USBDEVICE 2>&1 | tee -a $LOGFILE 1610 1610 MindiExit -1 … … 1626 1626 umount $USBPART 2>> $LOGFILE 1>> $LOGFILE 1627 1627 echo -en "." 1628 # Some distro have a dmsetup conf at that point so removing it Cf: http://trac.mondorescue.org/ticket/651 1629 if [ "`which dmsetup`" != "" ]; then 1630 block_id="`echo $USBPART | sed 's|/dev/||g'`" 1631 if [[ "`dmsetup ls | awk '{print $1}' | grep $block_id`" != "" ]]; then 1632 LogFile "INFO: Removing $block_id from device mapper." 1633 sleep 1 1634 dmsetup remove $block_id 1635 fi 1636 fi 1637 echo -en "." 1628 1638 LogFile "INFO: Creating a vfat filesystem on $USBPART" 1629 1639 mkdosfs -F 32 $USBPART 2>&1 >> $LOGFILE 1630 1640 if [ $? -ne 0 ]; then 1631 1641 LogAll "ERROR: Unable to create a vfat filesystem on $USBPART" 1632 LogAll " Make sure your USB device is plug ed in and partitioned ($USBPART must exist on it)"1642 LogAll " Make sure your USB device is plugged in and partitioned ($USBPART must exist on it)" 1633 1643 $FDISK -l $USBDEVICE 2>&1 | tee -a $LOGFILE 1634 1644 MindiExit -1 … … 1639 1649 if [ $? -ne 0 ]; then 1640 1650 LogAll "ERROR: Unable to mount $USBPART on $MINDI_TMP/usb" 1641 LogAll " Make sure your USB device is plug ed in, partitioned and formated ($USBPART must exist on it)"1651 LogAll " Make sure your USB device is plugged in, partitioned and formated ($USBPART must exist on it)" 1642 1652 $FDISK -l $USBDEVICE 2>&1 | tee -a $LOGFILE 1643 1653 MindiExit -1
Note:
See TracChangeset
for help on using the changeset viewer.