Ubuntu :: Use Ifuse Instead Of Gvfs To Mount Device
May 29, 2010
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.
-add all network shares to the nautilus favourite places
-our script is working fine if you are running the script manually from an opened session
-it's not working when placed in /etc/profile.d
What the script is doing:
-reading the .bat script name from the AD using the user login
-mounting the netlogon share
-reading the content of the netlogon script
-finding the network share names and adding them to the nautilus favourite places
What is failing: it does not mount the netlogon share using gvfs-mount Maybe because it's run too early in the process? note that a new user may log in any time, and we want this to be entirely automatic. So we cannot put the script in /home/login/*, as the home is not created yet at first login.
setup consist of three machines: 2 servers (A and B)(ubuntu) and my local laptop Server A is a company controlled server which holds project data Server B is our office local server, which we use for development purposes. The problem occurs when i ssh from my local laptop to server B. After loggin in, i execute a script to transfer data from A to B. This script mounts server A using gvfs-mount. It fails to mount completely and gives me the following error
Code:
Error mounting location: volume doesn't implement mount
However if i log onto server B, using the servers keyboard and monitor (using a gnome session) i can execute the line. To verify that it's something related to the ssh login, i tried the following: (My local laptop is also running ubuntu) from laptop open a terminal. See the gvfs mount work as expected. open another terminal and ssh localhost tried to execute gvfs-mount from the local ssh session and i get the above mentioned error. After googling a bit, i found that it might related to dbus (which i know _nothing_ about) and i tried
Code:
dbus-launch gvfs-mount and then tried to gvfs-mount server A, but it fails again.
When I use nautilus open my home directory, everything is OK except that the file contents in the home directory are not presented. It seems that nautilus is still waiting and busy.
After that, I try to enter the user's home directory by the Terminal and succeed. I can use 'ls' to display the file in the home directory, But when I use 'ls -a' to print the hiden files, again the Terminal seem to be lock. the 'ls -a' is locked, I fail to 'kill' it.
At last, I find that everything that connects to the behavior which need to enter, delete or just dsplay the /home/$USER/.gvfs will fail and lock, and without any error message.
I have a samba based domain controller which has a share with limited privileges for different usernames. When I log in the gvfs wizard in ubuntu everything is all good and I can access all the files I am supposed to be able to.
I suspect it has to do with the owner and group of the directory not being a user in the local machine. When mounted via gvfs the owner and group are the local user and group whereas when mounted via the mount command the user and group are foreign uids and gids.I had thought that gvfs would have relied on mount() system call under the bonnet but is this not the case as gvfs mounts don't appear in the list when you type 'mount'.Can this be solved in the standard smbfs mount or is gvfs simply a better implementation that does some magic behind the scenes to set the owner and groups in accordance with the smb protocol?
Recently upgraded to F12. K3B can't burn DVDs. Drive was working fine in Fedora 10 before the upgrade, and I've applied all updates.
Here is the output when run from console:
Code:
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/SlowCoder/.gvfs Output information may be incomplete. (K3bDevice::HalConnection) unlock queued for /org/freedesktop/Hal/devices/storage_model_DVD__RW_GA10N First sec data area: 43:41:33 (LBA 196608) (402653184
Code: I'm continuing on a quest to sync my iOS4 iPhone in xubuntu lucid, and the above is what I get after mounting it with iFuse. Unsurprisingly, I can't actually use it after being mounted with permissions like that. With the iPhone unmounted, an ls -al looks like this
Code: drwxrwxrwx 2 root root 4096 2010-09-25 15:51 iPhone Has anyone even seen '?' permissions before?
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)
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.
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...
Recently installed some minor software, some games and Ubuntu Tweak, I am not sure if that's what caused this issue or not. I shutdown after the installations, then when I tried to start back up the small, white ubuntu logo appears just like it normally does, then it just goes to a black screen. I turned off the computer and restarted in (Recovery Mode). It goes about its thing then it says it is waiting for root file system, then after about 30 seconds it says "Gave up waiting for Root File System" how to fix this without reinstalling?
The CD-ROM on this computer, my ubuntu laptop, does not seem to be working properly. It works on and off. I burned a .iso image yesterday but today I can't get it to even read the CD in my drive. I just want to read the CD to see if it is the Ubuntu Live CD I burned a while ago or if it is the Vista Recovery CD.
TL;DR: CD-ROM isn't working properly. When I click on the drive this is the error.
Code:
mount: special device /dev/scd0 does not exist
P.S. I am trying to get Windows Office to install using Wine because I am tired of windows. I know that open office is great. but I have to have excel 2007 and word 2007 for school.
Sometimes when I restart, my NTFS drives will mount in incorrect directories. It seems to only happen when I plug in USB devices such as flash drives, and keep them in when I boot. I have the fstab file configured correctly, but it still resorts to some odd default mounting points. Edit suposedly the device name changes whenever I boot with a flash drive plugged in. Is there anyway to mount a disk to a dir without pointing to its changing device name.
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:
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 posted a similar problem sometime last week...but a little has changed(mainly I can access my files now): I recently performed the auto upgrade to Ubuntu 10.04 and upon restart of my machine I am presented with 3 screens. The first is a simple "GRUB loading". The second is "mount: mounting none on /dev failed: no such device". The third screen is a series of initializations, i.e. /dev/sda1:
clean, (number of files), (number of blocks) *setting preliminary keymap... and so on until it hits the line: *checking battery status
at which point it will cease loading until i press the power button. The next thing that occurs is it kills all the processes it just initialized and shuts down the computer. I read that this is likely a problem from loading the wrong kernel and I can get into my files (using a boot 9.10 boot key). The problem is I don't know what files to change in order to get my system booting the right kernel.
I got a sort of usb connected device(not an external enclosure) so i can connect a sata hard drive into a machine that only has ide connections but the drive is not mounting. I am not very good at mounting slave hard drives anyway ,,,,never been able to get one happening without help. I am wanting to read this drive as i killed another desktop machine(i think the mb) and i need the data off the hard drive. The drive is shown in a directory and in the media directory. Can't think of what else sorry as i am so tired from testing everything out of the machine that i killed.....
I used dual booting with Windows Xp and Ubuntu 10.04. Because errors, I reinstall Windows and then I could not enter GRUB, and Ubuntu partition disappear. I tried to reinstall ubuntu using live CD but I could not detect last ubuntu partitions. After I installed fresh Ubuntu on new partition, I got error message like this:
Unable to mount floppy0 Mount: block device /dev/fd0 is write protected, mounting read-only Mount: could not determine the file system type, and none was specified
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
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.