Lines Matching refs:disk

35 disk=gpt.disk
75 silence dd conv=notrunc msgfmt=quiet if=/dev/zero of="$disk" "$@"
79 rm -f "$disk"
85 silence gpt create "$disk"
86 match "$(partaddmsg 1 34 1024)" gpt add -t efi -s 1024 "$disk"
87 match "$(partaddmsg 2 1058 9150)" gpt add "$disk"
92 file "$src/gpt.2part.show.normal" gpt show "$disk"
93 file "$src/gpt.2part.show.uuid" gpt show -u "$disk"
97 echo "^$disk: Partition $1 added: $uuid $2 $3\$"
101 echo "^$disk: Partition $1 resized: $2 $3\$"
105 echo "^$disk: Partition $1 removed\$"
109 echo "^$disk: Partition $1 label changed\$"
113 echo "^$disk: Partition $1 marked as bootable\$"
117 echo "^$disk: Recovered $1 GPT [a-z]* from $2\$"
121 echo -n "^gpt: $disk: Partition $1 unknown type MSDOS, "
126 echo "^$disk: Partition $1 attributes updated\$"
130 echo "^$disk: Partition $1 type changed\$"
135 atf_set "descr" "Create empty disk"
140 silence gpt create "$disk"
141 file "$src/gpt.empty.show.normal" gpt show "$disk"
146 atf_set "descr" "Create 2 partition disk"
156 atf_set "descr" "Change the attribute of 2 partition disk"
161 match "$(attrmsg 1)" gpt set -i 1 -a biosboot,bootme "$disk"
162 save attr gpt show -i 1 "$disk"
164 match "$(attrmsg 1)" gpt unset -i 1 -a biosboot,bootme "$disk"
165 save attr gpt show -i 1 "$disk"
171 atf_set "descr" "Change the partition type type of 2 partition disk"
176 match "$(typemsg 1)" gpt type -i 1 -T apple "$disk"
177 save type gpt show -i 1 "$disk"
180 match "$(typemsg 1)" gpt type -i 1 -T efi "$disk"
181 save type gpt show -i 1 "$disk"
188 atf_set "descr" "Backup 2 partition disk"
193 save test.backup gpt backup "$disk"
199 atf_set "descr" "Restore 2 partition disk"
204 save test.backup gpt backup "$disk"
206 silence gpt restore -i test.backup "$disk"
218 match "$(recovermsg secondary primary)" gpt recover "$disk"
230 match "$(recovermsg primary secondary)" gpt recover "$disk"
236 atf_set "descr" "Resize a 2 partition disk and partition"
242 silence gpt resizedisk "$disk"
243 file "$src/gpt.resizedisk.show.normal" gpt show "$disk"
244 match "$(partresmsg 2 1058 19390)" gpt resize -i 2 "$disk"
245 file "$src/gpt.resizepart.show.normal" gpt show "$disk"
250 atf_set "descr" "Remove a partition from a 2 partition disk"
256 -i 1 "$disk"
258 gpt show "$disk"
263 atf_set "descr" "Label partitions in a 2 partition disk"
268 match "$(partlblmsg 1)" gpt label -i 1 -l potato "$disk"
269 match "$(partlblmsg 2)" gpt label -i 2 -l tomato "$disk"
271 gpt show -l "$disk"
276 atf_set "descr" "Make partition 2 bootable in a 2 partition disk"
282 match "$(partbootmsg 2)" gpt biosboot -i 2 "$disk"
284 silence dd msgfmt=quiet if="$disk" of=bootblk bs=1 count="$bootsz"
286 save bootattr gpt show -i 2 "$disk"
292 atf_set "descr" "Migrate an MBR+disklabel disk to GPT"
297 silence fdisk -fi "$disk"
298 silence fdisk -fu0s "169/63/$((size / 10))" "$disk"
299 silence disklabel -R "$disk" "$src/gpt.disklabel"
300 matcherr "$(migratemsg 5)" gpt migrate "$disk"
301 file "$src/gpt.disklabel.show.normal" gpt show "$disk"