Debian :: Mount Point For Automount Usb Drives In Jessie
Oct 5, 2015
I'm running KDE in Jessie and also have Gnome installed. When I connect a usb drive it gets mounted at /media/username/disklabel. I would like to have it mounted at /media/disklabel which is how it worked in Wheezy. How can I make that change?
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.
Previously it was only trying to mount the partition (after asking for the root password) in /media/datas
Is it normal that now it tries to mount it only for my current user in another folder?
If I look in the /var/log/messages, I only see this:
May 22 23:53:06 Tieum-Latitude gnome-session[2092]: Thunar: Failed to open "/media/mb/datas": Error when getting information for file '/media/mb/datas': Input/output error
There seems to be no documentation on how to automount partitions and USB devices under systemd in Jessie. (Overall, systemd entirely lacks any useful documentation or GUI configuration tools -- all very cryptic and hidden.)
I created custom files to enable automounting. I put them in /etc/systemd/system -- this may not be the right place, but it works.
Kernel note: This does not work under the old Wheezy kernel linux-image-3.2.0-4.
To automount my Windows partition so I can access its files, I created: /etc/systemd/system/media-windows.mount
The name of the file must match the mount point -- in this case, /media/windows
My file notes the device and file type, plus an fmask option so all the Windows files don't seem to be executable:
[Unit] Description = windows mount to /media/windows [Mount] What=/dev/sda1 Where=/media/windows Type=ntfs-3g Options=fmask=111 [Install] WantedBy=multi-user.target
The file ownership must be root.root. Apparently it doesn't need to be executable.
After creating, enable with:
sudo systemctl enable media-windows.mount
and it will mount on the next boot.
I read elsewhere that the before running the enable command you should run a start command:
Is there a way to set up your system (running CLI only, no X) to automount flash drives? I know how to mount them manually, but I'd really like it if there was a way to just have the system do it automatically when I plug the drive in so I don't have to do it myself every time.
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).
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
If i click the ntfs partition from nautilus, it prompts to type password. If i type the password and enter, i see this message:
Code: Select allUnable to access “alldisksda5” Error mounting /dev/sda5 at /media/user1/alldisksda5: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda5" "/media/user1/alldisksda5"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda5': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.
I have been building a debian jessie system reasonably successfully but have come unstuck with libpam-mount. On a previous Ubuntu saucy system I simply installed it, created the appropriate pam_mount.conf.xml file and mounts would happen when users logged on and dismount on logoff. With jessie I can see that there is a libpam-mount package in main but when I try apt-get install it fails. If this package has been obsoleted (as one of the messages indicates might be the issue) what is the jessie way of handling this?
Here is my sources.list Code: Select alldeb http://mirror.aarnet.edu.au/debian/ jessie main non-free contrib deb-src http://mirror.aarnet.edu.au/debian/ jessie main non-free contrib
A few days ago I upgraded from debian 7 to 8. First I update, upgrade and dist upgrade - change source list and again update, upgrade and dist upgrade.When inserting a USB disk on key, it works okay. When plugging my WD "My passport" backup USB disk it does not work. The automatic mount works, but the disk can be accessed.I tried to do it manually in a format that worked on debian 7..Manual mount fails too.
umount My passport fdisk -l (to see device name) mount -t vfat -o rw /dev/sdb1 /media/kuku/usb_mp4 dmesg | tail [ 2381.080822] sd 9:0:0:0: [sdb] No Caching mode page found [ 2381.080828] sd 9:0:0:0: [sdb] Assuming drive cache: write through
A few days ago I upgraded from debian 7 to 8. First I update, upgrade and dist upgrade - change source list and again update, upgrade and dist upgrade.
When inserting a USB disk on key, it works okay. When plugging my WD "My passport" backup USB disk it does not work. The automatic mount works, but the disk can be accessed.
I tried to do it manually in a format that worked on debian 7
Manual mount fails too.
umount My passport fdisk -l (to see device name) mount -t vfat -o rw /dev/sdb1 /media/kuku/usb_mp4
dmesg | tail [ 2381.080822] sd 9:0:0:0: [sdb] No Caching mode page found [ 2381.080828] sd 9:0:0:0: [sdb] Assuming drive cache: write through
I eventually gave up and migrated to mdadm. Works just fine. Having upgraded to jessie and solved one problem
[URL] ....
I find the next one. When I boot into jessie my RAID device (just a data partition not /) is not found causing the boot to fail as per problems reported here
[URL] ....
After booting I can mount my RAID device but if it's in the fstab when booting it fails. Also, I notice that some of my lvm device names have changed. After a bit of hunting around I found a couple of solutions pointing to running dmraid as a service during boot and changing the entry for the RAID device in fstab to use the UUID.
[URL] .....
This seems to work. However this seems to be a workaround and as the lvm device paths for my / and /usr partitions have also changed, I'm wondering if there is a bug here as mentioned in the second link?
The / and /usr paths changed to /dev/dm-2 and /dev/dm-3 from the /dev/mapper/ form.
I have an Ubuntu server running Samba and I would like to share out the cdrom drive to the network. I made a share of the /media directory and it seems to work fine when I insert USB drives and I am able to browse and work with files. However, when I insert a cdrom it automatically mounts to /media/<volume name> and I get a permission denied error when I attempt to access it over the network. I am assuming this is happening because the permissions do not include the execute bit and being a read only file system I can not change this. I made the directory /media/cdrom and manually mounted the cdrom to it and I can successfully access it over the network just like the USB drives. So my question is: Is there a way to make the cdrom automatically mount and unmount to /media/cdrom when I insert and eject disks instead of to /media/<volume name>? Or maybe just have the permissions automatically set so Samba users can open it instead of just see it.
i am a new user to linux, i installed debian on dual boot with windows 7but now i am unable to access the ntfs drives used by windows originally from the debian OSi am wondering what could be the problem and how can i solve it
Someone in my dept rather stupidly changed an IP of a webserver, and ever since we changed it back we cannot mount 3 NFS drives.
The Error Code: HTTP1:/etc# /etc/init.d/networking restart Reconfiguring network interfaces...if-up.d/mountnfs[eth0]: lock /var/run/network/mountnfs exist, not mounting if-up.d/mountnfs[eth1]: lock /var/run/network/mountnfs exist, not mounting done.
I have removed that lock file and tried a Code: mount -a but it just hangs?
The FSTAB hasn't changed at all, and the other web servers can mount to the NFS share fine. I have tried alot, removing the lock file and rebooting etc but no luck. Debian Lenny.
I want all my external drives mounted when I start OS.I don't want to do it for a specific external drive. I want my external drives mounted by default.o you have an idea? Does linux have such a configuration I can change?
How to automount internal drives. I have 2 other partitions other than the boot one. I want both the other partitions to mount at startup without asking me the password.
How to mount multiple external HDD's. I'd like to link or mount the music, torrents, and general files from several external hard drives and apply permissions (in some cases I only want the mount or link to be read only).
My setup: - Seagate Dockstar running Debian squeeze (it's headless so I don't have a gui running) - Two external HDD's with one partition on each (250GB and 400GB)
What I'd like to accomplish: 1. Mount the external HDD's to /media/HDDs as read/write (this is already working using udev and autofs and it's available in samba) 2. I'd like the MUSIC directories on both external HDD's to show up under the same mount point. In other words I want the MUSIC folders (from both HDD's) to appear as one large library of music. And I only want this to be readonly. It will be used as the library for mpd and/or squeezebox. 3. Mount a directory used to download torrents to. I'll probably pick on HDD as the target for torrent dowloads. But let me know if you have any other ideas regarding this.
Since I have the first one done, how would I accomplish 2 & 3?
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.
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.
Sometimes when I plug in a USB flash drive, it is mounted to /dev/usb0 instead of /dev/drivename. This poses a problem for me because I have applications that depend on files I keep on flash drives, and having to frequently change the file paths is difficult. I haven't been able to find anything on this topic with a cursory search on Google or through the Debian reference. Heck, I don't even know what /dev/usb0 is (though I would like to learn, in the interest of being less of a noob). This is happening on a Squeeze system running Gnome, so I believe nautilus is what's responsible for auto-mounting my flash drives.
Beyond that, I don't know what other information I should provide; if you need to know something else, ask me (and perhaps tell me how to access that information). Someone on IRC suggested that I didn't have my drives set to mount in /dev/, but I have no idea how I would go about fixing that. If there's a configuration file that deals with this sort of thing, chances are I haven't touched it since installing this system. Debian installer sees usb drive as cd drive, so it adds it in fstab, but with wrong file system options (udf,iso9660) which is not the one your flash drive uses.
mounting any usb thumb drives. The result is the same whether it is automounted or mounted via the CLI. The drives all have root:root file permissions and cannot be changed to my normal user "ramack". There doesn't appear to be any errors and it is limited to only this Acer Aspireone Netbook running i386 Testing. I don't have anything in my fstab in regards to mounting usb drives.
I recently upgraded to Fedora 11 because an update broke my X server. In Fedora 10 ntfs-3g automounted all of my devices in gnome but now it doesn't. Is there a way to fix this, other than editing /etc/fstab with a line for every partition?
I`ve installed openbox with Thunar and now I have problem with automount function. thunar-volman is installed, volume management in thunar is on, thunar --daemon $ is written in autostart.sh . But automount is not working.
Anyone got any experience with eSATA cards and drives under RHEL4? I've got a client with two RHEL4 boxes that want to add eSATA cards and drives for backup purposes.
They really need to automount like a USB drive does, would RHEL4 automount eSATA?
I recently had issues with the latest version of the Linux Kernels and I got that fixed but ever since that has happened none of my Drives will mount and they aren't even recognized.
I recently installed Squeeze and it was simple and is running great. I have a usb fat32 drive that shares data on 3 partitions with winxp. None are listed in fstab. They all are mounted in /media.2 partitions, Video and Music, are shown in gparted as mounted by their volume labels, which is what I want; eg /media/MUSIC. The DATA volume is mounted by its' uuid. This is how it is displayed on my desktop. The other 2 volumes display the way I want: MUSIC and VIDEO. I have changed the mount point in /media to the label name:/media/DATA but it returns to its' uuid after reboot. How can I change it to display the label name? It works fine, but I have a need to "tidy up" my desktop.