#!/bin/sh # Mount a partition by label automatically sudo mkdir -p "${2:-/mnt/$1}" sudo mount -L "$1" "${2:-/mnt/$1}"