Sponsored Content
Top Forums Shell Programming and Scripting how to run a script when pen drive is inserted Post 302248588 by swat on Saturday 18th of October 2008 12:58:19 PM
Old 10-18-2008
Hammer & Screwdriver

you can use the concept of directory exist or not...

like when a pen drive will be connected to your system one specific directry will be mounted..

you can create one file watcher for the directory ... .ad run your specific job
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

USB pen drive support

Hello, I need information or tooling for using my USB pen drive (DANE-ELEC) in a unix environment. Until now I only get the "format window" in the unix machine but after giving OK for running the format, it never stops and I have to stop it manually. Seems that what I need is format my... (0 Replies)
Discussion started by: Argento73
0 Replies

2. Debian

linux on 128MB pen drive?

hello, I want to install minimal linux on 128MB pen drive. distro is debian. what all should i need? (2 Replies)
Discussion started by: yogesh_powar
2 Replies

3. BSD

FreeBSD pen drive issue....

Hi there, I am using freebsd 7.0 and I am facing a lot of issues with it. The cd installed fine. I opted for the gnome desktop and tht too installed (though the refresh rates were wrong and the resloution got messed up). After some configurations the desktop was working fine. Then came the... (5 Replies)
Discussion started by: jedidiah
5 Replies

4. Filesystems, Disks and Memory

USB Pen Drive & Hard Disk

Hi Guys, I have an external USB Hard Disk Drive on which I have 3 partitions and it works fine under Windows XP but when I am using Red Hat Linux 5 I don't see any icon for this USB HDD. Also I am not able to browse my USB Pen Drive. However, I can use it under Mandrake Linux without any... (4 Replies)
Discussion started by: indiansoil
4 Replies

5. Linux

How to Install Linux os from USB pen drive

can any body tell simple steps to install linux from pen drive (4gb) fat32 ( with out dvd rom ) (3 Replies)
Discussion started by: seshumohan
3 Replies

6. SCO

how to access data in a pen drive in sco openserver 6

Does anybody know the commands to access the data from a pen drive in a SCO Openserver 6. What are the parameters to the mount command for accessing the USB port:confused: (9 Replies)
Discussion started by: jksah
9 Replies

7. Linux

Not able to remove virus from a pen drive

Hello Friends, My pendrive (FAT32 filesystem) consist of following files+viruses. -rwxr-xr-x 1 chinmay root 0 2010-03-10 01:29 autorun.inf dr-xr-xr-x 2 chinmay root 4096 2010-03-09 23:51 Docs -rwxr-xr-x 1 chinmay root 4726162 2010-03-08 15:02 java_ee_sdk-5_03-javadocs.zip... (4 Replies)
Discussion started by: catchchinu1
4 Replies

8. Red Hat

making pen drive bootable

Anyone can plz tell me how to make pendrive bootable.unetbootin dont have option for red hat (0 Replies)
Discussion started by: shamapraveen
0 Replies

9. Solaris

Unable to mount USB Pen drive on my Server

Hello Gurus!! Very recently i tried to mount a USB pen drive onto my solaris 10 (X4170 model) server. As i understand, in ideal scenarios it should get mounted automatically, but it did not happen. Neither anything is shown in "iostat -En" output or "rmformat -l" about the pen drive. I also... (10 Replies)
Discussion started by: EmbedUX
10 Replies

10. Solaris

How to mount USB pen drive?

Hiii, Please let me know the steps for mounting my USB pendrive in solaris 10 platform. Thanks & Regards, Bhargav P (5 Replies)
Discussion started by: bhargav90
5 Replies
mount(8)						      System Manager's Manual							  mount(8)

Name
       mount, umount - mount or unmount file systems

Syntax
       /etc/mount [ options ] [ device ] [ directory ]

       /etc/umount [ options ] [ device ] [ directory ]

Description
       This  is  a  general description of the command.  Additional descriptions are provided to define the syntax and options for the NFS and UFS
       file systems.

       Each invocation of the command announces to the system that a file system is present on the device device.  The file system may be local or
       remote.	File directory must exist as a directory file.	It becomes the name of the newly mounted file system root.

       If invoked without arguments, prints the list of mounted file systems.

       Physically write-protected disks and magnetic tape file systems must be mounted read-only or an error will occur at mount time.

       General users can only mount file systems with certain restrictions.  For example, the user, other than the superuser, performing the mount
       must own the directory directory.  Furthermore, no users other than the superuser can execute or programs on the mounted file systems.	In
       addition, users other than the superuser cannot access block or special character devices such as on the mounted file systems.

       The  command  announces	to the system that the removable file system previously mounted on the specified directory is to be removed.  Only
       the person who mounted a particular file system or the superuser can unmount the file system again.

Options
       -a	   Reads the file and mounts, or unmounts, all file systems listed there.

       -f	   Fast unmount.  The option has no meaning for local file systems and directories.  However, for remote file system  types  (such
		   as  NFS),  the  option  causes  the	client	to unmount the remotely mounted file systems and directories without notifying the
		   server.  This can avoid the delay of waiting for acknowledgment from a server that is down.

       -o options  Specifies a string that is passed to the kernel and used by the specific file system's mount routine in the kernel.	 For  spe-
		   cific options, refer to the file system-specific description, such as

       -r	   Indicates  that  the  file system is to be mounted read only. To share a disk, each host must mount the file system with the -r
		   option.

       -t type	   Specifies the type of file system is being mounted.	When used with the option, the option mounts all file systems of the given
		   type found in the file.  For specific file system types, refer to the file system-specific description, such as

       -v	   Tells what did or did not happen.  (Verbose flag)

       The options for are:

       -a	   Unmounts all mounted file systems.  It may be necessary to execute twice to accomplish unmounting of all mounted file systems.

       -v	   Tells what did or did not happen.  (Verbose flag)

Restrictions
       Mounting corrupted file systems will crash the system.

Files
       File systems information table

See Also
       getmnt(2), mount(2), fstab(5), fsck(8), mount(8nfs), mount(8ufs)

																	  mount(8)
All times are GMT -4. The time now is 11:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy