Automatically format USB drive

If none of the more specific forums is the right place to ask

Automatically format USB drive

Postby rodrigocatarino » 2020-01-23 14:03

Hi all,

I would like to automatically format a USB drive whenever it is connected to my Orange PI Zero.
I have installed Armbian Bionic server on the Pi Zero using the image provided on the armbian website.

The objective is to prevent some users connecting infected USB Drives on their computers, by forcing them to connect their USB drives first on the PiZero.

I don't have much experience in Linux/Debian, so a good help is much appreciated.

Thanks in advance,
Rodrigo
rodrigocatarino
 
Posts: 2
Joined: 2020-01-23 13:53

Re: Automatically format USB drive

Postby trinidad » 2020-01-23 15:00

You can't believe your eyes if your imagination is out of focus.
trinidad
 
Posts: 119
Joined: 2016-08-04 14:58

Re: Automatically format USB drive

Postby rodrigocatarino » 2020-01-23 20:35

trinidad wrote:https://www.armbian.com/faq/

TC


Hi TC,

I've done my search there before and on another sources.
I know how to mount and unmount a drive and format it, what i dont know is how to automate this process whenever a USB drive is inserted on the PiZero.
Are you able to help?

Kind regards,
Rodrigo
rodrigocatarino
 
Posts: 2
Joined: 2020-01-23 13:53

Re: Automatically format USB drive

Postby arzgi » 2020-01-24 13:46

I guess trinidad hintet you should ask there. This is Debian user forums, I see no link to Debian in your question.
arzgi
 
Posts: 576
Joined: 2008-02-21 17:03
Location: Finland

Re: Automatically format USB drive

Postby Head_on_a_Stick » 2020-01-24 16:23

rodrigocatarino wrote:how to automate this process whenever a USB drive is inserted

Call a script from a udev rule. But please don't post here again unless you're actually using Debian.
User avatar
Head_on_a_Stick
 
Posts: 11568
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to General Questions

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable