[Ilugc] Handling Pen drive in Linux

  • From: knura@xxxxxxxxx (Arun Khan)
  • Date: Sat Jul 19 16:04:37 2008

On Saturday 19 Jul 2008, indianathan n wrote:

1. Use our pen drive in normal user instead of root for safe
operation.

This is pretty much standard now.  When you pop in the drive Gnome/KDE 
pop up file managers with the drive mount on /media/<something>.

2. For copying files, first mount your pen drive with R/W 
permission. ( Ubuntu auto mount the device with read only permission.

I use the native fs on pen drives (vfat) for interoperability with other 
desktops.  Have not run into this issue.

3. Use only commands to copy files.It is easy to terminate the
process in middle. In GUI mode, some times file system get corrupted.

Cannot enforce this on "average" users like office staff.   They are 
used to working the "windows" way :)

4. Never make to change file permissions of files available in pen
drive. this makes the file as read only and unable to edit.

I think this is related to 2 and 3 above.  Not sure what you mean here.

5. make proper mounting and unmounting when using the drive.

Agree, should be done on *all* desktops for fs integrity.

6. Disable autorun for all removable media types.  (how to do this?)

Recently, I helped a colleague to create a PDF version of his OO 
presentation so that he could give his talk at a workshop (OO version 
at workshop premise was 1.x and would not open his 2.x file).  He 
warned me that the pen drive had been hooked up to promiscous desktops.  
Upon insertion, Ubuntu presented the file manager.  I believe there was 
an autorun.inf which copied a whole bunch of <directory>.exe in my home 
directory.  It was like Whoa!  The point is that some of the virii have 
started recognizing a Linux desktop and use Linux utils to install 
themselves.  Fortunately, they were windows exe and I removed them.

-- 
Arun Khan

Other related posts: