Debian Programming :: Disable All USB Storage - Enable Some Devices By Vendor ID
Jun 18, 2014
I want to disable mounting usb storage devices except some devices based on its vendor id. I tried by adding below udev rule in debian wheezy
Code: Select allACTION=="add", SUBSYSTEMS=="usb", RUN+="/bin/sh -c 'for host in /sys/bus/usb/devices/usb*; do echo 0 > $host/authorized_default; done'"
ACTION=="add", ATTR{idVendor}=="054c", RUN+="/bin/sh -c 'echo 1 >/sys$DEVPATH/authorized'"
But it disabled all usb devices(USB keyboard and mouse). How can I allow other devices except storage devices.
View 0 Replies
ADVERTISEMENT
Mar 23, 2011
[URL]
In the above link am using for the Disable for USB device. how i can re enable the USB devices.
View 2 Replies
View Related
Mar 11, 2011
I'm interested in buying a new hardware for my company. The old server (now 10 years old) should be replaced with a new one. Till now, I was looking on different hardware suppliers, boards and different other places. I found a Tyan board [URL]. The hardware spec is quite interesting and the board would fullfill our claims.
how both storage devices will be supported by Ubuntu or Debian??
- SATA-Controller: AMD SP5100
- SAS-Controller: LSI 1068E
View 4 Replies
View Related
Mar 29, 2010
I 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].....
View 2 Replies
View Related
Mar 8, 2011
I have squeeze with xfce4 installed. How to disable automount of usb devices under xfce?
View 2 Replies
View Related
Sep 8, 2010
I need a way to find out what my dhcp vendor-class or vendor string is on a device. I want to take a client and based on the vendor string (if I can get what that string is) set up a pool for it.
View 1 Replies
View Related
Nov 27, 2010
Since last Saturday (11-20) my touchpad enable/disable key stopped working.I don't make much use of the touchpad and it usually stays disabled most of the time so I can't be sure it is really on Saturday that I lost this functionality or maybe the day before (I'm positive it's not longer than that).Before that it worked flawlessly, now it's like a dead key (which is not broken by the way, tested on a live CD).In these past week I have been looking for quite some time for other users who might have experienced this problem after the update of two specific packages (console-data and keyboard-configuration) I had on the 20th and which made me think might have broken the key binding.Not finding anything at all and after having tried for said packages both newer versions from sid and previous known-to-have-worked-before versions from the install CD, I started thinking the problem was not there (I consequently restored the testing ones).
The days before this happened I tinkered a little bit with gpointing-device-settings and tpconfig (this last one was a simple tpconfig -i), but at this point I start thinking there might have been something else I've done, somewhere else I can't recall probably.
Oh, I forgot to mention that the touchpad still works flawlessly, I can enable/disable it through gconf (actually I made two handy shortcut to the "/desktop/gnome/peripherals/touchpad/touchpad_enabled" value), so it is not an issue of making it work, just the toggle key which on my laptop is a dedicated one (no Fn modifier) and anyway all the other special keys still work fine.I checked gnome-keybinding-properties and there is no action for the touchpad there, but I don't know for sure if there was one before (and I haven't been able to add one). Anyway in gconf I noticed a key in "/apps/gnome_settings_daemon/keybindings/touchpad" has the value "XF86TouchpadToggle", not sure if that means the keybinding exists or what.
What more can I add? What I'm here to ask now is some guidance on figuring out what I might have done wrong considering what I was able to tell you, but mostly, considering what I wasn't able to tell you and am not even aware to have done.
View 6 Replies
View Related
Jul 2, 2011
I'm looking for some definitive instruction on the proper way to enable/disable (not to simply start/stop or add/remove packages) services/daemons under Debian 6. Google results are all over the map and, surprisingly, the Debian wiki has no abstract on services.It seems like such a common task
View 14 Replies
View Related
Nov 22, 2010
I have a computer that runs debian 6, and i want to make a dual boot system where i can boot either with or without desktop. AS default the server will be booting in console (headless) mode (and act as server) but on some occasions i do want to bootup in desktop.
I know starting GDM (in my case the desktop manager) is just a simple task, but i would like to have 2 options in boot menu:
1 - without desktop default (timeout 5 seconds)
2 - with desktop
what would be the correct grub config entries?
View 1 Replies
View Related
Oct 6, 2010
Basically what I'm wanting to do is only have one USB keyboard connected active/enabled at any given time. i.e., enable B1D14 and disable B5D2, then enable B5D2 and disable B1D14. I'm actually wanting to enable/disable at the root hub. Something analogous to mount/umount a device instead of a file system.
ramack@ramack2:~$ lsusb
Bus 005 Device 002: ID 413c:2105 Dell Computer Corp. Model L100 Keyboard
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 014: ID 413c:2106 Dell Computer Corp. Dell QuietKey Keyboard
Bus 001 Device 012: ID 0781:5544 SanDisk Corp.
Bus 001 Device 006: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
View 2 Replies
View Related
Mar 8, 2011
I have just bought a used Lenovo Thinkpad R61. Most of the things works in Squeeze like it did with Vista. But a bit annoying is that when i Vista with the "Fn-F5" could turn both wireless and bluetooth on and off. Now it is only wireless that works that way. On the top panel i can turn both wireless and bluetooth on and off, but it is still annnnoying. Is the a way to make all keys funktion on my Thinkpad?
View 3 Replies
View Related
Nov 4, 2014
My laptop has a some multimedia keys for quick access. They are causing a common issue with many HP laptops easily found on the Internet ( volume keeps turning up and down). Apparently the ultimate solution is to simply disable this buttons. On the next page, under the title "Multimedia Keys" it is explained how this QuickPlay buttons had to be enabled to work in Etch. URL....Now, I have installed Jessie, and I do not know if thew were automatically installed or not. But they are causing a very annoying problem. I want to simply disable these "Multimedia keys" so they do not produce any input.
View 1 Replies
View Related
Sep 30, 2010
My friend bought a new PC, and he's duel booting Ubuntu 10.04LTS and Windows 7 Ultimate. At first I tried partitioning the hardrive using fdisk in Ubuntu, but it couldn't find hda. After looking in /dev/, there wasn't hda, or any sd* devices. I looked in gparted and used the installer afterwards and both came up with nil. I installed Windows, updated the BIOS using the utility that came with the mobo, and tried seeing if Ubuntu could detect my hardrive and it couldn't. I even turned ACPI off when booting and that didn't work either.
The motherboard is a new Gigabit with 3 PCIe slots and a USB3.0.
View 2 Replies
View Related
Jun 14, 2009
I've been running F10 with a four disk RAID5 setup that has been working fine, however when I tried to do a fresh install of F11 I can't get past the "Select Country" and "Select Keyboard" screen of the GUI as a message will say "Detecting Storage Devices" and then throw up an error. I can't give you the full error, because when I click Save The Detecting Storage Devices box appears and I can not select anything under it or enter my Bugzilla account.However, when I plug just the hard drive that has XP on it then the installer continues swimmingly.I've backed up everything, so if I have to I could zero out the drives however they're all rather large so it'd take an inordinate amount of time.
View 2 Replies
View Related
Jan 2, 2011
My USB devices are being detected when I run the 'lsusb' command.However there is no driver that is set to the device.Also the /dev/sdX device is created so there is a mount point
View 1 Replies
View Related
Jan 6, 2009
I am new for Linux, my job is developing USB device on fedora Linux.The USB device driver has been completed successfully.my question is:how can I apply a new vendor Id (VID) for fedora kernel, so that my latest driver will be updated automatically when the Linux kernel was updated.
View 1 Replies
View Related
Dec 9, 2009
I'm installing F12 on a new HP ML-350 G6. The machine has 4 Gb memory, and a Smart Array P410i SAS controller. There are two 72 Gb disks set up as a RAID 1. I'm using a full install DVD. There are no other storage devices other than the RAID, a USB tape drive, and the DVD drive. When I try to install F12 it hangs after setting the keyboard type with "Finding Storage Devices". I've let it sit for an hour or more and it doesn't get beyond that.
F11 installs on the machine with no problem. I've used the F12 DVD on other machines with no problem (but not any other ML-350s). If I switch to a console session, dmesg shows the driver for the controller (HP CISS) has loaded and the RAID drive recognized. The appropriate devices (/dev/cciss/c0d0, /dev/ccss/c0d0p0, etc.) are all present in /dev.
View 1 Replies
View Related
Jun 22, 2011
Using 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 Related
Sep 7, 2010
steps to block usb mass storage devices in linux
View 2 Replies
View Related
Aug 4, 2010
I am currently working on fedora 12.I Tried to install Fedora 13 on my System but dont know why Installation being stopped while looking for basic storage devices .how to come out from the problem?
View 1 Replies
View Related
Jul 15, 2010
What is the command or script that is run to check the storage devices like Netapp or Hitachi?
View 4 Replies
View Related
Apr 30, 2010
Getting very frustrated trying to install F12 to my work PC. Its a dell precision 670 with a 3ware 9550sxu raid controller running raid 5. Its consistently crashing at the point when it says 'finding storage devices' with a message about : Mismatched Sizes. What I could try? I had no problem on this machine with fedora 11, so whats changed? Just for info by the way, theres two raid volumes on this system a 750Gb that contains my windows vista installation in a 500 Gb partition (NTFS) and the free space I'm using for fedora. The second volume is a 2TB data volume with a single data partition (NTFS).
View 1 Replies
View Related
May 3, 2010
Running various applications, including Open Office, I need to open files from my external hard drive, from within said application itself. But the file menus for all my applications list only the files of my primary hard drive, and I can't look at other drives. Surely there must be some way to do this.
View 2 Replies
View Related
Apr 17, 2010
The intention is to have this system dual-boot. When i first put it together, i decided to setup a raid5 array spanning 3 sata drives. I installed Windows 7 first, decided i'd get to Linux later. I left 150mb or so at the beginning of the array for /boot, and about 200gb at the end for my linux install. i'm getting to the linux install. My distro of choice is Fedora 12. I start the setup, and at the point where it's time to partition, the installer tells me that its unable to find any suitable storage devices.
I Crtl-Alt-F2 to a console, and fdisk -l. Fdisk reports three individual drives which all have partitions already. All have free space. None make sense. So i turned to google, and found some threads which explain that this chip doesn't run a true raid, rather its what's been referred to as fake raid. Which is that it depends on the windows driver in order to actually present the array to the OS, and that the best way to get by that on linux, is to break the array, and use LVM instead.
That's all well and good, but i lose two things in doing that. First i lose the resiliency of raid 5, and second, well, what does that do to my windows install? I've considered moving all of my data from windows to other machines, and then just starting from scratch, but i'd really much prefer a method of using the chips fake raid in linux. Is there a driver, or module which i can install to make this happen?
View 3 Replies
View Related
Oct 18, 2010
I'm trying to get a complete overview of booting so I can multiboot. An explanation of the hardware that stores data and the hardware that runs it with the paths the data takes would be awesome!
Here are some quotes that are not comprehensive.
Quote from [url] "When the processor first starts up, it is suffering from amnesia; there is nothing at all in the memory to execute. Of course processor makers know this will happen, so they pre-program the processor to always look at the same place in the system BIOS ROM for the start of the BIOS boot program. This is normally location FFFF0h, right at the end of the system memory. They put it there so that the size of the ROM can be changed without creating compatibility problems. Since there are only 16 bytes left from there to the end of conventional memory, this location just contains a "jump" instruction telling the processor where to go to find the real BIOS startup program."
System Memory is your RAM is it not? Why are they being specific in stating the address location in the Firmware that BIOS uses? An external EEPROM on the board is totally different from RAM is it not? Does the BIOS data travel to a specific RAM Location?
Is there a small processor connected to BIOS or is everything run with the Main CPU?
What exactly is the "chipset" that is referred to with booting?
View 2 Replies
View Related
Jul 8, 2015
On my Linux (Debian/Ubuntu), I can get the PRODUCT of a library with "apt-file search" or "dpkg -S".May be I can get the VERSION by parsing the name of the library.so.But, How can I get the VENDOR ???
View 1 Replies
View Related
Jul 5, 2010
I would like to know a way to disable the usb storage capability of the clients computers on a LAN, running opensuse 11.2.
-- I tried the modprobe -r usb-storage , but nothing happend
-- I tried the nousb option when loading the kernel, it worked, but mouse which was connected through usb port was also disabled
-- Also there is no usb-storage.ko driver inside the /lib/modules/2.6.31.12-0.2-desktop/kernel/drivers/usb/storage folder... there isn't the storage folder itself
View 9 Replies
View Related
Feb 21, 2011
is there a way or terminal command to disable access to a USB storage device upon insertion given that it is not permitted?
View 5 Replies
View Related
Apr 1, 2011
I am trying to disable USB storage from servers.What I did is as following1> modprobe -vr usb_storage2> blacklist usb_storageIt is working fine. But root can again load the module into the kernel. [ modeprobe -v usb_storage ] want to restrict this also. My requirement is not even root can access the usb storage.
View 5 Replies
View Related
Dec 26, 2010
I'm using centos 5.5,my problem is that i need to disable usb-storage in my machine.But i need usb mouse and usb keyboard to function properly.I have tried all the below mentioned methods,
1.Appending blacklist-usbstorage to /etc/modprobe.d/bl*
2.removing the *.ko file,which removes the usb-storage drivers.
3.Added the line, install usb-storage /bin/true to /etc/modeprobe.conf
The first mentioned method works partially.That is the usb port in the front panel of the cpu is gets disabled.But,when i insert it at the port behind the CPU, usb-storage(pendirve) mounts automatically,which should not happen.
NOTE:usb-storage have to be disabled only for normal-users
View 2 Replies
View Related