Software :: Horelease /dev Entry Of Unplugged Storage Device While A Program Has A File Open

Nov 6, 2009

I plug a USB device, it gets a /dev entry, e.g. sdf, i mount its filesystem, then some program opens a file on this filesystem. I unplug this device, its /dev entry disappears, but if i replug this device again, it gets another name - sdg.

How can i force the program to close the file so the filesystem is ready to be unmounted without using "lazy unmount" to release the device name, BUT so that the program doesn't crash after trying to make I/O to this file, and, of course, without having to kill the program?

View 4 Replies


ADVERTISEMENT

Hardware :: Retrofitting A Device File For A Mass Storage Device?

Jan 7, 2010

here we have an older digicam (Jenoptik/Exakta Model "DC 22", if someone might want to know) that can be switched between some "PC Camera mode" and "Mass storage mode".Unfortunately, if attached to USB, it is always recognized as

Code:
UDEV [1262910483.475886] add /class/video4linux/video0 (video4linux)
lsusb tells:

[code]...

View 4 Replies View Related

Software :: Auto-start A Program On Storage Device Plug?

May 7, 2010

I need to auto-mount a storage device AND execute a program passing mount point path to it. How can i do this? I'd like to avoid polling for new storage devices. I'm looking for something like acpid for ACPI events, but working with storage plug events instead.

View 6 Replies View Related

Ubuntu :: Automatically Unmount Encrypted USB Flash Drive When Device Is Unplugged?

Apr 21, 2010

I formatted the USB flash drive using Karmic's Format Disk utility (right-click on a volume, select "Format..."), and selected "Encrypted, compatible with Linux (FAT)" from the "Type" drop-down menu.It mounts correctly when I plug it in, and I can access the files just fine.When I unplug the Flash drive without using the 'Safely Remove Drive' option, the icon on my desktop changes its name to '2.0 GB Encrypted', instead of disappearing and unmounting like my unencrypted Flash drives do.

I would like to have encrypted Flash drive treated in the same way as my unencrypted Flash drives, which disappear and unmount when unplugged, even if the 'Remove Safely' menu option isn't used. What can I do to accomplish this?NOTES:When I plug the encrypted Flash drive in, the following line shows up in the output of 'mount'. 'secure' is the name I gave the disk during the format process:

Code:
/dev/mapper/devkit-disks-luks-uuid-302db16c-c6e2-4dd9-a259-436437c76475-uid1005 on /media/secure type vfat

[code]....

View 1 Replies View Related

Programming :: Open Or Run A File/program Through A C++ Program

Jan 15, 2010

Ok so Basically i have 2 questions

1. i know how to create a file with c++ using but is there a way to save it to a specific location on your computer with windows and linux

Code:

2. i need to know how to run/execute/open a file in a c++ program im using and its not working

Code:

View 4 Replies View Related

General :: Program To Use To Open An Mth / Htm File?

Mar 4, 2011

My midterm instructions are in mth format. I wouldn't even know what program to use to open in Windows. The actual midterm itself is an htm file. I need help ASAP.

View 11 Replies View Related

Slackware :: How To Open A File With A Program

Nov 28, 2010

How do i per say open a file with like transmission when i am downloading it from the internet it says open with then you click it on firefox and it goes to root. Where do i find the files for opening a program instead of saving and going into the program and opening it that way?

View 4 Replies View Related

Installation :: Program I Use In Ubuntu To Open A .dat File?

Oct 25, 2010

I was wondering what program I use in Ubuntu to open a .dat file. Any one know?

View 1 Replies View Related

Ubuntu :: Can't Find Any Program To Open The File?

Jun 25, 2011

we had this cd called 3d arts and crafts and it created several images from one image. it saved them in a file format .dcp i can't find any program to open the file with now that i've changed system

View 3 Replies View Related

Ubuntu Servers :: Unable To Open Device /dev/megadev0: No Such File Or Directory

Jun 19, 2011

I have an Ubuntu server x64 (10.04) that is running FOG for imaging Its installed on an Intel server board (1 RU rackmount) I configured the RAID in an Intekl based BIOS utility which Looks similar to This Ubuntu installed and runs perfectly. however im unable to monitor the status of the drives from the OS, so Im unaware of any drive failures that may occur I manged to install megacli but it returns blank data (along with exit code: 0x00) Iv also tryed megactl wich says

Code:

unable to open device /dev/megadev0: No such file or directory

one of my colleagues who had used the server previously was certain that the raid was on board the intel site also makes mention of intel using LSI products in their RAID controllers Relevant section of dmidecode:

Code:

Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
Manufacturer: Intel

[code]....

View 5 Replies View Related

Programming :: Open A Text File And Program Stops Working?

Feb 8, 2011

I opened a text file and read some stuff. Then I (think) I closed it. Then I tried to open another one and it stopped working. It seemed to compile fine though. Why would this be?

Code:
#include <iostream>// Libraries included
#include <string>
#include <fstream>
#include <sstream>
#include <list>

[Code]....

View 3 Replies View Related

Debian :: Right Click - Error: Open: No Such File Or Directory No Uinput Device Found

Jan 25, 2010

I install Debian on a Power book g3 and i need the right click function. I try mouseemu but it give me an error: open: No such file or directory No uinput device found! Make sure the uinput module is loaded or CONFIG_INPUT_UINPUT is compiled in kernel. if there are other way for the right click function?

View 3 Replies View Related

Ubuntu :: Disable USB Storage Device?

Feb 21, 2011

is there a way or terminal command to disable access to a USB storage device upon insertion given that it is not permitted?

View 5 Replies View Related

Hardware :: Storage Array - How To Tell The Device

Mar 20, 2011

I'm in need to replace a harddrive with higher capacity one but I can't tell which bay is holding on to a drive which has the OS. I don't want to pull the main drive. just wondering if there is a way to light up the led light next to physical drive/bay so I don't accidentally yank out the wrong one.

View 4 Replies View Related

Ubuntu :: Accessing Usb Storage Device On Router?

Apr 10, 2010

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.

View 4 Replies View Related

Ubuntu :: Defragmenting An External Storage Device?

Jul 2, 2010

Are there any tools in Ubuntu that could defragment my MP4 player (Sansa E280R)? One of the songs on my MP4 player isn't showing its Album Name or Artist Name. I know I have the artist and album name tagged onto the MP3 because I set them both & double checked using mp3tag.

View 9 Replies View Related

Programming :: Write The Value To The Proc Entry In The Program?

May 1, 2011

I have a kernel module program which is used to create a entry in the proc file system. I have to read and write values in the entry. Its taken from a online tutorial stuff.how to write the value to the proc entry in the program ?

View 1 Replies View Related

OpenSUSE Hardware :: USB Mass Storage Device Not Mounting

Nov 22, 2009

I am currently using opensuse 11.2 with kde 4.3.1. I am having a problem when I connect my samsung R450. It will not mount or show up as a usable device in either Dolphin, Amarok, or on the device notifier. I have tried manually mounting but I get an error saying it cannot find such device. I did not have any issues using it in 11.1 with KDE 4.2. It is being recognized by my system, but not allowing it to show up as a storage device or being mounted.

output of dmesg:

PHP Code:

output of lsusb:

PHP Code:

When I shut of the usb mass storage on the samsung R450 it switches to modem and is properly detected and usable as modem by my system.I don't have any other problems with other usb devices, such as a digital camera or flash drives, so I don't know if I just missing a system setting or configuring something wrong.

View 9 Replies View Related

Ubuntu :: Kernel Lock With Usb Mass Storage Device ?

Feb 2, 2010

I just discovered that inserting any USB drive causes an immediate hang of the system. The keyboard caps lock and scroll lock lights blink. Only recourse is to power cycle the system. This is after installing Kubuntu 9.10 in January, I don't believe I had occasion to insert a USB drive until tonight. 100% reliable. No entries in logs, presumably because it hangs the kernel when it happens. The /var/log/kern.log file has been corrupted due to file system damage (1+ sectors of some other file inserted into chain) and probably other files as well.

I've not had occasion to report other bugs, but I've found no way to report anything other than application bugs. I tried using "ubuntu-bug kernel" which helpfully said there was no such application as 'kernel' and has been busy "collecting problem information" for the last half hour or more. Somehow I don't think its ever going to finish.

The crash only happens when booted into Kubuntu 9.10. If I boot off of 9.04 then USB drives work fine. Both USB drives I've tried reliably produce the crash. One is a random cheap USB thumb drive (imprinted "Cisco"), the other is a 16GB Corsair Voyager.

View 2 Replies View Related

Ubuntu :: Duplicate Storage Device In Nautilus Under Places

May 26, 2011

I had troubles with my NTFS external hdd mounting without becoming root until I changed my fstab file. However after changing my fstab file I created an error in the place of the one I had fixed. Now since the change I have two entries of my external hard drive in Places. I'd like to know how to remove the duplicate entry.

Provided is my current fstab and screenshot of duplicate:
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
#Entry for /dev/sda1 :
UUID=219f23c6-9079-4297-a7b3-ee41a264780b
/ ext4 errors=remount-ro 0 1
#Entry for /dev/sdb1 :
UUID=486E622C6E62134C /media/Beast ntfs-3g auto, users,
uid=1000, gid=100, utf8, dmask=027, fmask=137 0 0
#Entry for /dev/sda5 :
UUID=064020c3-cf2f-4ba5-b0b6-49667fee4f27 none swap sw 0 0

View 4 Replies View Related

General :: Dynebolic: No Storage Device With Dyne Detected

Mar 20, 2010

I am trying to install dynabolic on my system by docking.I copied dyne/ directory into my partition and updated grub as follows:

title Dyne
root (hd0,0)
kernel (hd0,0)/dyne/2618ckld.krn root=/dev/ram0 rw load_ramdisk=1 prompt_ramdisk=0
ramdisk_start=0 max_loop=64 vga=788
initrd (hd0,0)/dyne/initrd.gz

Still on booting into it,it is saying "No storage device with dyne system found"

why this happens? On the otherhand it is automatically detecting my pendrive in which i have copied dyne/
and boots from it.

View 1 Replies View Related

General :: Handle Bad Block In Mass Storage Device?

Nov 2, 2009

* I am implementing mass storage device on a test board.

* It contains NAND flash.

* Using corresponding "udc driver" and "g_file_storage" I could make my test board enumerate as mass storage device on my Linux machine.

* my 16 MB pen drive (test board) is now ready for read/write.

But there are some Bad Blocks on the NAND.Hence copy is not complete. Although on Linux machine there is no error message. Now , what is there in a normal pen drive which manages the Bad Block or what am I missing so that such Bad Blocks are managed.

Here is the error I get on my test board :

mtdblock: erase of region [0x2c0000, 0x4000] on "Bon 2" failed
end_request: I/O error, dev mtdblock2, sector 5664
Buffer I/O error on device mtdblock2, logical block 708

[code]....

View 3 Replies View Related

OpenSUSE :: Loat Program Entry In Applications Menu?

Mar 11, 2011

I have openSUSE 11.4 KDE (64-bit). Very inexperienced Linux user. I just dragged Thunderbird's icon to the lower panel so that it can be launched quickly. But now when I go to Application Launcher -> Applications -> Internet -> E-mail, the Thunderbird entry is no longer visible.How do I bring it back?

View 3 Replies View Related

Fedora Hardware :: Disable USB Storage Device For ONLY Normal User?

Oct 5, 2010

I am running Fedora 12 OS on my machine. I would like to disable the USB devices for normal users so that usb-storage devices cannot be plugged in. However at the same time a mouse or a keypad may/could have a usb connection. note that root should be able to use the usb storage devices. How can the same be done on fedora 12? I would prefer not to do it via the BIOS options.

View 6 Replies View Related

Fedora Networking :: Can't Connect To Storage Device Since It Has No External Connections

May 29, 2011

I just upgraded to 15 and was wondering if it was possible to specify which devices to prioritize a route through. I have my machine, a laptop, connected to my family's router for an internet connection and a wired connection to a personal router for a faster and private connection between my other two computers and a network storage device. Whenever the laptop is connected to my personal router everything goes through it and it can't connect to any external web sites. But when I unplug it and go only on my family's wireless everything is fine, except I can't connect to the storage device since it has no external connections.

View 11 Replies View Related

Server :: Device Mapper Not Recognizing RAID Storage Luns On RH5?

Feb 26, 2010

Greetings Fellow Knights Of The Penguin Clan....!I am having issues with device mapper seeing a 275GB Raid5 Lun from my SAN storage.I'm using IBM 2145 San Volume Controller.I am able to see a 40 GB Raid 10 device though..

########################################################################
fdisk -l |grep 'dm-*'
Disk /dev/dm-6: 42.9 GB, 42949672960 bytes

[code]....

View 22 Replies View Related

Server :: Use The NAS Storage Device To Store The Home Directories Of User?

Jun 15, 2011

we have purchased the Dell PowerVault NF 500 NAS Storage Box with Window Storage server 2003 is Installed.we have LDAP server for authentication the user in network for accessing network resources.All ubuntu users on client side use ubuntu(LDAP server )for user authentication.when a user logon on client side machine his home directory is created on client machine .

but we want to use the NAS storage device to store the home directories of user.we want to implement that ,whenever a user logon his home directory is created on powerValut NF 500 storage device so that all user data is stored centrally for taking the backup .we want to mount NAS storage device so that user uses when they login and create user profile.

View 1 Replies View Related

Debian Multimedia :: Mount Android Mass Storage Device In Thunar

Apr 12, 2016

Since I use openbox with some packages from Xfce4 (mainly for convenience) I get most stuff "for free" as it were when using openbox, but I can't figure out how to mount android devices in a simple way. I can either do it manually, or install some other file manager that has this capability. This leads me to my question, I've noticed that if I install Nautilus, which automatically mounts android devices OotB, I get this functionality in Thunar as well. This leads me to believe that there is clearly a dependency package of some kind installed when running apt-get install nautilus that enables it, It'd be great to get this functionality in Thunar without having all the nautilus packages just littering about for no good reason. the required package is gvfs-backends, which I should have realized when I was unable to browse smb:// addresses. You forget a lot when you only make a fresh install once every 2 years or so.

View 0 Replies View Related

Fedora Networking :: Home Directories Reside On An EMC Network Storage Device?

Feb 1, 2011

I use CentOS for the servers I am responsible for. This time, I inherited a piece of hardware that CentOS refused to boot up on, so I installed Fedora Core 14. I have NIS and autofs working -- mostly.The home directories reside on an EMC network storage device. The problem is that when I login as a regular user, all the files under the home directory are owned by nobody/nobody, instead of user/group. I believe this has something to do with NFSv3 vs. v4, but I have yet to find the right trick to fix it.

[Code]...

View 2 Replies View Related

General :: Remove Kernel Lock From Unmounted Mass Storage USB Device

Jun 3, 2010

I've searched high and low, and can't figure this one out. I have a older Olympus Camera (2001 or so). When I plug in the USB connection, I get the following log output:
$ dmesg | grep sd
[20047.625076] sd 21:0:0:0: Attached scsi generic sg7 type 0
[20047.627922] sd 21:0:0:0: [sdg] Attached SCSI removable disk

Secondly, the drive is not mounted in the FS, but when I run gphoto2 I get the following error:
$ gphoto2 --list-config
*** Error ***
An error occurred in the io-library ('Could not lock the device'): Camera is already in use.
*** Error (-60: 'Could not lock the device') ***

What command will unmount the drive. For example in Nautilus, I can right click and select "Safely Remove Device". After doing that, the /dev/sg7 and /dev/sdg devices are removed.

The output of gphoto2 is then:
# gphoto2 --list-config
/Camera Configuration/Picture Settings/resolution
/Camera Configuration/Picture Settings/shutter
/Camera Configuration/Picture Settings/aperture
/Camera Configuration/Picture Settings/color
/Camera Configuration/Picture Settings/flash
/Camera Configuration/Picture Settings/whitebalance
/Camera Configuration/Picture Settings/focus-mode
/Camera Configuration/Picture Settings/focus-pos
/Camera Configuration/Picture Settings/exp
/Camera Configuration/Picture Settings/exp-meter
/Camera Configuration/Picture Settings/zoom
/Camera Configuration/Picture Settings/dzoom
/Camera Configuration/Picture Settings/iso
/Camera Configuration/Camera Settings/date-time
/Camera Configuration/Camera Settings/lcd-mode
/Camera Configuration/Camera Settings/lcd-brightness
/Camera Configuration/Camera Settings/lcd-auto-shutoff
/Camera Configuration/Camera Settings/camera-power-save
/Camera Configuration/Camera Settings/host-power-save
/Camera Configuration/Camera Settings/timefmt

Some things I've tried already are sdparm and sg3_utils, however I am unfamiliar with them, so it's possible I just didn't find the right command.

# mount | grep sdg
# mount | grep sg7
# umount /dev/sg7
umount: /dev/sg7: not mounted
# umount /dev/sdg
umount: /dev/sdg: not mounted
# gphoto2 --list-config

*** Error ***
An error occurred in the io-library ('Could not lock the device'): Camera is already in use.
*** Error (-60: 'Could not lock the device') ***

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved