Skip to content

Linux Script to unmount all partitions in a drive and put the drive into standby - parking the heads - for hotswaping.

Notifications You must be signed in to change notification settings

BMarkley/ParkDrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

ParkDrive

Linux Bash Script to unmount all partitions in a drive and put the drive into standby - parking the heads - for hotswaping.

ParkDrive unmounts and puts a drive into standby, which should park the heads, and prepare the drive for removal. Ideal for a Hot Swappable drive setup. Uses umount and hdparm. When run without options it is an interactive text UI. This Script was designed for my personal use. It is being provided for free, and with no garauntees whatsoever. Use at your own risk.

Syntax: ParkDrive [-o] [-d] [Drive] options: h Display this help d Preselect drive (ie sda sdb sde etc) f Fast Skips Countdown Y Skips Confirmation Dialogue. Use at your own risk s Suspend Drive (lower power state but can cause problems for some raid controllers, or make drives vanish) r Remove (Sleep) Drive (default action)

About

Linux Script to unmount all partitions in a drive and put the drive into standby - parking the heads - for hotswaping.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages