• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:disk

17 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 # Requires: coreutils (mktemp, dd) and 64M of disk space in /tmp (temp dd disk)
23 # - Initialize a new GPT table
24 # - Create a single Linux partition
25 # - Change name of partition
26 # - Change type of partition
27 # - Backup to file the GPT table
28 # - Delete the single partition
29 # - Restore from backup file the GPT table
30 # - Wipe the GPT table
33 # Try to generate a wrong GPT table to detect problems (test --verify)
47 # temp disk for testing gdisk
57 TEST_PART_NEWNAME=$(tr -dc "[:alpha:]" < /dev/urandom | head -c 8)
84 partition=$($GDISK_BIN -l $TEMP_DISK | tail -n 1)
85 echo $partition | grep -q "$1[[:space:]]$2$"
87 if [ $? -eq 0 ]
98 # Get GUID of disk
101 DISK_GUID=$($GDISK_BIN -l $TEMP_DISK | grep "^Disk identifier (GUID):" | awk '{print $4}')
120 if [ $ret -ne 0 ]
127 $SGDISK_BIN $TEMP_DISK -${OPT_CLEAR}
130 if [ $ret -ne 0 ]
164 …$SGDISK_BIN $TEMP_DISK -${OPT_NEW} 1 -${OPT_CHANGE_NAME} 1:"${TEST_PART_DEFAULT_NAME}" -${OPT_CHAN…
188 $SGDISK_BIN $TEMP_DISK -${OPT_CHANGE_NAME} 1:${TEST_PART_NEWNAME}
192 …YPE" "$TEST_PART_NEWNAME" "Change partition 1 name ($TEST_PART_DEFAULT_NAME -> $TEST_PART_NEWNAME)"
212 $SGDISK_BIN $TEMP_DISK -${OPT_CHANGE_TYPE} 1:${TEST_PART_NEWTYPE}
216 …verify_part "$TEST_PART_NEWTYPE" "$TEST_PART_NEWNAME" "Change partition 1 type ($TEST_PART_TYPE ->…
236 $SGDISK_BIN $TEMP_DISK -${OPT_BACKUP} ${GPT_BACKUP_FILENAME}
241 if [ -s $GPT_BACKUP_FILENAME ]
265 $SGDISK_BIN $TEMP_DISK -${OPT_DELETE} 1
295 # Change UID of disk
299 # get UID of disk before changing it
315 $SGDISK_BIN $TEMP_DISK -U=R
325 pretty_print "SUCCESS" "GUID of disk has been sucessfully changed"
327 pretty_print "FAILED" "GUID of disk is the same as the previous one"
347 $SGDISK_BIN $TEMP_DISK -${OPT_ZAP}
373 if [ -s $TEMP_DISK ]
375 pretty_print "SUCCESS" "Temp disk sucessfully created"
377 pretty_print "FAILED" "Unable to create temp disk !"
400 rm -f $TEMP_DISK $GPT_BACKUP_FILENAME