Tag Info

New answers tagged

2

Unless you can't (or don't want to) use persistent device naming (mentioned by @jasonwryan in his comment), you can: try swapping the installed drives until you achieve the desired outcome. This however, will be tedious and error prone, plus it is likely to break the other installed OSes. tell your bootloader to pass root=/dev/sdc1 to the kernel when ...


2

So, assuming your device sits are /dev/sdc try an ls -la /sys/dev/block/* | grep sdc That should be a good start. However, I will say that Bus 001 Device 011: ID 058f:6387 Alcor Micro Corp. Flash Drive looks rather suspicious :) Also, remember that sdX will get generated on the fly due to udev. So you might be hard pressed to make a constant script. ...


1

There is an issue in Chromium tracker to remove runtime dependency on libudev.so.0. It includes some useful information as well, see this link. Google Chrome installer creates symlink when needed, see this link.


0

A simple UDEV rule like that should help: SUBSYSTEM=="block", ATTRS{idVendor}=="058f", ATTRS{idProduct}=="6366", GROUP="disk" Add it to, say, /etc/udev/rules.d/92-treat-my-usb-drive-as-internal.rules, so it would be proccessed after 91-permissions.rules, which assign the floppy group. idVendor and idProduct of your USB-drive could be detected with $ ...


2

On Debian typically the selected syslogd package takes care of creating the /dev/xconsole pipe. You probably have rsyslog installed; look at the /etc/init.d/rsyslog script and search for create_xconsole which is the shell function that creates /dev/xconsole; it's trivial to modify that to create a second file.


1

When using peoro's solution, I got some extra output from xrandr, so I used the -c option for grep which counts the number of matches. I adapted it for HDMI and added audio switch as well: #!/bin/bash # adapted from http://unix.stackexchange.com/questions/4489/ # default monitor is LVDS1 MONITOR=LVDS1 # functions to switch from LVDS1 to HDMI1 function ...


0

Supposing I'm trying to find the device for my UVC camera, lsusb gives me: Bus 001 Device 004: ID 1e4e:0102 Cubeternet GL-UPC822 UVC WebCam The device filename is then /dev/bus/usb/001/004 (first component is bus id, next is device id).


2

I’ve been able to do this with an udev rule, after some trickery (and using lsusb to find out the vendor and product ID of the device in flash mode): $ cat /etc/udev/rules.d/nxt.rules # disable NXT in flash mode ACTION=="add", ATTR{idVendor}=="03eb", ATTR{idProduct}=="6124", RUN="/bin/sh -c '/bin/echo -n $kernel:1.0 | /usr/bin/tee ...



Top 50 recent answers are included