LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs > ted_chou12
User Name
Password

Notices



Old

mount scripts

Posted 08-27-2012 at 03:39 PM by ted_chou12

These are scripts that searches for local drives and network shares (cifs). I am putting this up for whoever looking for a ready made script also for my future references:
Code:
#mounts start with f
tbmounted=(f g h i j k l m n o p q r s t u v w x y z)

for each in "/dev/sd"* ; do
	mname=${each##*/}
	
	for alphabet in ${tbmounted[@]} ; do
		if [ "$mname" == "sd$alphabet" ] ; then
				mounts=$(mount | grep
...
Member
Posted in Uncategorized
Views 441 Comments 0 ted_chou12 is offline

  



All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration