Displaying 1 result from an estimated 1 matches for "mntptold".
Did you mean:
mntold
2004 Feb 14
0
Memdisk/floppy image question
...MAGE=dosimage.img
OLDIMAGE=oldimage.img # Name of an existing dos image
SIZEMB=8
MKDOSFS=mkdosfs # binary for mkdosfs
SIZEKB=`echo "$SIZEMB 1024 * p" | dc`
NUMSECT=`echo "$SIZEKB 2 * p" | dc`
MNTNEW=`mktemp -d /tmp/mntptnew.XXXXXX` # Create a mountpoint
MNTOLD=`mktemp -d /tmp/mntptold.XXXXXX` # Name of an existing mountpoint
# Create the filesystem
OUTLINE=`$MKDOSFS -v -C $NEWIMAGE $SIZEKB | grep heads`
HEADS=`echo $OUTLINE | cut -f3 -d' '`
SECTORS=`echo $OUTLINE | cut -f6 -d' '`
CYLINDERS=`echo "$NUMSECT $HEADS $SECTORS * / p" | dc`
# Copy contents fr...