Lines Matching refs:_dev
385 local _dev=${1#/dev/} _d
387 _dev=${_dev%.[a-p]}
391 [[ $_dev == @(${_d%:*}|${_d#*:}) ]] && echo ${_d%:*} && break
2098 local _dev=$1 _opts _file=/tmp/i/parts.$1 _parts
2100 disklabel $_dev 2>/dev/null |
2115 ask_which "$_dev partition" "has the $MODE sets" \
2116 '$(disklabel '$_dev' 2>/dev/null |
2684 local _dev _mp _fstype _opt _rest
2686 while read _dev _mp _fstype _opt _rest; do
2688 [[ $_dev == @(/dev/vnd*|\#*) ||
2706 echo $_dev /mnt${_mp%/} $_fstype $_opt $_rest
2723 local _dev _dn _mp _fstype _rest _fail _f _passno
2727 while read _dev _mp _fstype _rest _rest _passno _rest; do
2728 _dn=$(get_dkdev_name "$_dev")
2729 [[ $ROOTDEV == @(${_dev#/dev/}|$_dn${_dev##*.}) ]] && continue
2734 echo -n "fsck -${_f}p $_dev..."
2735 if ! fsck -${_f}p $_dev >/dev/null 2>&1; then
2736 echo " FAILED. You must fsck $_dev manually."
2749 local _async=$1 _dev _mp _fstype _opt _rest _msg _fail
2751 while read _dev _mp _fstype _opt _rest; do
2757 _msg=$(mount -v -t $_fstype $_async -o $_opt $_dev $_mp) ||
2758 _fail="$_fail\n$_mp ($_dev)"
2919 local _dev _mp _fstype _rest _d
2931 while read _dev _mp _fstype _rest; do
2933 /mnt/sbin/swapctl -a $_dev >/dev/null 2>&1
2947 for _dev in $(get_dkdevs) $(get_cddevs); do
2948 sh MAKEDEV $_dev