mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-30 05:02:54 +08:00
mod 4 standalone, depends
This commit is contained in:
parent
77fddfdb39
commit
84896313d8
12
ZFS/mkgpt.sh
12
ZFS/mkgpt.sh
@ -1,13 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
# DEPENDS: smartctl, parted, fdisk
|
||||
|
||||
argg=$1
|
||||
|
||||
source ~/bin/failexit.mrg
|
||||
#source ~/bin/failexit.mrg
|
||||
# failexit.mrg
|
||||
function failexit () {
|
||||
echo '! Something failed! Code: '"$1 $2" # code # (and optional description)
|
||||
exit $1
|
||||
}
|
||||
|
||||
|
||||
smartctl -a /dev/$argg |head -n 16
|
||||
fdisk -l /dev/$argg
|
||||
|
||||
ls -l /dev/disk/by-id|grep $argg
|
||||
ls -l /dev/disk/by-id |grep $argg
|
||||
|
||||
echo "THIS WILL DESTRUCTIVELY APPLY A GPT LABEL - ARE YOU SURE - PK OR ^C"
|
||||
read
|
||||
|
Loading…
x
Reference in New Issue
Block a user