Software :: Fedora 10 Hot-plug Or Otherwise Mount A USB Device
Feb 15, 2010
I want to use a USB "stick" or "pen drive" or whatever you call it to carry files elsewhere.
Nothing appears in "places" after I plug it in.
I am comfortable with the shell. That is not a problem. In Fedora 6, it would appear in /dev/mount or something--I forgot. With Fedora 10, I have no idea where to look.
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.
I've bought this remote control that sais it works in Vista, XP etc. without any driver. Basically it has a bunch of buttons that replace the mouse and a bunch of others that replace basic keyboard functions (arrows, enter, escape). It has a USB IR receiver so I thought I could simply use it as a lirc remote in Ubuntu.
However, it sais absolutely nothing on it except for "PCremote" so during lirc installation I have no idea what to choose. And, interestingly, I accidentally discovered that it works in Ubuntu, too, out of the box. Controlling the mouse and acting like a keyboard. Is there a way I can forfeit current functionality and just get it to work as a customizable lirc remote? Or even better, keep current functionality but change it only for certain apps (xbmc, vlc etc)?
since I installed fedora 13 in my laptop, every time I want to access my windows drive it asks for root password to authenticate! I know there must be a way to fix this issue, i did this in my Fedora 10, but I forgot how I did it.Can anyone plz help me, so that only one authentication is sufficient, every time I restart/ start it asks for authentication which is very boring and I hate this
Fedora 14 is used throughout the whole problem. The problem started when I wanted to install Fedora 15 DVD by making a bootable USB key. The size of the USB stick is 8 GB. The problem happened when I (following the tutorial) wrote the line [URL]... livecd-iso-to-disk command associated with the path to the ISO DVD and the partition on the USB stick. the USB stick has the device name /dev/sdb , 1 partition sdb1.
I then noticed that it was mentioned to unmount the USB drive before doing this command. so, while the terminal had written in it "Checking" , I pressed CTRL+C to stop the execution and then pressed on the arrow beside the device in the computer window (Which I think that it unmounts the device). The actual problem started here. I then tried to mount the device but couldn't, It said the device was not found. so I removed the drive and inserted it again, the OS didn't automount the USB drive, I tried to manually mount it but it said the device is not found or doesn't exist. then I used fdisk -l, It said that the sdb didn't have a valid partition table. Also the size of the device is wrongly reported. It should be 8 GB but it is reported to be 2 TB?!
[code]....
I think the wrong partition table made it think that it has a certain number of sectors which isn't real,that made it think that the device is 2 TB large....
After upgrading to fedora 15, I have problems mounting XFS filesystem.
The short tale: Code: 08:01:38 localhost root>mount -t xfs -vv /dev/sdb1 /data/disks/old mount: /dev/sdb1 already mounted or /data/disks/old busy 08:01:39 localhost root>fuser /data/disks/old 08:01:41 localhost root>lsof /data/disks/old 08:01:44 localhost root>xfs_repair -t 1 /dev/sdb1 xfs_repair: cannot open /dev/sdb1: Device or resource busy 08:01:48 localhost root>fuser -mu /dev/sdb1 08:02:08 localhost root>dmesg | tail -n 5 [1655779.759764] SGI XFS Quota Management subsystem [1659275.905756] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled [1659275.908745] SGI XFS Quota Management subsystem [1659389.154986] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled [1659389.156519] SGI XFS Quota Management subsystem
Device is not mounted, and directory is not in use, it has just been created. There is nothing in log files that could remotely point the cause. After removing device (echo 1 > /sys/block/sdb/device/delete) and reattaching it, disk started working.
what now trying to mount partition get this error this is the partition ubuntu 9.10 is installed on and upon reboot error no device with a long string. mount: can't find /dev/sda6/mnt in /etc/fstab or /etc/mtab
so now that I believe I've successfully mounted the partition how do I direct the bootloader to this partition /dev/sda6 on /media/11076e45-e27d-470b-bb6d-6894f7809a0c type ext4 (rw,nosuid,nodev,uhelper=devkit)
I've got the F13 LiveCD that I was able to boot and use using the "nomodeset" boot option. From the desktop I'm trying to perform an Install to Hard Drive. I've read the Install from LiveCD post regarding the creation of a /boot partition and a / root partition. I've tried creating them without the LVM group and with. But every time I appempt to install I get...
An error occurred mounting device proc as /proc: mount failed: (9, None). This is a fatal error and the install cannot continue.
Hardware is a Sager 8887 (P4, 3.06HT, 60GB HDD, Radeon 9000 graphics adapter)
First, hello from me to this forum, i just installed fedora 11 (i switched from ubuntu) Secondly, i need your help about mp3 plugin and this message from setroubleshooter
Code: SELinux is preventing consoletype (consoletype_t) "read write" pppd_t. Now, for the mp3, i installed the xmms()plugin, but it still doesent have sound and it wont open mp3 formats. About the second problem, i read thread that i must make some file and to "allow" the troubleshooter something(dunno what) edit i can play music in a program called xine, but i want to play the music in rhythmbox and movie player ps if there are any more plugins that i need to install for watching movies, please write what i must install
I just plugged my phone containing a new SD card (bought this morning) to my PC, in order to transfert some data. The problem is that the device is detected in lsusb but doesn't appear in fdisk output (otherwise I could mount it by mount /dev/device_name /mnt/temp). It doesn't appear in GParted or as desktop icon, even after rebooting my PC keeping the device plugged in.
Is it possible to mount the SD card using the lsusb ID? Here are my outputs (the device has ID 0fce:01a7)
Code: Select allroot@dynamic:/home/dovah# lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I'm trying to mount my NAS device via NFS with suse 11.1, but up to now it failed. The NAS does support NFS, but it requires a UID and a user name and up to now I could not figure out the correct nfs mount options for that.
If I just make mount 192.168.0.2:/nas1 /mnt a get the error message "mount.nfs: access denied by server while mounting 192.168.0.2:/nas1". So can somebody please tell me the correct options for user name and user id which the mount should use. And, preferable the correct entry for the etc/fstab file to make this mount being executed automatically during startup. I studied the mount(8) and nfs manpages several times, but I do still have no idea how to make it.
How can I find which /dev/? device to mount my USB hard drive on redhat 3 taroon, I've been googling a lot and checked log files and still no clue. I'm trying my last chance with you experts, # /sbin/fdisk -lgives nothing about the USB drive
# lsusb -vv Bus 004 Device 005: ID 059f:0951 LaCie, Ltd Device Descriptor:
OS: Ubuntu 10.04 (in VirtualBox virtual machine) how to mount a device for all users. I tried everything and can mount it only for root. I'm trying to mount shared device in VirtualBox virtual machine.I added record in `fstab` file:
shared /mnt/shared vboxsf rw 0 0
I got /mnt/shared permissons: drwx------I've tried to add options 'rw,user' in fstab, but the option 'user' is not supported by mount program in my system.
Current stable Debian runs on both machines. I connect a digital camera to the USB on the server ("a") and the camera's filesystem is mounted automatically.I want that same filesystem to be made available to the other machine ("b") through nfs.What should be in fstab for that filesystem, or is something else needed in the configuration for "b" in order to access the filesystem which is physically on "a"?
I am trying to set up my usb device to be available to mount and umount only for me, not for other users. Using Slackware 12.2Entry in fstab is as follows:
I've never owned an external SATA device, so I'm curious whether these devices are hotpluggable in Fedora. Some computer cases and case inserts have an external SATA connector that plugs into the motherbords built-in SATA connectors and extends the connection so it reaches outside the case. But can you plug and unplug SATA devices just as you do USB devices?
I am writing an sample LDAP Plug-in on RHDS. While compiling plug-in file, i am getting an error related to missing header files(prtypes.h, prprf.h etc..).
'slapi-plugin.h' file is generated in the path /usr/include/dirsrv. But inside this file, they are using some other header files like prtypes.h, prprf.h, etc. But there is no files generated with this names. Because of this i am getting "No such file or directory" error for these files. I can get these header files from Netscape coporation(Thirdpary), but can we use the same header files for Redhat or is there any separate header files are there for RHDS.
I just noticed that when I plug in my headphones, I still hear sound through my desktop speakers when I am using Fedora 15. I have an HP pavilion desktop, running Fedora 15 and Windows Vista.
It's not possible to mount external USB (ntfs) disks with a non-root user using the Device Notifier or Dolphin. The error is:
Could not mount the following device: MyBook 2
org.freedesktop.UDisks.Error.PermissionDenied: Authentication is required
It is a permission problem; running Dolphin under root and clicking the USB disk mounts it without problems. The same should be possible to an ordinary user. The Update Applet does not work for the same reason (I can only install updates using yast).
Of course, I googled the error and there were a number of possible solutions, which I all tried. That includes allowing the action in the policy and adding the user in AdminIdentities local-authority. The file /usr/share/polkit-1/actions/org.freedesktop.udisks.policy contains "yes" for every option. Needless to say it doesn't make sense and I'm out of options.
I have a Corsair R60 ssd disk which is a disk with both sata and usb connectors. But the usb thing seems to be a bit non-standard, or maybe its just my fedora linux.When I insert the disk using a usb cabel to a running Fedora 14 linux system, a device called /dev/sg3 is added but that is all. No new /dev/sd* device is created so I can't mount the disk.
So the disk is there. (The last entry) but my linux will for some reason not see it as a usb hard disk. When I insert other usb disks they work fine. It is only this specific disk which causes problems. I have tried on 3 different computers with the same result.
A hint to the problem may be that if I add the disk to a windows system(With usb) the disk is called "A fixed disk" and not a portable disk as expected. The disk works fine with linux If i connect it with the sata cabel, but I would really like to have it working with usb too. (To mount it on computers without sata).
Added:I did try to mount /dev/sg3 but mount say that its not a block device. (File say Its a character special device).
Added output from dmesg:
[ 97.454073] usb 7-1: USB disconnect, address 2 [ 105.913055] hub 2-0:1.0: unable to enumerate USB device on port 3 [ 107.048054] usb 2-3: new high speed USB device using ehci_hcd and address 5 [ 107.162900] usb 2-3: New USB device found, idVendor=1b1c, idProduct=1ab8
[code]....
I found an other guy with exactly the same problem [URL] so I think its beginning to look like a bug in the drives firmware or in the linux kernel.
Final update:Corsair have said that the disk design is broken and there does not seem to be any way to make it work.
I installed ifuse (a utility to mount your iPhone or iPod touch via the USB cable) and I want this to be the default way my iPhone is mounted when I connect it. Currently, when I connect it, it gets mounted by the gvfs (Gnome virtual file system) at ~/.gvfs/iPhone. Either one change should be made (the 'default command to execute when this device is connected') or two changes (tell gvfs not to mount, and tell ifuse to automount). I don't know how I can get this to work.
In 10.04 I was able to plug in my MP3 player and move songs to and fro in Banshee or rhythmbox. Now, I can mount it, but it freezes banshee when trying to access it from banshee (it does appear in the list).
I am trying to expand my Ubuntu partition into my Windows 7 C: drive, but the win7 partioner will not let me shrink it because of immovable files. Is there anyway for me to but an loopback device in the windows partion, and have Ubuntu boot with that as the root device?
I'm developing a little script that automatically detects the insertion of a usb device and tries to open the directory of this device in nautilus. I am using Python
So far I was able to sample and compare the changes that occur in the output of 'lsusb' command and get information pertaining to the addition and removal of usb devices.
Now I want to know if we can use that information (or some other info present in the usb sybsyste --/sys/bus/usb folder) to determine exactly where this device has been mounted.
I know you might recommend using 'mount' as a quick way to do the same. I have already done that, but the limitation is that mount only gives u the mountpoint information. How does one (using a program/logic) determine which mount point corresponds to which device.
If I were to plug in two devices together, and both were automatically mounted, how will I be able to tell which mountpoint corresponded to which device? the output of lsusb provides no information whatsoever about where the device is mounted. So its kind of a deadlock
from lsusb ive been able to gather : Device name, serial and bus number and device number
Another thing i've noticed is the 'autoplay'. Whenever I insert a my music player into my computer, it gets mounted automatically and I'm presented with options about simply opening the file or playing it with rhythmbox... now if all that was being done was polling the output of mount, they would not be able to know that the device inserted was a music player (that info u can get from the /sys/bus/usb folder only using the device class and subclass info). So obviously the two are linked somewhere...