You may lose some functionality as some other scripts take advantage of the new options of probepart.backi wrote: Did copy over pobepart from Tahrpup 6.0.5 ....
You may want instead to use the patch bellow (with the latest probepart) that should detect not partitioned disks
Code: Select all
--- a/sbin/probepart
+++ b/sbin/probepart
@@ -80,8 +80,11 @@
fi
fi
+# Find partitions in DOS disks without partition table
+EXTRAPART="`blkid | cut -f1 -d ':'| cut -f3 -d '/' | grep sd | grep -v [0-9]`"
+
PARTNAMES="`echo "$PARTITIONS" | cut -f 2 -d ' '`" #120602
-ALLDEVS=$(echo -e "${PARTNAMES}\n${OPTICALDRVS}" | sort -u)
+ALLDEVS=$(echo -e "${PARTNAMES}\n${EXTRAPART}\n${OPTICALDRVS}" | sort -u)
#==========================================================================
Regarding adding a partition table without destroying the data on the disk, I have no idea. What google says about it?