eMarcel.com

Oracle Database, Fusion Middleware, Linux

Mount Hard drives – Montowanie dysków twardych

  • Prosty skrypt ułatwiający montowanie zdefiniowanych dysków twardych.

#!/bin/bash
echo -e "Aby zamontowac dyski wpisz (z)\nAby odmontowac dyski wpisz (u)\n"
read wybor
if [ $wybor = "z" ];
then
mount /dev/hda1 /mnt/kat-c
mount /dev/hdb3 /mnt/kat-d
mount /dev/cdrom
echo -e "Dyski zamontowano w katalogu /mnt"
else
break
fi
if [ $wybor = "u" ];
then
umount /dev/hda1
umount /dev/hdb3
umount /dev/cdrom
echo -e "Dyski zostaly odmontowane"
else
break
fi

#END-SCRIPT#

 

(Visited 20 times, 1 visits today)

0 Shares
Tweet
Share
+1
Share

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close