Ubuntu :: Detect Removable Devices Attached At Real Time Using C Program
Mar 21, 2011
I want to devolep one "C/C++" program that will work as a daemon. My daemon will be running all the time, and whenever anybody attaches removable devices to machine on which my daemon is running, My daemon should catch that event and also should show me where that device has been mounted.
View 1 Replies
ADVERTISEMENT
Mar 23, 2010
what the recommended way to set up real-time (or near real-time) folder synchronization among 2+ servers. I looked a rsync but that doesn't sound real-time and it looks like its something that you might put in a cron once an hour.
View 1 Replies
View Related
Oct 31, 2010
Where did they hide System->Preferences->Hardware->Removable Devices in Fedora 13?
View 7 Replies
View Related
Apr 25, 2010
I thought, that "Removable devices" module in KDE system settings supposed to automount removable devices. But when any removable media inserted, absolutely nothing happens.
View 6 Replies
View Related
Apr 27, 2010
Issue is, only way i can browse through the contents of for example a CD, is first opening it thourgh superuser Dolphin, and then i can open it with regular dolphin and konqueror.Same thing with a NTFS windows partition in the PC.I must first open it with superuser dolphin.
View 2 Replies
View Related
Jul 3, 2010
This is a 'clean' upgrade from slack 13.0 to 13.1 (32-bit)To qualify: / , /home , and /usr/local are on separate partitionsand / was reformatted.When I attempt to mount a removable device - USB stick or DVD, I get the following error message:
Code:
Rejected send message, 1 matched rules; type="method_call", sender=":1.134" (uid=1000 pid=6328 comm="exo-mount) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error
[code]....
View 3 Replies
View Related
May 26, 2009
I want the following behavior in kubuntu 9.04 when I plug a device (USB stick or CD disk):
1. It should be mounted automatically for me. Now it isn't, though it appears in fdisk -l output: Code: Disk /dev/sdd: 8006 MB, 8006926336 bytes
16 heads, 32 sectors/track, 30544 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Disk identifier: 0x9b12d290
Device Boot Start End Blocks Id System
/dev/sdd1 * 16 30544 7815232 b W95 FAT32 and if I mount it manually, all goes OK
2. If I mount manually my CD disk and then press the eject button on my drive nothing happens until I manually unmount the drive. But I want it to open immediately
All this worked for me in kubuntu 8.10, and broke with the upgrade.
My fstab entries Code: /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sdc1 /media/usb vfat noexec,codepage=866,utf8,nosuid,nodev,quiet,uid=1000,gid=1000,umask=077,user 0 0
View 9 Replies
View Related
Oct 27, 2015
I use Debian 8.2 without DE. I can mount removable devices (USB sticks, external HDDs) manually using mount/umount to specific folders under /mnt or /media. But I want them mount automatically when plugged-in as /media/disk-label. Also I want to be able safely remove already mounted devices without data loss.As I understand, I need to create custom UDEV rule and associate it with mount/umount scripts. E.g. mount script
Code: Select all#!/bin/sh
mount_point=$ID_FS_LABEL
if [ -z $mount_point ]; then
mount_point=${DEVNAME##*/}
fi
# retrieve gid of the plugdev group and set it as owner of mountpoint
plugdev_gid="$(grep plugdev /etc/group|cut -f3 -d:)"
if [ -z $plugdev_gid ]; then
[code]....
Is this safe and correct approach or it is better to use something else?
View 3 Replies
View Related
Jan 8, 2010
Since upgrading to Karmic, all my shares under 'Removable Devices' are listed twice...all was fine in Jaunty though, and I've done nothing to change them.Would anyone have an idea how to resolve this.In terms of what I see, there are all my shares with a white drive icon which, when clicked, do nothing. I then have all the same shares with a metal drive icon which open up the share when clicked.
I understand that the icons may look different, depending on what icon theme you're using, but the principal will remain the same.
View 9 Replies
View Related
May 29, 2010
Trying to boot Ubuntu live CD 10.04 and getting some problems. I will get to the section where I have to pick a language and then choose the option to run from the CD. It will start to load and then it will hang up at "[sdb] attached scsi removable disk". I unplugged all of my external HD's. I burned the 32 bit version because it was recommended on the site.
Asus
Pentium Dual core CPU E5400 @ 2.70 GHz
5 Gigs of RAM
Current clock speed 2700MHz
Running Windows 7
View 5 Replies
View Related
May 29, 2010
Quote:
Currently when I insert a removable device, it is auto-mounted as readonly. To use it I have to do this every time.
Code:
sudo umount /dev/xxx
pmount xxx
This applys to every removable device I have, and did not exist on my previous distro. Debian amd 64 Squeeze [URL]
View 5 Replies
View Related
May 22, 2010
I am using ubuntu 10.04. I want to set up authentication to mount hard disk and other removable devices.
View 5 Replies
View Related
Jul 22, 2011
i was fooling around with ATI graphics settings and after i went to reboot my Desktop it kept comming up with odd symbols instead of a log in screen, then i started to try and do things with a LiveCD and screwed things up even more so now any time i attempt to boot, even into recovery, it stops at the line
[2.573600] sd 6:0:0:3: [sde] Attached SCSI removable disk
i have tried to do multiple fixes with no avail and i am not very savvy with linux as i have only been using it under a year, so it would be awesome if anyone could help this is 10.10 Maverick and the 32bit version,
View 2 Replies
View Related
May 6, 2011
I am running Mandriva Linux 2010.2 KDE. Linux doesn't detect my thumbdrive when I plug it in. Do I have to change some settings to make it detect? The thumbdrive is in FAT32 format.
View 12 Replies
View Related
Aug 31, 2010
One question: should F13 mount all attached USB devices after boot automatically? I guess it should. However, what I've experienced is that after boot and login, my USB modem + flash memory is not mounted. I need to manually unplug it and plug it again, and then it's mounted
View 1 Replies
View Related
Nov 17, 2010
As the title says the machine name is not showing up in the attached devices list on my router. Is there a file where I need to add the name? Or is this an issue with the router? The router finds all the other machine names on the network except my 3 servers.
Ubuntu Server 10.04 Lts
Ubuntu Server 10.10 Lts
View 3 Replies
View Related
Aug 4, 2009
I am hosting two Virtual Servers both running Centos 5.3 on a host machine also running the same OS. The VM software in use is Xen, as supplied with the OS.The host machine's time and date is fine, however both Virtual Servers are running ahead of real time consitantly.Running /etc/init.d/ntpd restart will resolve the issue however one of these is running MailScanner and when the time suddenly goes backwards, sometimes by as much as an hour, it stops working properly.
View 1 Replies
View Related
Feb 24, 2010
Find external and internal devices attached to a system in Linux
How can i find through terminal that which devices are external and which are internal.
By external i mean devices attached to USB port. For Example, USB Drive, Portable USB HardDrive etc
By internal i mean devices attached internally. For Example, SATA Harddisk etc.
View 4 Replies
View Related
Jan 28, 2010
I used the following command to get the unix time of root user creation:
Code:
awk -F":" '$1 == "root" {print $3}' /etc/shadow
How can i convert this into the date/time of creation?
I am writing a shell script, which determines the OS installation date among other stuff, and i am assuming the root user's account creation date should be a pretty accurate pointer. Are there reasons why i should not be assuming so?I would be open to other suggestion for getting this date/time, but it would nevertheless be interesting to convert the unix time to "real" time without doing complex manual(or otherwise) computation..
View 4 Replies
View Related
Feb 24, 2010
How can i find through terminal that which devices are external and which are internal.
By external i mean devices attached to USB port. For Example, USB Drive, Portable USB HardDrive etc.
By internal i mean devices attached internally. For Example, SATA Harddisk etc.
View 2 Replies
View Related
Mar 1, 2011
I can't access my USB devices via Computer, yet I can generate a list with:
Code:
lsusb
Output:
Code:
Bus 002 Device 004: ID 05a4:9866 Ortek Technology, Inc.
Bus 002 Device 003: ID 04d9:1203 Holtek Semiconductor, Inc. MC Industries Keyboard
Bus 002 Device 002: ID 047d:1029 Kensington Mouse*in*a*Box Optical Elite
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0a48:5014 I/O Interconnect Mass Storage Device
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
View 2 Replies
View Related
Jan 9, 2011
I'm trying to detect an external HDD drive, but I don't know how. My PC has a total of 6 USB ports, they're all being used, and the Computer File Browser lists only 4 USB ports and I can't open them.The ports could be detected in Windows Vista, except I've not tried the new HDD enclosure, but it crashed.
View 5 Replies
View Related
Feb 13, 2011
"Computer" nor "Palimpest Disk Utility" showed anything about the attached devices. However, the command:
Code:
lsusb
outputs:
Code:
Bus 002 Device 004: ID 05a4:9866 Ortek Technology, Inc.
Bus 002 Device 003: ID 04d9:1203 Holtek Semiconductor, Inc. MC Industries Keyboard
Bus 002 Device 002: ID 047d:1029 Kensington Mouse*in*a*Box Optical Elite
[code].....
View 14 Replies
View Related
Sep 9, 2010
if I want to use an rt kernel in ubuntu studio, how do i use the kernel? say for instance, Ubuntu studio is installed with generic kernel.then i download the rt kernel.
View 3 Replies
View Related
Oct 12, 2010
I'm new in UBUNTU and would like to get a real-time antivirus.Maybe it's not necessary, but I still want it (I've got an iMAC and have installed an antivirus... ) So, please... which antivirus is good and in real-time (I mean that, if I try to open an infected file or go to a bad website, it stops it). Is KLAMav good and in Real time?
View 9 Replies
View Related
Dec 29, 2010
Just installed a real time kernel on my new computer so I can record music. My problem is that I have no GUI. I noted that I would not when fglrx drivers could not be installed/applied to the new kernel when installing it.
View 7 Replies
View Related
Mar 7, 2011
I bought a new notebook HP Presario CQ56 with Linux openSUSE 11.0 Everything works and the Bluetooth device is ON. Also the one in my cellphone. But the one in the PC does not detect any device and ergo cannot configure it.Got Bluetooth Applet 1.8 installed.In #suse and #bluez IRC chats couldn't give me a hand =/
View 5 Replies
View Related
Sep 22, 2010
Strange to me that a search only seemed to turn up some partial instructions for enabling detection of new USB devices (not discoverable in a default install) in 11.1 and no later. I assume perhaps incorrectly that things have changed since so attempted the following.
Objective: Discover an HTC G1 phone to use as a modem. So, after the phone is discoverable by SuSE the next step would be to configure the connection.
Current: It seems that this phone is listed in /etc/usb_modeswitch.d/
Attempt: I assumed incorrectly it seems that it should have been sufficient to simply create a file in the /etc/usb_modeswitch.d/ directory with the appropriate TargetVendor and TargetProduct codes as follows
Filename: 0bbr:0c01
Code:
########################################################
# HTC Android G1 Phone
DefaultVendor= 0x0bb4
DefaultProduct=0x0c01
[Code]....
I need the proper way to do this in OpenSuSE 11.3. A bonus would be if someone could verify that after the modem/phone is recognized whether the next step is to configure the device using YAST/modem.
View 9 Replies
View Related
Jul 18, 2010
I am running UBUNTU 10.04 on an X86 system 64bit. I am trying install a wireless keyboard and am not having much luck.
-My non wirelessUSB keyboard and mouse work fine.
-My wireless logictech mouse works fine without adding any special drivers/packages
-Wireless Keyboard (LX500, uses same receiver as mouse) does not work with standard config
-Adding HIDPOINT and selecting my wireless mouse and keyboard (LX500) - wireless key board does not work. Mouse still works.Since my wireless mouse worked before HIPOINT installation (64 bit), I believe HIDPOINT is not working.
HIPOINT Does not detect my wireless devices auto, must manually select them. So I believe that there is some conflict with other drivers.Can anyone point be in a direction to look? What are the typical configuation files and drivers used to configure standard USB mouse and keyboards? What are some other software that might be installed that is conflicting with HIDPOINT?
View 1 Replies
View Related
Dec 20, 2010
Running qjackctl as root allows me to run the audio in realtime so it seems to be a permissions problem and it seems to me that lubuntu does not read the /etc/security/limits.d/audio.conf file when I boot.
View 3 Replies
View Related