Slackware :: Force Mount Of USB-Devices As Read-only
Jan 20, 2010I want all USB-Devices (Hard-disks, USB-Sticks) that are plugged into a Slackware 13 be mounted as read-only.How do I achieve this?
View 4 RepliesI want all USB-Devices (Hard-disks, USB-Sticks) that are plugged into a Slackware 13 be mounted as read-only.How do I achieve this?
View 4 Replieshow to force Ubuntu to mount a USB external drive as read only by default when you plug the USB drive in?
I know the drive /dev/...sda1 name but I have looked at editing fstab and not sure how to proceed. Is fstab the right thing to be editing?
My 10.04 64-bit desktop has been auto-mounting USB devices (flash drives and my mp3 player) as read-only for some reason. I had this issue happen once a while in the past, so I simply re-mounted it as rw.
Code:
mike@mike-desktop:~$ mount | grep -i 36CB
/dev/sdc1 on /media/36CB-D1A8 type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)
[Code].....
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]....
I have a 7 port USB hub that is connected to my Dell GX260 that was working perfectly until the other day. I have Maverick running on the pc and before that Lucid. I had no problems read/writing to USB Flash drives that were plugged into the hub. Now I can only write to them through Nautilus (root), otherwise it tells me 'permission denied'
View 7 Replies View RelatedQuote:
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]
Is there a way to fix a partition that wont mount?
When I boot into Ubunutu I am told that the shared partition (which I called Storage on my shared NTFS D Drive) wont mount.
I have noticed that a CD or DVD wont mount in Ubuntu 10.04 but always mounts on a reboot. /media is empty.Could this maybe a hardware issue rather that a fault with Ubuntu? My PC is used almost every day and is 4 years old. Is there a command to force mount a CD or DVD?
View 6 Replies View RelatedI am running Lenny. USB storage devices are painfully slow, if the data to be copied is above 4GB it works on transferring for more than half an hour and then comes up with an error dialog(saying something like file size is too big). The problem exists in both read and write.
I did google a bit and here is the output of lsmod | grep hci
ehci_hcd28428 0
uhci_hcd18672 0
usbcore118192 4 usb_storage,ehci_hcd,uhci_hcd
[Code].....
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 RelatedAfter 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 RelatedI 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
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?
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)?
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 RelatedAfter 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]...
I have many flash drives, memory sticks, card reader, and 2 mybook 1tb so i am constanly plugging in, or unplugging devices from my machine running the latest version of ubuntu (i beleive 10.04?). I remember when i use to connect a device it would mount and work right off the bat. but now, everytime i connect anything, i have to go through Disk Utility to select the drive and mount it (also unmount before disconnect). Another problem is that some times disk utility doesnt like to work (as with a few other programs). This happends every now and then and im not sure if its my systems hardware or this version of ubuntu. every now and then programs like to stop responding (turn grey) and some programs like disk utility will open up, but just be blank and not show the detected devices
View 9 Replies View RelatedI 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.
Anyway the questions are:
- is possible that 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)?
I have a problem in my ubuntu 10.01 that it can't load a drive/volume in ubuntu. When I tried, it said: "Unable to mount location Error mounting: mount: /dev/sda1: can't read superblock". And when I boot my pc with 'Windows', it said : "UNMOUNTABLE_BOOT_VOLUME" under a blue screen. What can I do to solve this problem?
View 9 Replies View RelatedOne question: should F13 mount all attached USB devices after boot automatically? I guess it should. However, what I've experienced is that after boot and login, my USB modem + flash memory is not mounted. I need to manually unplug it and plug it again, and then it's mounted
View 1 Replies View RelatedUsing Fedora 15 64 bit. The problem is when I put in a USB stick (directly into USB port front or back), or SD memory card via Card reader, they take a long time to auto mount. About 30 seconds. I've tried a few different USB sticks and memory cards. Once mounted they work fine. This is a new install, been running for a few weeks, but the problem only seems to have started in the last few days. Also, not sure if it's related, but now Shotwell takes about 30 seconds to start. The screen comes up, but the interface in non responsive for around 30 seconds. Both USB and Shotwell problems seem to have started at the same time.
View 3 Replies View RelatedPreviously, everytime I insert a USB drive it automatically mounts. But now I am getting this error:
"Unable to mount 8.0 GB Media DBus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
Also, previously my CD/DVD works properly. But now everytime I insert a disk, this is what I get:
"Unable to mount TOSHIBA
DBus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
By the way, I am using openSUSE 11.1.
Ubuntu 9.10. I have a problem - when I mount other partitions of my hdd or the system automounts usb disks these are mounted in /media directory with permissions 0700. So there are two problems there:
- When I switch user on my desktop to another that user can't read data from the usb disks
- I can't share data through network because smbd doesnot have read permissions on the created mount points
I think editing /etc/fstab is wrong way, there would be more right way to change permissions on mount point. I tried to change/add parameters umask, allow_other in gconf-editor (/system/storage/default_options, subsections vfat and ntfs-3g) but that does not show any results. Article [URL] recommends Open Places → Computer. Every volume except the generic File system one should have a Drive and Volume tab in its properties dialog where you can set mount options. But I did not find those tabs. Where should I set option to mount usb disks with permissions rwx for every user of my system?
Booting to CentOS 5.5 works and I am able to login with all my devices mounted. When I boot from the install DVD and type "linux rescue" I eventually get the message, after attempting to have one of the screens mount my partitions in read/write mode:
"An error occurred trying to mount some or all of your system. Some of it may be mounted under /mnt/sysimage." But nothing appears mounted under /mnt/sysimage. Should I try mounting my CentOS 5.5 partitions manually at this point ?
I have a non-super user on my box which I'd like to give it MOUNT and UMOUNT permissions but I don't know how.For example purposes, the user name is "USER".I don't want to make it into a SuperUser, just give it rights to be able to issue the MOUNT and UMOUNT commands at the terminal.
View 6 Replies View RelatedI am using VirtualBox as virtualization machine. My topology is:Quote:Internet=====(eth0)HostOS=SLackware(eth1,br0)=====(eth0)GuestOS=slackwareCondition each OS:
HostOS:
eth0 = 192.168.7.80/24
Gateway = 192.168.7.1
[code].....
I am running Slackware 13.0 on an computer with low memory (128 MB, i thought). When I type "free -m" in xterm terminal it displays.In the last line it displays only 5 MB used of 687. Is that normal?
View 1 Replies View Relatedi booted up this morning and got a surprise. when i plug in a usb drive normally, it pops up in the k message box, and i can choose too mount it. then it mounts no problem.
when i turned on the computer today, however, i plugged in my usb drive, and clicked to mount it, and lo and behold, i got a strange message:
'Could not mount the following device: USB 8GB'
when i choose more information, i get this:
Code:
org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.12" (uid=8691 pid=2415 comm="kdeinit4: plasma-desktop [kdeinit]) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1887 comm="/usr/sbin/hald))
im not entirely sure what this means. i can mount the drive manually through the terminal if it's running as root, but thats not a particularly practical way to do things, as i am a student and often have to switch USB drives and ipods many times a day.
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 RelatedWhen I attach my ipod it gets automatically recognised and mounted to "/media/user's ipod". This is great but I would like to change the mount point to just "/media/ipod/" as it easier to use with gnupod (command driven ipod access oh yes!!) I've had a look around and I know how to mount devices but I'm at a lose as to how things in fedora are automatically mounted... I use gnome so from what I've read hal, dbus, and udev yeah? but I'm not sure what configuration files need to be changed. At the moment I'm just wanting to change the ipods mount point but I would like know more so any technical how-to or articles, or things to look at (I'm thinking X), to understand auto mounting would be nice too.
View 3 Replies View Related