Link to home
Start Free TrialLog in
Avatar of Dier Eluom
Dier Eluom

asked on

How to unmount USB using Cron

I had this question after viewing Have a file from a raspberry pi automatically copied to a usb.
After writing a file to USB I want to unmount the USB at precisely 3,00pm on a Friday using CRON.
Avatar of Jason Carson
Jason Carson
Flag of Canada image

15 = 3:00pm
5 = Friday

 * 15 * * * 5		root		umount /dev/usbdevice

Open in new window

Replace '/dev/usbdevice' with your device
Avatar of Dier Eluom
Dier Eluom

ASKER

Looking at the previous question before this (hyperlinked) is my device then /media/usb?
sorry /dev/sda1 ?
ASKER CERTIFIED SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What does the 1: do?
Nothing, that's the line number in the code window. If you use 'select all', it doesn't select the 1: