Debian :: Automatic Mount Of Removable Devices

Oct 27, 2015

I use Debian 8.2 without DE. I can mount removable devices (USB sticks, external HDDs) manually using mount/umount to specific folders under /mnt or /media. But I want them mount automatically when plugged-in as /media/disk-label. Also I want to be able safely remove already mounted devices without data loss.As I understand, I need to create custom UDEV rule and associate it with mount/umount scripts. E.g. mount script

Code: Select all#!/bin/sh

mount_point=$ID_FS_LABEL
if [ -z $mount_point ]; then
    mount_point=${DEVNAME##*/}
fi
# retrieve gid of the plugdev group and set it as owner of mountpoint
plugdev_gid="$(grep plugdev /etc/group|cut -f3 -d:)"
if [ -z $plugdev_gid ]; then
   
[code]....

Is this safe and correct approach or it is better to use something else?

View 3 Replies


ADVERTISEMENT

Slackware :: Can't Mount Removable Devices?

Jul 3, 2010

This is a 'clean' upgrade from slack 13.0 to 13.1 (32-bit)To qualify: / , /home , and /usr/local are on separate partitionsand / was reformatted.When I attempt to mount a removable device - USB stick or DVD, I get the following error message:

Code:
Rejected send message, 1 matched rules; type="method_call", sender=":1.134" (uid=1000 pid=6328 comm="exo-mount) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error

[code]....

View 3 Replies View Related

Ubuntu :: Setup Authentication To Mount Hard Disk And Other Removable Devices?

May 22, 2010

I am using ubuntu 10.04. I want to set up authentication to mount hard disk and other removable devices.

View 5 Replies View Related

Debian :: Removable Devices Auto-mounted As Read-only?

May 29, 2010

Quote:

Currently when I insert a removable device, it is auto-mounted as readonly. To use it I have to do this every time.

Code:

sudo umount /dev/xxx
pmount xxx

This applys to every removable device I have, and did not exist on my previous distro. Debian amd 64 Squeeze [URL]

View 5 Replies View Related

Fedora :: Where Are Removable Devices In F13

Oct 31, 2010

Where did they hide System->Preferences->Hardware->Removable Devices in Fedora 13?

View 7 Replies View Related

OpenSUSE :: KCM 'Removable Devices' Not Mounting

Apr 25, 2010

I thought, that "Removable devices" module in KDE system settings supposed to automount removable devices. But when any removable media inserted, absolutely nothing happens.

View 6 Replies View Related

OpenSUSE :: Cant Open Removable Devices?

Apr 27, 2010

Issue is, only way i can browse through the contents of for example a CD, is first opening it thourgh superuser Dolphin, and then i can open it with regular dolphin and konqueror.Same thing with a NTFS windows partition in the PC.I must first open it with superuser dolphin.

View 2 Replies View Related

Ubuntu :: Automatically Mounting Removable Devices When Plugged In

May 26, 2009

I want the following behavior in kubuntu 9.04 when I plug a device (USB stick or CD disk):

1. It should be mounted automatically for me. Now it isn't, though it appears in fdisk -l output: Code: Disk /dev/sdd: 8006 MB, 8006926336 bytes
16 heads, 32 sectors/track, 30544 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Disk identifier: 0x9b12d290
Device Boot Start End Blocks Id System
/dev/sdd1 * 16 30544 7815232 b W95 FAT32 and if I mount it manually, all goes OK

2. If I mount manually my CD disk and then press the eject button on my drive nothing happens until I manually unmount the drive. But I want it to open immediately

All this worked for me in kubuntu 8.10, and broke with the upgrade.
My fstab entries Code: /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sdc1 /media/usb vfat noexec,codepage=866,utf8,nosuid,nodev,quiet,uid=1000,gid=1000,umask=077,user 0 0

View 9 Replies View Related

Ubuntu Networking :: Samba Share Listed Twice Under 'Removable Devices'

Jan 8, 2010

Since upgrading to Karmic, all my shares under 'Removable Devices' are listed twice...all was fine in Jaunty though, and I've done nothing to change them.Would anyone have an idea how to resolve this.In terms of what I see, there are all my shares with a white drive icon which, when clicked, do nothing. I then have all the same shares with a metal drive icon which open up the share when clicked.

I understand that the icons may look different, depending on what icon theme you're using, but the principal will remain the same.

View 9 Replies View Related

Ubuntu :: Detect Removable Devices Attached At Real Time Using C Program

Mar 21, 2011

I want to devolep one "C/C++" program that will work as a daemon. My daemon will be running all the time, and whenever anybody attaches removable devices to machine on which my daemon is running, My daemon should catch that event and also should show me where that device has been mounted.

View 1 Replies View Related

Debian :: Mount Devices In A Chroot Jail?

Apr 16, 2010

I would like to create a logon script, for specific user, under ssh connection, to backup several directories in a USB device; this backup will run when the device was plugged in and the user logs in server. My knowledge of linux isn't very deeply now, and some questions are in my head. I would like to make this in a chroot jail, and the user log in through ssh connection doesn't have to make nothing, the logon script will mount the USB device and make the backup (using rsync or whatever), and exit the ssh connection when it finish.

But the questions are:

- is possible to a user in a chroot jail mount a USB device?

- from this jail, the directories outside of the jail could be available or need to be bind or something for this task?

- it will be better to "jail" all the directories to backup, inside de chroot path (almost would be samba sharing for Windows clients)?

View 1 Replies View Related

Debian Multimedia :: Any Possibility To Adjust Gnome To Automatically Mount ONLY USB Devices?

May 27, 2011

i am trying to prevent Gnome from automounting my NTFS partition. Gnome uses for this package gvfs-mount. This package with other small one's is respnsible for automounting USB changeable media like USB sticks. That works fine for me. But I don't want Gnome mount my NTFS partition on my internal storage device, where Debian Squeeze is installed too. Since Squeeze Gnome works with gvfs-mount to bind smb, ftp NTFS in. For binding a whole NTFS partition I am guessing Gnome use ntfs-3g as well. But I don't know exactly. Is there any possibility to adjust Gnome to automatically mount ONLY USB devices?

View 1 Replies View Related

Ubuntu :: Can't Mount Removable Media: "failed To Execute Child Process Exo-mount"

May 18, 2011

I just upgraded Xubuntu from 10.04 LTS to 11.04 and I am no longer able to mount removable media from the "places" menu. The message I get:

"Failed to execute child process exo-mount (No such file or directory)"

I assume some wrapper process is attempting to execute a program called "exo-mount," but no such program exists anywhere in the repositories, according to a search with apt-file. The "exo-utils" package used to contain exo-mount, but the program no longer exists in that package.

Mounting from within Thunar works fine.

View 3 Replies View Related

Fedora :: Mount Removable Media From Command Line

Jul 6, 2010

I'm using Fedora 12, and I want to mount/unmount my USB memory stick from the command line. I know I could edit /etc/fstab and so on, but I want to emulate what happens when you mount using the GUI (I use KDE and the device notifier), that is, I want to be able to do this as an unprivileged user and not have to know the mount point exists in advance.

I'm sure in older versions of Fedora there was a command something like `gnome-user-mount' which let me do this knowing only the filesystem label... What is the current equivalent?

View 5 Replies View Related

Fedora :: Changing Mount Options For Removable USB Drives In F13?

Jul 16, 2010

I have a 2 TB hard drive in an external USB caddy that I use for backups. The drive gets automatically mounted when connected to F13, which is great, and the default mount options it uses are:Code:rw,nosuid,nodev,uhelper=udisksHowever, I want to add an extra option or two but I don't know where I can do this. Does anyone know where I can add mount options onto the default set?

View 2 Replies View Related

General :: Get Fstab To Auto-mount A Removable Device?

Feb 23, 2010

I'm trying to get fstab to auto-mount a removable device when its plugged in? Is this possible and if not what is the easiest way to auto-mount a removable device?

View 3 Replies View Related

General :: Cifs Mount On A Windows XP Removable Drive?

Mar 16, 2011

I have 2 USB drives connected to an XP machine that I rotate twice a month for backups. On my CentOS box, I have that drive mounted at /home/backup using cifs.

Because the drive is mounted on the Linux box, Windows XP complains when I try to "Safely Remove Hardware". As a result, I have to "umount /home/backup", then "Safely Remove Hardware". After connecting the new drive, I then have to "mount /home/backup" in order to use it again on the Linux box.

Now, this question may be a Windows XP question, but I was wondering if there is anything I can do on the Linux box first. Is there anything that can be done on either end, so that I won't have to "umount /home/backup" first?

View 2 Replies View Related

Hardware :: Automatically Mount Removable Drives In Red Hat Enterprise 5?

Aug 6, 2010

so that short description doesn't cut the mustard. Let me start by describing what I had working in RHEL4, so you know the requirements. There is a group here at my job that does a lot of data transfer to external USB drives. I leveraged fstab-sync (which we normally turn off at my work) and created a FDI policy file to search on the drives' HAL descriptors, set the mount options, and define the mount point by name (each drive is uniquely named).

The result of all this is that when the user plugged in a drive, it mounted in /media automatically, on a unique path, and with permissions so that every user could read/write to it. SO now we're upgrading to RHEL5, and fstab-sync doesn't exist any more. Instead there's gnome-mount (did I mention we use Gnome?) and I can't figure out how to get the same functionality working.

View 3 Replies View Related

Slackware :: Create Mount Points Automatically For Removable Drives?

Jan 9, 2010

At work I use Ubuntu and one nice thing about it is that it creates mount points for removable drives automatically.

In Slackware I can set up XFCE so that it mounts drives when they are plugged in, but only if they're already specified in the fstab (which means I must have used them and set them up in advance).

This is becoming a problem now that removable usb drives of all sorts are so common.

View 2 Replies View Related

OpenSUSE Multimedia :: Error - Org.freedesktop.hal.storage.mount-removable Auth_admin_keep_always

Jul 17, 2010

I am trying to play or backup various DVDs i have recently bought and keep geting this error message: (mind the wrap) org.freedesktop.hal.storage.mount-removable auth_admin_keep_always <-- (action, result) from KIOExec What in tarnation is going on. How about a useful error message.

View 9 Replies View Related

General :: Mount A Removable Storage In Kubuntu 9.10 That Is Running On A Dual-boot Machine With Microsoft Windows XP?

Jan 22, 2010

How to you mount a removable storage in Kubuntu 9.10 that is running on a dual-boot machine with Microsoft Windows XP.

View 4 Replies View Related

Hardware :: DVD Ok - How To Activate CD Automatic Mount

Jan 11, 2010

I have Ubuntu 9.10. The system mounts automatically DVDs ok, but when I insert a CDrom nothing happens. How I can activate the CD automatic mounting?

View 4 Replies View Related

Fedora Installation :: Automatic Swap Detection And Mount?

Jun 8, 2011

I've installed FC 15 on a USB stick (it is not a live usb, it is a regular installation on a usb stick), and I am looking for a way to automatically detect and mount swap partitions on a host system where usb stick is plugged in. I am using many FC boxes and almost all of them have a swap partition on the hard drive and I would like to use them even if I boot my system from a usb stick.

View 4 Replies View Related

General :: Automatic Mount A Ntfs Partition After The Boot?

Apr 29, 2011

I want to automatic mount a ntfs partition after start. I work on fstab, everything seems to be ok, but now something strange is happening: sometimes after boot, when I use fdisk, I find all the partitions as sda, sometims they seems to appear as sdb. Of course, if in fstab I have written sda and they are sdb, they will not be aoutomount... I am using fedora 14 I was expecting that allways the partitions to be sda or sdb.

View 1 Replies View Related

Red Hat / Fedora :: Can't Mount USB Devices?

Aug 6, 2010

Something very strange has happened. For some reason when I plug in a USB device into my F12 rig up pops a error saying,Code: Unable to mount <name of device> file systemNot Authorised When I try to mount from the CLI I get, Code: mount: can't find /dev/sdb1 in /etc/fstab or /etc/mstab I'm not really sure what this is telling me or what I need to do to fix it.

View 4 Replies View Related

Ubuntu :: USB Devices Only Mount At Startup?

Feb 21, 2011

After reformatting a usb drive with gparted, no usb stick will automount when I plug it in anymore. If the usb is in place at startup, however, it is recognized and mounted.The media will show up in fdisk and disk utility, but there is no link to it in Places > Computer. I have no trouble manually mounting, but I would rather not have to go through the hassle each time I plug in my flash stick. I am running Ubuntu 10.10 64bit

View 1 Replies View Related

Ubuntu :: 10.04 - Cannot Get Any Drives / Devices To Mount

Dec 10, 2010

I have an Acer Aspire 3500 laptop that I'm running 10.04 on, pretty much everything works OK, and I don't appear to have any hardware problems (I've checked using Gnome Device Manager). When I plug in a USB flash or hard drive, I don't get any drives/devices to mount, although in Gnome Device Manager the USB device appears as a USB Mass Storage Device.

Running tail -f /var/log/messages produces this:

Dec 10 19:44:31 darren-laptop kernel: [ 5800.632058] usb 1-3: new high speed USB device using ehci_hcd and address 4
Dec 10 19:44:31 darren-laptop kernel: [ 5800.765161] usb 1-3: configuration #1 chosen from 1 choice

View 4 Replies View Related

Debian :: How To Change Permissions On Exfat Removable Media

Jul 20, 2015

I'm going traveling and I had the bright idea of putting my sensitive and irreplaceable files on an sd card. Then if I leave my stuff in a sketchy hostel for the day, I can easily take the card and might lose only a replaceable netbook. The problem is that I want some files to have 600 permissions (rw-------), readable and writable only by owner.

But no power on earth seems to be able to force a fuse-ified filesystem to pay attention. Whether I try "chmod 600 filename.txt" as the owner/user or as sudo makes no difference. Nothing works. The sd card is mounted with a line in /etc/fstab:

Code: Select allUUID=0000-0000 /mnt/64_GB_sdxc  exfat  auto,rw,user,exec,uid=1000,gid=1000,dmask=0022,flush,fmask=133  0    0

So the user owns the files and they have typical permissions instead of the automounted default of 700. That's all very nice, but I'd like to be able to change permissions on just a few files!

View 3 Replies View Related

General :: Mount Remote Devices Locally?

Jan 22, 2011

I was wondering if you can 'share' devices in Linux by overlaying the devices nodes? For instance, is it possible to use SSH (FS) + bind to selectively bind devices locally?

View 1 Replies View Related

Ubuntu Installation :: USB Devices Only Mount During Boot?

May 31, 2010

After upgrading to Lucid 10.4, I find that after booting I can no-longer auto-mount any USB drive when they are plugged in. They simply doesn't appear on the desktop as they did. Swap my PATA drive back to the one with 9.10 still installed on it is well.However, if I have USB drives plugged in before boot, they appears on the desktop, but are not auto-mounted as previously. Also when I click on any drive icon for the first time there is no response. Try again (on any drive) an the devices will all auto-mount revealing their contents in the window that subsequently opens. Everything them seems fine. I can unmount and remount at my leisure with any number of devices.

I do not have the problem of root only access that others have mentioned. I have played with usbmount and pmount as others have suggested, to no avail. They have both been removed.I have the HAL installed as default, and have already ecked media_automount_open for Nautilus on the gconf-editor.Disabling the floppy in the BIOS has not effect and I do not use autologin option.With (say) two USB drives attached, whether the devices are recognised at boot or not after boot,lsusb reveals:

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

[code]...

View 9 Replies View Related







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