Linux
List all drives, blockdevices and their names
lsblk -io KNAME,TYPE,SIZE,MODEL
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start daemon at boot time | |
# Description: Enable service provided by daemon. | |
### END INIT INFO |
Linux
List all drives, blockdevices and their names
lsblk -io KNAME,TYPE,SIZE,MODEL