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).
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.
I followed this tutorial to setup a mail server, followed it to the letter, double/triple/quadruple checked everything for human error, and I can't find anything.[URL].. What's happening is it seems that postfix is adding a trailing slash to usernames when it does the user lookup, so they don't exist and then fail. I've attached the log below.
Code: May 11 01:06:27 vmail postfix/smtpd: connect from localhost[127.0.0.1] May 11 01:06:55 vmail postfix/smtpd: 3372E982BC: client=localhost[127.0.0.1] May 11 01:07:18 vmail postfix/cleanup: 3372E982BC: message-
I can see, that openSUSE mounts cdroms (at /media) according to cd label (eg. /media/data_dvd_x). My problem is, that several applications (eg. a cd cataloguer) expecting to find the cd at /media/cdrom0, or something similar. Is it possible to fix it? (Tell openSUSE to mount cds at a single point)?
how to get openSUSE 11.2 to automount a USB drive (Creative Zen to be precise) to a static mount point? At the moment KDE is filling up my media folder with disc-x folders and the podcatching software keeps picking the wrong one to sync to. It's not my PC so command-line mounting is out of the question.
I've tried to get an opensuse box I have to share a directory via NFS. I've failed each time, but I thought that the third time, I'd enlist some help from the forums, if I could. how do I know that the nfs server and not the client is the problem? Short answer is: I don't! That's why nfs (and many netwrk problems) are laborious, you're troubleshooting needs to take place at both source and desitination. Next question, what do I have set up so far? Well, I did download the nfs server kernel stuff (two months back) and /etc/init.d/nfsserver start seems to get set up OK. No errors and the daemons nfsd, idmapd, mountd area all running. So, I *think* that part is OK. I have the share set up properly in /etc/exportfs and have "exportfs -r" it.
OK, now onto the trickier stuff: the client and iptables. On the client pinging to the nfserver box is perfect, and I have rpcbind running. the reported error is "mount.nfs: mount system call failed" though from experience nfs errors don't mean a whole lot.However, I will go off and check now and see if I need a mountd running on client-side too.Then there's iptables .... ouch, that could be a long and painful trek. I don't see any specific ports being blocked, and it's the iptables that the default v11.2 opensuse came with. I did turn them off and the problem was the same, so whether wishfl thinking or not, I'm hoping it's not an iptables issue.
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.
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:
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:
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.
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: 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)
Since my dvd-writer passed away, I disconnected it from the pc and I reconnected temporarily, an older one that I have (an IDE one).My problem is, that I don't any longer have a static mount point (/dev/cdrom, or something similar), but I have a dynamic one instead (eg. for the dvd labeled "My_data", I have /media/My_data).I really dislike dynamic mount points, since I can't work from konsole (eg. eject doesn't work any more), or with cd archivers (like cdcat).
The only thing I changed is the related BIOS settings (enabling IDE controller and setting the dvdwriter to primary master).The related fstab entry didn't changed of course. (Actually, fstab didn't changed at all)./dev/scd0/media/cdrom0udf,iso9660user,noauto00
This works just fine for Fedora 14 but on Fedora 15 the mount point disappears on reboot ie there is no /media/a500 folder. a500 appears under devices in Nautilus and mtpfs is ok as I can mount the device via the command line by creating the mount point setting ownership and running
Is the mount point for external media (like USB) always /media?
Because in a Debian system, if I plug in any USB device that goes to the /media folder. So is it the case with all the other Linux flavors like Fedora, Ubuntu, etc. If a USB device is automatically mounted will it always go to the /media directory?
I am not concerned about the name of the devices. I am looking for every external media (like USB) to be listed under /media directory so that my code can run on any flavor of Linux.
I have a CentOS 5 production server with multiple OS-managed RAID-1 sets. I'd like to add a new mirrored set and move the /var partition to the new drives. On a non-RAID system I would boot from the install CD to edit fstab and copy the existing files to the new drive, but I'm pretty sure booting off the install CD does not recognize my RAID setup.
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.
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?!
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.
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?
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)
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...
I am trying to mount a second hard drive on a clean install. What I want to do is install my OS on the 40 gig and mount the 500 gig as my /home.If I mount it after I install, I my home directory is deleted. I know I can just create a mount point and mount it there, but I would really prefer to mount it as /home.
In my machine, there are 2 mount points - / and /userdata. From the root user, I want to create an oracle user at the /userdata mount point, i.e the home of the oracle user should be mounted on /userdata.