Ubuntu :: Finding The Mount Point Of A Particular Usb Device

Mar 9, 2010

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...

View 3 Replies


ADVERTISEMENT

General :: Finding Mount Point Path For Windows CIFS Volume Visible In Ubuntu File Browser

Jan 8, 2010

using Ubuntu file browser, I browsed my Windows network and logged on to a Windows PC. Now Ubuntu file browser shows me "C$ on WinPC" as a folder. I can open it, read/write files, etc.But from bash prompt, I don't see anything of type CIFS/SMBFS listed in the output of "mount". Only the usual suspects (like local CDROM). How can refer to Windows files from Linux commandline?

View 6 Replies View Related

General :: Command To Display The Device-fs-uuid-mount Point?

Oct 26, 2010

I need a command to display the next info from my hdd:

device name - filesystem - uuid - mount point

I found blkid but the mount point is not displayed, I've already look in man but there is no parameter for that

View 2 Replies View Related

General :: Mount External USB Drive In Debian To A Mount Point Based On The Volume Name

May 5, 2011

How do I configure my Debian installation to mount external USB drives to mount points based on the volume names of the drives? For instance, if I have a thumb drive with the volume name of "SWORDFISH," how do I have Linux mount it at /media/SWORDFISH? I'm aware that this can be setup in FSTAB, but that requires that I know the UUID of the device beforehand and that I take the time to set each external device up in FSTAB first. That does nothing for me when I have a thumb drive that has never been plugged into my computer before.

This seems to be setup by default in Ubuntu/Kubuntu, but is not working for me with a fresh installation of Debian Squeeze and KDE4. I've spent the past 2 hours Googling for a solution and have turned up nothing. UPDATE: My results are inconsistent. Sometimes Debian mounts devices to mount points based on the volume names, and other times it gives them generic mount points (e.g. /media/usb1).

View 2 Replies View Related

OpenSUSE :: CD / DVD Mount Adds Trailing Blanks To Mount Point?

Feb 16, 2010

On SUSE 11.2 when a CD or DVD is automounted (in the /media directory) it appears that the mount point chosen for the disk always has extra blanks at the end of the mount.

For example, if the label on the CD was DISK-001, the mount point chosen by SUSE is

/media/DISK-001 /

In 11.1 (and earlier) the mount point would have been

/media/DISK-001/

I'm assuming that the trailing blanks are filling in unused or blank chars at the end of the CD label.

Is there any way to change this annoying behavior? I much prefer NOT to have trailing blanks in the mount point.

View 3 Replies View Related

Server :: Auto Mount USB Drive To Specified Mount Point After Reboot

Jul 19, 2010

I have servers installed with RHEL 4 2.6.9-89.0.9 ELsmp. I tried using uuid and label in /etc/fstab to automount usb drives to mountpoints that I specify after reboot. Unfortunately, it just does not work in all my RHEL4 servers. After every reboot, /etc/fstab will be automatically modified and all configurations related to my USB drives will be changed. Irregardless of whether i use UUID or LABEL in my /etc/fstab.However, it works on RHEL5. But, upgrading is not an option in my environment. I have been googling around looking for alternatives but everything seems to point back to using UUID or LABEL in /etc/fstab. Anyone has tried something that works? Please help me, thank you.

View 7 Replies View Related

Ubuntu Installation :: Finding Packages That Are Not On An LTS Point Release CD?

Mar 17, 2010

A while ago I posted this thread, with no responses:[URL].. I deploy into an environment that for "security" reasons cannot be kept up to date with wherever the ubuntu archive is up to (with awareness that this is avoiding security updates...). It is a sealed system not connected to the internet. I'm working with the 8.04.1 LTS, and my customer is in an 'if it ain't broke don't change it' frame of mind w.r.t. moving to 8.04.4. My main problem comes in two variations: 1. Some packages my runtime system depends on are not distributed on the 8.04.1 DVD, but were available in the full ubuntu archive at the time of the point release (and still are, in an up-to-date form). My concern is that if I take the 8.04.4-ish version of a package it will not work correctly with an otherwise 8.04.1 system. In general I am expecting that it *might*, and the versioned dependencies it has on other packages will be loose enough. 2. Some packages my build system (which produces what I put onto the runtime system) depend on are also not on the DVD. So almost a repeat of 1 above, except that I am generally running afoul of strictly-versioned dependencies (the -dev version of a lib package depends on the matching lib package having exactly the same version). If the non-dev lib package is on the DVD, but is not the same version as the -dev package I have from an archive mirror taken just before the 8.04.1 release, I believe I'm screwed?

So my two questions are: a. Is there such a thing as a copy of the full ubuntu archive taken at the exact time the 8.04.1 LTS was released? I think that would solve most of my problems.

View 1 Replies View Related

Ubuntu Networking :: Finding A Software To Use A Laptop As An Access Point

May 6, 2010

if exists a software to use a laptop as an access point

View 1 Replies View Related

Ubuntu :: Mount Point 0 Does Not Exist?

Feb 26, 2010

I am dual-bootng Ubuntu 9.10 and Mint 8, both of which use GRUB2. The Mint 8 GRUB sets the initial menu since Mint was loaded after Ubuuntu 9.10. Since both use GRUB2 I was not concerned about this.

Both before the installation of Mint and afterward I see a series of messages fly by on the screen when Ubuntu is booted. These come right after the initial presentation of the Ubuntu logo.

By restarting several times I can read the first several lines. They are:

Mount: Mount Point 0 does not exist
Mount 0 terminated with status 32
Mountall: Filesystem could not be mounted

Further lines follow but I would have to reboot umpteen times to have any chance of copying those.

I have looked in the various Ubuntu GRUB2 files for "Mount Point 0". I do not see any reference to it.

GParted, BKID and etc/fstab all agree on the UUIDs set for my Ubuntu/, Ubuntu Home and Ubuntu swap file.

I see nothing like this when I boot Mint 8.

My questions:

What is the point to error messages (I assume that is what they are) that fly by too quickly to be read? Are they saved to a logfile somewhere?

What is "Mount Point 0"?

What does it mean in this context to say "Filesystem could not be mounted"?

This is all very curious because Ubuntu proceeds to mount and run just fine.

What is Ubuntu trying to do as it starts up that it cannot do?

How do I repair whatever has to be repaired in order to turn off these messages?

I have looked through such GRUB2 dcumentation as I can find without seeing any reference to this.

View 7 Replies View Related

Ubuntu :: Accessing Mount Point Over NFS

May 22, 2010

I have a folder shared over NFS that contains three sub folders:
(Machine A)
/usr/nfsshare/a
/usr/nfsshare/b
/usr/nfsshare/c

I can see these three folders just fine on machine B via nfs.
sudo mount machineA:/usr/nfsshare /mnt/ShareMountOnB
Now I want to mount a second drive in machine A, and mount it as a fourth shared folder:
mkdir /usr/nfsshare/d
sudo mount /dev/sdb1 /usr/nfsshare/d

I can see and access all four folders on machine A just fine. I can see all four folders on machine B in /mnt/ShareMountOnB, but when I descend into folder d, it is empty! Bizarrely I can create files in this empty folder d on machine B, but I have no idea where they are being held. They are certainly not in machine A. What I have to do to access the real contents of folder d. I have already changed all permissions and owners to be identical to the other folders.Sharing it over samba to a Windows PC works fine.

View 1 Replies View Related

Ubuntu :: Add Additional Mount Point In 11.04?

Apr 8, 2011

I just installed 11.04 beta yesterday and was following along with this article so I could setup a "Storage" partition and always have access to the same files in win 7 or ubuntu. [URL]

The problem happens when you try to install and use ntfs-config and run it. Here is the description from the article:

Quote:

Originally Posted by lifhacker article

Finally! Head to the Applications menu and pick the Ubuntu Software Center. In there, search for "ntfs-config," and double-click on the NTFS Configuration Tool that's the first result. Install it, then close the Software Center. If you've got the "Storage" or Windows 7 partitions mounted, head to any location in Places and then click the eject icon next to those drives in the left-hand sidebar. Now head to the System->Administration menu and pick the NTFS Configuration Tool.

You'll see a few partitions listed, likely as /dev/sda1, /dev/sda2, and the like. If you only want your storage drive, it should be listed as /dev/sda3 or something similar--just not the first or second options. Check the box for "Add," click in the "Mount point" column to give it a name (Storage, perhaps?), and hit "Apply." Check both boxes on the next window to allow read/write access, and hit OK, and you're done. Now the drive with all your stuff is accessible to Windows and Linux at all times.

When I try to run the ntfs-config, I get the following.

However, in the software center there is a note below the ntfs-config download saying:

Quote:

Originally Posted by Software Center

It just so happens that this program is a newer and improved version, but very few people know about it. It's better to install the disk-manager.

View 9 Replies View Related

Ubuntu :: Mount Point Disappearing / What's Going On?

Apr 15, 2011

I've just formatted a new USB drive to ext4. After creating a mountpoint (/media/Vids) and mounting it I changed permissions so my user owned the filesystem. I added the filesystem to /etc/fstab.

However, when unmounting the drive the mountpoint directory disappeared and I have to manually recreate the mountpoint everytime I want to remount the drive. What's going on?

View 4 Replies View Related

Ubuntu :: Mount Point For External USB Hub

Feb 3, 2010

Been trying to find out the mount point for an external usb hub. I can find information with lsusb :

Bus 001 Device 002: ID 05e3:0608
and dmesg:
[0.924293] hub 1-0:1.0: 4 ports detected

But can't seem to find where the hub is mounted. I've tried / dev and /etc/fstab and mtab and /media. BTW what does [0.924293] signify?

View 9 Replies View Related

Ubuntu :: Fresh 9.10 Install Reboot Error No Device - Mount Partition Mount: Can't Fin?

Jun 24, 2010

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)

View 1 Replies View Related

Ubuntu Networking :: Where Is The Mount Point For Smb Shares

May 11, 2010

Where are the mount points for smb shares connected via "Places -> Connect to Server"? I assumed them in one of the usual places like

/mnt
or
/media

but these folders are both empty. There are a couple of applications which are not capable of accessing my shares because i can't navigate to the right location...

View 9 Replies View Related

Ubuntu :: Changing Mount Point Of Drive

May 23, 2010

I just removed ubuntu and installed kubuntu, just for something different. i had my home and / folders partitioned separately for ease of upgrade, now during the update process i forgot to make sure the home directory would mount the right partition. for fear of loosing data, so my question is, is there any way of changing the mount point of the drive one the OS is installed.

View 9 Replies View Related

Ubuntu Installation :: Mount Point At Boot

Jun 24, 2010

I have a Pc with 2 hard drive, yesterday I installed ubuntu lucid but I forgot to set a mount point (let's say /datas) during partitioning, and now I have the hard drive icon on my Desktop. I would like to set the mount point during boot, what I can I do? Insert a fstab line? If I do that, the desktop icon si still there, so, what does ubuntu do when I configure a mount point on a secon har drive during installation?!

View 3 Replies View Related

Ubuntu :: Deleting A Mount Point In /media

Oct 9, 2010

I have a bad mount point, I had some mounting problems before, and made this wrong entry, when I mount the volume it works but then the system tells me the hard drive is empty, which is wrong and some kind of error.

My problem here is pretty simple, this point is in /media, but it disappears when the volume is unmounted. I want to delete it and re-mount using the storage device manager, which hopefully will solve the problem.

So how can I delete this entry when it disappears? I don't really want to delete it while the volume is attached and mounted.

View 9 Replies View Related

Ubuntu Installation :: Use Select Mount Point As / Then Ext 4?

Feb 18, 2011

I've not got enough space on one partition so would like to install on to an empty partition, how do I do this? When I'm at the The allocate space screen do I select the partition I want to use then select mount point as / then ext 4?

View 1 Replies View Related

Ubuntu :: Mount Point Swap Does Not Exist

Apr 25, 2011

when i test errors by "sudo mount -a" i got this

mount: mount point swap does not exist

after writing this command "sudo gedit /etc/fstab" ,,,, i got this

UUID=5148630128FE30C4 /media/Collection401 ntfs-3g defaults 0 0
UUID=FE4C11644C1118CB /media/Collection402 ntfs-3g defaults 0 0
UUID=6e73cf26-edcd-42b0-884c-e2686dd70d15 / ext3 defaults 0 1
UUID= swap swap sw 0 0
UUID=7DF3923D63A29C0E /media/Eng ntfs-3g defaults 0 0
UUID=492905577CF6BDDF /media/Software ntfs-3g defaults 0 0
/dev/sr0 swap udf,iso9660 defaults 0 0

View 4 Replies View Related

Ubuntu :: Mount Point Failed For CDROM?

May 27, 2011

I am trying to add my natty Live Cd as a repository, by issuing apt-cdrom add, but even autodetecting the mount point fails.
Code:
apt-cdrom --auto-detect add
How do I determine the mount point for the cdrom in order to tell apt-cdrom where to look?

Output:
Code:
Using CD-ROM mount point /media/apt/
Identifying..
E: Unable to stat the mount point /media/Ubuntu-4011.04-40amd64/ - stat (2: No such file or directory)
E: Unable to stat the mount point /media/apt/ - stat (2: No such file or directory)
W: Failed to mount '/dev/sr0' to '/media/apt/'
E: Unable to change to /media/apt/ - chdir (2: No such file or directory)
E: Unable to stat the mount point /media/Ubuntu-4011.04-40amd64/ - stat (2: No such file or directory)

View 5 Replies View Related

Ubuntu :: Mount Point For External Hard Disk?

Jan 11, 2010

I have just updated to karmic, and I found that my external hard disk partitions, previously mounted under /media/disk and /media/fat are now referenced by something looking like a UUID, namely /media/7b096ea4-60ee-46b1-95cd-1851b051c40d and /media/4951-95D9.

Is there a way to revert to the old settings? Any application relying on the files on the external hard disk has now stopped working. While I certainly could just change reference (assuming the UUID does not change every session), I'd rather use the old names if possible.

View 5 Replies View Related

Ubuntu :: RAID Configuration - HD Crashes (No Mount Point)

Mar 17, 2010

We have 4 HDs on our server. One of them broke last night. I could see a message on the server and after restarting the S.M.A.R.T. on the BIOS was recognizing one HD as bad. After removing the failing HD, the server is now up and running. I do not remember how I configured the HDs. During the installation I had a few problems and I change a few times what I wanted to do. I am sure I had at least a RAID0 with 2 disks but I could have put all the 4 disk in the RAID having 2 disks as spare drives or I may have created another volume for the other 2....

dmraid return: No raid disks
Code:
$ sudo dmraid -ay -vvv -d
WARN: locking /var/lock/dmraid/.lock
NOTICE: /dev/sdc: asr discovering
NOTICE: /dev/sdc: ddf1 discovering
NOTICE: /dev/sdc: hpt37x discovering
NOTICE: /dev/sdc: hpt45x discovering
NOTICE: /dev/sdc: isw discovering
DEBUG: not isw at 500107860992
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 500106779136 .....
no raid disks
WARN: unlocking /var/lock/dmraid/.lock
MountManager seems to report that sda and sdb belong to linux_raid_member.
However there is no mount point.

Questions:
1-How do I find how the disk were and are configured?
2-How can I find what was on the disk that died? (Was it a spare drive or one of the 2 in mirror)?
3-What do I need to do now to be sure that the mirroring is working OK? (considering that there is a spare drive). Do I need to use a command to let ubuntu mirror the drive on the new one?
4-What do I need to do when I get a replacement of the broken disk?
5-What is an utility that can show me easily how the disks are configured and eventually makes a change.

View 3 Replies View Related

Ubuntu :: New Clean Install - Option For Mount Point

Jul 14, 2010

I have made a clean install number of times. At the point where you (I always do this) manually select the partition where you want Ubuntu to be installed there is a option where you want the Mount Point. The options are / /boot /home /tmp /usr etc. up to now I have always used / but I'm not sure effect choosing some of the options would be.

View 1 Replies View Related

Ubuntu Installation :: Synaptic Keeps Changing Mount Point?

Oct 4, 2010

i am trying to install new packages on ubuntu 10.04. the new packages are all on DVD's. I have loaded the DVD's as software repositories

Code:

# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

[code]....

i do so, then i get an error message from ubuntu saying that it failed to fetch several packages from the disc listed above.
when i check the mount point of the /cdrom/ it has now been changed to media/apt/ so i'm guessing synaptic is looking for media/cdrom/ but cannot find it. how do i get it to stop changing the name of the mount point and why is it doing this? could it have something to do with my modem? as i have noticed that for the first time since i have been using ubuntu (since ver 7.10, 8.04, 9.04) ubuntu 10.04 is listing my modem huawei e220 (usb hsdpa modem) as a disc drive.

View 2 Replies View Related

Ubuntu Installation :: Swap Mount Point For 11.04 Beta?

Apr 16, 2011

I'm installing Ubuntu 11.04 beta and partitioning into 3 parts. One for root, one for home, and one for swap.In the partitioning utility you can go into during installation (at the beginning of installation actually) there is a drop down box for selecting the mount point of the partition. I'm good on the first two but am not sure what to select for swap. I'm searching on the Internet too but am not seeing what I need right off.

View 5 Replies View Related

Ubuntu :: Changing Mount Point Of /home After Installing?

May 20, 2011

i just installed the new vision of Ubuntu 11.04 , i created 3 partitions 1 for swap, the other one for / and the last one for /home, but by mistake instead of selecting /home i chose /boot, and i want to change it now, i already tried changing my FSTAB and i ended up with a corrupted Desktop when i restarted. i had to change my FSTAB using VI command here you have a copy of my fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier

[code]....

View 5 Replies View Related

Ubuntu Multimedia :: IPod Mount Point Blocked?

May 23, 2011

i tied to plug my ipod in just now and it says connected on the ipod but is not mounting on my ubuntu desktop or with gtkpod. i also have a g1 plugged in via usb with an 8gb mem card mounted on the phone but that wont mount on the computer either. Oddly my usb flash drive will mount. i forgot where i seen the message but it says that my ipod is blocked from being mounted. I ran mount on the commandline and it said nothing about an ipod or android phone at all. i can see the devices in /dev/disk/by-label/. And it shows iPod my g1 and my live cd. btw i am running a live cd because of my faulty hard drive

View 3 Replies View Related

Ubuntu :: 11.04 Manual Partitioner - Cannot Enter Mount Point?

Jun 18, 2011

I am installing 11.04 on a test PC. My standard drive layout, developed over many years and many distros is as follows:

sda1 /
sda2 /home
sda3 swap

[code]....

View 6 Replies View Related

Red Hat / Fedora :: NFS Mount Point On Two Servers?

Jun 1, 2010

I am trying to mount /NFS as nfs mountpoint on two servers ( A & B ) having OS OEL 5. After mounting the nfs filesystem, both of them behave normally for around 10 mins and after that the NFS file handle become stale and the mountpoints dont respond. While executing df -kh, the output hang out and the /var/log/messages show the following message:

May 27 15:48:56 earth mountd[3078]: Cannot export /NFS, possibly unsupported filesystem or fsid= required
May 28 04:04:20 earth kernel: nfs: server nas not responding, still trying
May 28 10:11:51 earth kernel: nfs: server nas not responding, still trying

The fstab entries for /NFS mountpoint on both servers is :
nas:/NFS /NFS nfs rw,bg,hard,nointr,tcp,nfsvers=3,timeo=600,rsize=32 768,wsize=32768,acti
meo=0 1 2

/etc/export entries on both server is :
/NFS *(rw,sync,no_wdelay,insecure_locks,no_root_squash)

View 4 Replies View Related







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