Ubuntu :: Setup Authentication To Mount Hard Disk And Other Removable Devices?
May 22, 2010I am using ubuntu 10.04. I want to set up authentication to mount hard disk and other removable devices.
View 5 RepliesI am using ubuntu 10.04. I want to set up authentication to mount hard disk and other removable devices.
View 5 RepliesThis 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]....
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?
mount from the old hdd to the new hdd i mean (Hard disk)
View 2 Replies View RelatedWhere did they hide System->Preferences->Hardware->Removable Devices in Fedora 13?
View 7 Replies View Relatedhow to set up authentication for removable drives in ubuntu 9.10 ?
View 7 Replies View RelatedI 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 RelatedIssue 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 RelatedI 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
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.
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]
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 RelatedI've had this external drive for ages, it contains all my music and pictures that I generally share on my network to my family etc... It has been working for years on Ubuntu until the other month I updated to 9.10 and now it will not mount. It still works on my EEE PC, I plug the USB in and up it pops as usual, however, I can't get it to work on Ubuntu 9.10
[Code]....
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.
Im new to ubuntu. How to auto mount hard disk partitions.
View 1 Replies View RelatedI am running Debian testing (amd64, xfce) on my box where I have two sata hard disks.
I do not have any raid or fancy stuff; all the OS is on one hard disk and the second is mounted on boot and accessible as simple extra storage that I use for some backups.
Today, for the first time, I started to get some messages during the boot about some process (EMASK and DRDY) on my second hard disk.
The system boots, but I cannot access any more the 3 TB volume which is my second hard hard disk.
I do not know if it is a software of hardware problem (the hard disk are not old at all), so...where should I start from?
I'm running SUSE 11.3 on hard disk (a). I have a second hard disk (b) which has FreeBSD loaded and would like to copy all that info onto (a), then reformat (b).
How do I mount hard disk (b) to achieve my objective?
I've used YAST to include a USB hard disk in the export list and mount it to remote machine with NFS. That worked first time the disk was mounted. On the next reboot I saw that the USB disk was mounted again in "/media" but in new folder and its previous folder existed but empty and was mounted with nfs. It seems that first nfs comes mounted in booting time and then USB gets mounted after logging as a user. USB hard disk finds its folder occupied and automatically creates new folder in "/media". What should be done in order to USB hard disk and nfs to be mounted in the same point automatically on the boot ? The second question : When I mount an external disk to be accessible remotely with nfs I get refused to unmount the disk as a USB device. Is it possible to be unmounted as a USB disk done without unmounting it as a nfs as well?
View 5 Replies View RelatedOn my embedded linux box, running on Linux Kernel 2.6.9 embedded with BusyBox utilities.
An Objective are follow:
1/ To figure out how many partitions are on the hard disk
2/ Create a extra partition about 10GB size on the hard disk
3/ Format the partition and mount var on that partition
Only utility to perform above operations I have "sfdisk" utility from BusyBox collection. Which get installed at the time of image flash in to ROM (8mb ROM size). The following is the root directory structure where hdd as a directory mounted /mnt/hdd1
Code:
~ > ls
bin etc lib proc sbin sys var
dev hdd mnt root share tmp var_init
Within /bin sfdisk utility can be used which I tried but no avail.
Code:
~ > sfdisk -l /dev/hda
/dev/hda: No such file or directory
sfdisk: cannot open /dev/hda for reading
~ > sfdisk -l /dev/sda0
/dev/sda0: No such file or directory .....
System: ubuntu server edition 10.10
Hardisk: a 160g usb external hard disk, formatted in win7 with NTFS format.
%fdisk -l
returns:
Device Boot .... System
/dev/sdg1 NPFS/NTFS
%sudo mount -t ntfs-3g /dev/sdg1 /media/external
returns:
fuse: failed to create temporary directory
Have anyone seen this before?
I have a directory /var/log/data its about 80 GB,It filling up quit rapidly.I don't have much space left in the system them So i will attaching another External HDD.My question is that i need to mount /var/log/data to new HDD.So i have old data and pulse new coming up.I don't want to copy data from /var/log/data then mount new HDD to /var/log/data you know what i am taking about is there a simple way like linking or any other.
View 4 Replies View RelatedI am running a Debian/Linux "Lenny" dual boot system and when I try to open my WD passport storage device I get: Cannot mount volume. Invalid mount option when attempting to mount the volume "My Passport".
This is the contents of my fstab file:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda8 / ext3 errors=remount-ro 0 1
[Code].....
How to mount secondary new hard disk in fedora?
View 2 Replies View RelatedIs it possible to mount a 2nd hard disk without erasing the data that is already on it? If so, what command must I enter. The system recognizes that the disk is there, I just can't access the data because it hasn't been mounted.
View 5 Replies View RelatedI am running SUSE 11.1 on a 80Gig IDE HDD, I have added a 160 SATA HDD which I wish to use as storage.
fdisk reports it as /dev/sda1 - W95 fat 32 LBA. What would the fstab entry be to make the disk mount automatically on boot, so that it shows on the desktop ready for use.
I have a server with two hard disks SATA (500 GB), I installed centos in one of them, desire to know how I can mount the other hard disk empty and without format, so that this hard disk always appears mounted when "reboot" the system.
View 1 Replies View Relatedwell yesterday I upgraded my karmic to lynx. So far so good, overall much improved plus I love the new theme. Now the problem, I share my Firefox/Thunderbird profile (stored in my secondary HD) with WinXP (dual boot box). Since karmic, before I opened Firefox/Thunderbird, I had to mount the 2ndary HD which of course prompted me for a password and then everything worked fine. In case I forgot to mount the disk then Firefox popped the following msg: Firefox is either opened or in use.Now, lucid strangely mounts my HD without a password, more peculiarly I have r-w-e permissions and on top of that Firefox/Thunderbird gives me the silly msg!
Tried to unmount/mount back but still no password. I end up believing that this Firefox hesitation to start (based on karmic experience) is related with the password thing...or not?
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.
I`ve got a laptop with Lucid Lynx. After I tried to connect a smartphone to it, my permissions for all removable media (usb flash, dvd-rom, sd-cards) have somehow switched to read-only. When I use sudo rm -rf to delete files, everything works, but when I try to write something to the drive, all the files are skipped.
View 2 Replies View RelatedJust installed opensuse 11.3 Kdeversion on my laptop. Before installing it on live mode i had a problem of accessing my other drives (NTFS, FAT32 and EXT4) which said HAL system policy...etc mounting error. I could access all drives with root privilege. I thought problem will be solver once i install opensuse on my system. How ever i was really disappointed after seeing the same problem post install. Googled around for the solution and got this link
[Code]...
After this the problem got worse now i am not able to see any of the drives in the side panel. Gone through many forum and posts all discuss about external USB HDD.