All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
24 views

How can i get alerted when EFS is unmounted fro Linux EC2 instance?

I do not want to use Cloudwatch want to use shell script for this , Could you please suggest? Actually i have written a script as below: But its not alerting me when the EFS is unmounted. #!/bin/...
5
votes
2answers
4k views

Mounting and unmounting in same shell script results in error

I need to mount a volume, tar the contents of the mounted volume and unmount that mounted volume, in a single shell script. So I coded as, $ cat sample.sh sudo mount -o loop Sample.iso /tmp/mnt cd /...
1
vote
2answers
11k views

Debian: umount /media/usb0: “Operation not permitted”

I recently moved from Ubuntu 14.10 to Debian Testing. Under Ubuntu I had a shell script for backing up my home folder to a USB stick. The last line of the script unmounts the USB stick. Adapting it to ...
0
votes
0answers
193 views

Is there any suggestion to my shell script that (un)mounts an ISO file in order to make it better and safer?

I wrote a script to mount / umount an iso file by detecting whether the /media/iso-file-name exists. Any suggestion for the script as below in order to make it better and safer? #!/bin/bash ...
25
votes
2answers
49k views

Bash scripting - loop until return value is 0

I need to umount something in my script, but sometimes it unmount's before all of the data has finished being copied and causes the umount to fail. I looked for a way to do a "blocking" umount, but I ...