unmounting storage device in bash script

unmounting storage device in bash script


I’m writing a simple bash script to run rdiff-backup in background at set intervals. When rdiff-backup finishes, the script will unmount the partition that holds the rdiff-backup target (dedicated partition on an internal hard drive, and not on the same physical device as the source files). Do I need to set a sleep interval here to make sure any buffered data has time to get written to the drive, or is the umount command smart enough to wait for buffers to clear before actually pulling the plug?


Previous [ubuntu] How to know that a app in ubuntu software is developed by ubuntu?
Next USB Webcam mic recognized but not working

About author

You might also like

Ubuntu Dsicussions 0 Comments

SSH port forwarding

Hi everyone, To get remote access to my home server (running Ubuntu Server 20), I forwarded port 22 to port 3xxxx in my rounter. In /etc/ssh/sshd_config, I inserted: Code: AllowTcpForwarding

Ubuntu Dsicussions 0 Comments

Close and delete my data

Hi admin, please close and delete my account.   READ MORE

Ubuntu Dsicussions 2 Comments

[lubuntu] Upgrade to 20.04 damages pdf export from LibreOffice

I have a couple of laptops, both of which can boot either Lubuntu 18.04 (4.15.0-109) or 20.04 (5.4.0-40). On both machines, if I boot into 20.04 and have a document


No Comments Yet!

You can be first to comment this post!

Leave a Reply