Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started by: jls on July 30, 2012, 08:04:20 AM
-
I was trying eeze which is used by enlightenmenet to manage the devices (cdrom, usb sticks) but it doesn't work, so I asked why on the #e freenode irc channel and 1 of the "e" developers typed me me to pastebin the results of:
udevadm info --export-db
The guy examined what I pastedbin and typed:
(13:41:35) zmike:
well either your kernel or udev are broken then
(13:41:43) zmike:
because they aren't setting the bus of your hard disks properly
and again
(13:45:34) zmike:
BUS is not set for your hard drives
(14:05:22) zmike:
your distribution seems to be incompatible with eeze due to your udev+kernel setup
...........
(14:11:36) zmike:
I will not change eeze to accommodate your distribution
(14:11:47) zmike:
I will close any bugs filed about this
-
Hi jls_legalize
You might also want to include the pastebin link in case someone needs to see it.
-
I seem to recall that if you load udev-extra and copy the full "60-persistent-storage.rules" from the udev source tarball, then you'll get the bus type reported correctly.
-
Hi jls_legalize
You might also want to include the pastebin link in case someone needs to see it.
http://pastebin.ca/2175816 (http://pastebin.ca/2175816)
juanito, thanks I'll try your suggestion
-
You should see something like:
$ udevadm info -q env -n /dev/sda
DEVPATH=/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda
MAJOR=8
MINOR=0
DEVNAME=/dev/sda
DEVTYPE=disk
SUBSYSTEM=block
ID_ATA=1
ID_TYPE=disk
ID_BUS=ata
ID_MODEL=ST320LT007-9ZV142
...
-
I did what u suggested juanito,
I've installed udev-extra and I've copied all the 60 rules from ftp://ftp.nluug.nl/pub/metalab/distributions/tinycorelinux/4.x/x86/release/src/udev-2a30eaa.tar.xz (http://ftp://ftp.nluug.nl/pub/metalab/distributions/tinycorelinux/4.x/x86/release/src/udev-2a30eaa.tar.xz) to /lib/udev/rules.d and also to /etc/udev/rules.d
but I don't see extra info u reported like
ID_ATA=1
ID_TYPE=disk
ID_BUS=ata
ID_MODEL=ST320LT007-9ZV142
-
did you try:
$ sudo udevadm control --reload-rules [shouldn't be required]
$ sudo udevadm trigger
..after copying the rules and loading udev-extra?
Edit: $ udevadm info -q env -n /dev/sda
DEVPATH=/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda
MAJOR=8
MINOR=0
DEVNAME=/dev/sda
DEVTYPE=disk
SUBSYSTEM=block
ID_PATH=pci-0000:00:1f.2-scsi-0:0:0:0
ID_PATH_TAG=pci-0000_00_1f_2-scsi-0_0_0_0
DEVLINKS=/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0
cp 60-persistent-storage.rules from udev-173 and load udev-extra: $ sudo udevadm trigger
$ udevadm info -q env -n /dev/sda
DEVPATH=/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda
MAJOR=8
MINOR=0
DEVNAME=/dev/sda
DEVTYPE=disk
SUBSYSTEM=block
ID_ATA=1
ID_TYPE=disk
ID_BUS=ata
ID_MODEL=APPLE_SSD_TS256C
-
did you try: $ sudo udevadm control --reload-rules [shouldn't be required]
$ sudo udevadm trigger
..after copying the rules and loading udev-extra?
Perhaps such should be added to udev-extra's info file or even its startup script?
-
coping the rules to /etc/udev/rules.d/ and then issuing
sudo udevadm trigger
works!
Thanks so much juanito
-
now I see my cdrom & usb stick on my desktop, but the mount command eeze is using includes also the destination (2nd mount parameter) so it needs to be executed by root.
That's the problem now
-
you could try set uid root for the command in question?
-
the command eeze uses is:
/usr/local/bin/mount -o noexec,nodev,nosuid,uid=1000, /dev/sr0 /media/sr0
I created a link from /mnt to media
If I try this command myself I get this error:
mount: only root can do that
-
That's how linux mounts work. Only root can do arbitrary mounts that aren't specified in fstab.
Run eeze as root.
-
Perhaps such should be added to udev-extra's info file or even its startup script?
I don't think it should, because this concerns adding custom rules, outside of the udev-extra extension.
Basically, custom rules will need that command regardless of whether the rule uses extra apps from the udev-extra extension.
-
i have an update for udev see http://code.google.com/p/tc-ext-tools/source/detail?r=822 (http://code.google.com/p/tc-ext-tools/source/detail?r=822)
-
If you want to modify the base rules, please send me a patch. Note that just copying rules from a newer udev will not work, the base rules are modified in many places.
-
if u look at this: http://code.google.com/p/tc-ext-tools/source/browse/packages/udev/common?r=822 (http://code.google.com/p/tc-ext-tools/source/browse/packages/udev/common?r=822) you'll see that arslan is using version 173 which is the same in base tc
-
yea i know i checked them actually. the update doesn't overwrite all the rules. i believe most of them is compatible with base except those which set permissions and ownership, and run programs in /lib/udev from udev-extra
-
using the udev-extra built with tc-ext-tools results that eeze works and also places (in e-modules-extra) work using udisks.
The problem is that places shows also the loop, is there a way to avoid displaying them?