Software :: How To Check Which Process Is Accessing Device?
Feb 7, 2010
I wonder if there is a command that can tell me which process is accessing a folder, say, /mnt? Sometimes I forgot which process is accessing /mnt and therefore cannot umount /mnt.
I can see that the light of the HDD is flashing. I would like to find out what the process is that is accessing the HDD. Is there a way to achieve this?Is there a utility that ties up processes with hw resources?
I using rhel5 i installed&configured nagios ofter loged in the nagios server when i m enter hosts & services i m getting this error # it appears as though you do not have permission to view information for any of the hosts you requested. If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file.
Did anyone have a problem accessing a USB device using perl5 on ubuntu 10.10? I have a script written in perl that was working fine on ubuntu 10.04, when accessing /dev/ttyUSB0 (USB to serial port)
In the current version this script freeze or goes to an infinite loop when accessing the ttyUSB device. any thoughts?
So I am using a debian 5.0.4 version of Linux with a command-line interface (the bash shell).I have been trying to get my usb device to be readable, which I suppose means I need to run a mount command like mount -t usbfs /dev/usb /media/usb But I have not had any luck getting to access my usb drive...I run lsusb and find that it is attached, I can find it in the /proc directory, but I cannot access my usb drive
I am using a Belkin F5D 8235-4 ver 2 wireless router. My linux box is connected direct. I have a 16G flash drive installed in the usb port on the router that I want to use for storage so I can dump files I share with my other machines on the network. Windows sees this usb and works fine by just using the web browser and using 192.168.2.1usb no problem. Then I try to use my unbuntu and can not for the life of me figure out how to set up a permanent link to that drive in linux. I would like to have a direct connection on my desktop. Of course I tried Belkin and was told we do not support Linux.
I have an Linksys NSLU2 with four usb harddrives attached to it. One is for the os, the other three are setup as a RAID5 array. Yes, I know the raid will be slow, but the server is only for storage and will realistically get accessed once or twice a week at the most. I want the drives to spin down but mdadm is doing something in the background to access them. An lsof on the raid device returns nothing at all. The drive are blinking non-stop and never spin down until I stop the raid. Then they all spin down nicely after the appropriate time.
They are Western Digital My Book Essentials and will spin down by themselves if there is no access. What can I shutdown in mdadm to get it to stop continually accessing the drives? Is it the sync mechanism in the software raid that is doing this? I tried setting the monitor to --scan -1 to get to check the device just once, but to no avail. I even went back and formatted the raid with ext2 thinking maybe the journaling had something to do with it. There are no files on the raid device, it's empty.
I'm trying to check how much ram memmory and CPU is a particular process consuming, i have checked free -m and top but is not esay to undesrtand the output from CPU
What i need is to check the consuming for a particular process; with free -m i'm able to see only the available space of memmry and i want to know how much is consuming a particular process, the same with 'top'
It's hard ot understan the output from top, to many columns and MAY process, not easy to check the process i want to monitor
I wonder if there's a way to capture the same information I can get from nethogs to a file. All I need it per process (rather than per interface) what is the sent/received traffic.
I add a user in my linux machine using the command 'useradd' as shown below. # /usr/sbin/useradd -c "Non Root User" -d "/home/testUser" -g root testUser "/etc/passwd" file shows that user created with uid '517'
how to check which process consuming a lot of HDD I/O ? Do You know any good command which can show me which process saving something big on the storage system ? "iostat" or maybe "ps" ? Would be great if somebody could past me here nice command.
When my system starts this command is executed by a script /usr/sbin/apache2 -k start...How can I find which one start it? I check in rc2.d/ dir in the apache script but didn't found anything similar. Where else should I look?
I have been working and searching the forum for a solution to dvds not playing on my hp dv2000 laptop running openSUSE 11.2, 2.6.31.12-0.2-desktopHere are the post ask for in the ten step process. (lots of them)
#1 Check if there are missing dependencies #1 LC_ALL=C zypper ve linux-jh3c:/home/carl/11.2Setup/dvd # LC_ALL=C zypper ve
I have a game server running using java, and it tends to crash sometimes, and only way to start it now is manually, so i thought i could create a script to check periodically if java is running, and if it isn't, run my startup script for the game server also, if it's possible it should log when it actually started the server startup script into a text file or something, so i can check why it crashed.
I am using Sphinx search on my webserver and it quits after a certain amount of time leaving my search page broken.Here is a bash script that I want to run every 10mins via cron:
We've just set up 3 Dell systems with 64 bit Red Hat Enterprise Workstation 5. As part of our system configuration we point the user authentication to our LDAP server, and automount people's home directories from our fileserver. At this point, our security people do some configuration and we get it back.
We are typically running KDE. On all three machines, when you plug a USB stick into the system, the familiar window pops up asking you what you want to do - open the contents in some program, open a file viewer, etc. and the stick shows up in /media When you stick a CD or DVD into the drive nothing happens - you don't get the options window and nothing appears in /media I'm trying to get an idea of how the automount process works, and where I may have stepped on it. We've got three more identical machines that haven't been installed yet, so my plan is to check the ability to automount CDs at various stages of our setup process.
I have an ubuntu 10.10 server and want to run a script on it to check if a process is running. If it is not running, it will start the process and also write into a log file.
When running the script i get the following error message:
I have written a script to take backup of my database in remote server which is a windows machine.i have mounted that machine to my server using the script and daily script will run automatically, i have scheduled it using crontab like that and backup will be taken. but if my remote server is down means it gets unmounted and my backup falls on my local linux server itself. i want a script to check whether the remote server is mounted or not if mounted take the backup or else stop the backup.
I am trying to write a script to turn my HTPC off automatically and turn it back on again at a specified interval.
I've got the turn on off bit sorted using /sys/class/rtc/rtc0/wakealarm but I want the script to not turn the machine off if say something is downloading, I am currently watching something etc and i dont think I will have any trouble with that.
But what I would really like to be able to do is tell if my TV is currently on. I dont think anything x11 related would work here and this may not even be possible. Does Ubuntu "know" if it's display device is powered on or not? if so can I interrogate this somehow?
Writing a bash script and I need to check if a known HD partition is mounted or not. I do not think /etc/mtab is the place to check. Would /proc/mounts always work? To make it simple like this : cat /proc/mounts | grep /dev/sdb2
I have an Ubuntu server in which a file is dumped every hour and a new file for the next hour and the process continues. If there is any problem due to which the creation of file stops then empty files are created every minute till the process is killed & started again. I need help to make a shell script to check if the empty files are being created and then kill the process and start it again.It would be a great help if anyone can help me regarding this.
i need to install vpnc in amazon ec2 fedor 8 instance. i have installed with yum install vpnc commaned. And i have placed config file in /etc/vpnc/some.conf. but it is not connecting and giving the following error. vpnc: can't open /dev/net/tun, check that it is either device char 10 200 or (with DevFS) a symlink to ../misc/net/tun (not misc/net/tun): No such device.
The server comes up after rebooting and after setting the hostname it starts setting up logical volume management. It says that 2 logical volume(s) in volume group "VolGroupOO" now active But then it starts to check the file system and errors with fsck.ext3: Device or resource busy while trying to open /dev/sdb1 [failed]
***An error occured during the file system check ***Droppping you to a shell, the system will reboot when you leave the shell Give root password for maintenace
After I log in with the root I get the message mesg: error tty device is not owned by group 'tty' Can the forum tell me how to troubleshoot this issue so I can boot back up again? I have 2 harddrives in this server and only 1 drive was detected when I first installed CentOS. The error first appeared when I mounted the 2nd drive at the mount point /UserGeneratedData. drive was formatted with ext3 before mounting and did not have any data on it I don't want any software RAID if thats what seems to be going on with "VolGroup00"
Is there a way to bind specific programs to specific network devices (not IPs, since I have dynamic IPs)?
For example, I wish for irssi to route through eth0 and w3m to route through eth1. Keep in mind these devices have dynamic IPs, so I cannot attached them to an IP.
The solution cannot be accomplished through route since route pivots on IPs not devices.
Have Karmic 9.10 ,Changed from Epson RX595 all in 1 (uses a ton of ink)Got the Lexmark Pro 805 3 in 1 because it says it supports Linux and the ink cartridge only cost $5 downloaded drivers and printer works but using Xsane Image Scanner error reports
'Lexmark_1_0_0:libsub/001/009': Device busy Using Image Scan - reports Could not send command to scanner Check the scanner status. The RX595's scanner drivers had to been manually instatlled,, in the Printer box the Lexmark shows available..