Skip to content

A simple command line wizard to help you easily mount a device without remembering the needed commands.

License

Notifications You must be signed in to change notification settings

dombrock-archive/ezMount.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

THE SCRIPT

#!/bin/bash
lsblk
echo
read -p "What do you want to mount?(sdb1, sdb2 ect?): "
echo
drive=$REPLY
read -p "Where do you want to mount it?(media/<LOCATION>): "
echo
target=$REPLY
cd /.
sudo mkdir -p media/$target
sudo mount -t ntfs /dev/$drive /media/$target
cd media/$target
echo 'Showing Mounted File System Now:'
ls
echo 'Done'

NOTE: THIS SCRIPT ASSUMES THAT THE FILES SYSTEM IS NTFS

HOW TO USE

  1. Copy this file to your home folder.

  2. Change its permisions to make it executable with:

sudo chmod u+x ezMount.sh
  1. Execute the script with:
./ezMount.sh

About

A simple command line wizard to help you easily mount a device without remembering the needed commands.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages