Tiny Core Linux
Tiny Core Base => Micro Core => Topic started by: johnsmith on February 23, 2014, 08:37:55 PM
-
I have been developing a program which will later run on microcore.
in this program I at some point want to get some information on harddrives and use udev to do so.
Now it seems udev is incomplete on tinycore or something because I cannot get the information out of the drives even though the exact same hardware setup with debian I can use udev to get the information.
I am looking to get serial and model.
Is there a way to fix this?
-
Try hdparm.
-
I am looking to integrate it into a program. not using an external program...
udev offers libraries libudev.
-
Install the udev-lib extension.
Subject of thread appears to be rather misleading then.
-
I have statically compiled. the problem is Udev NOT reporting it, they dont get populated at boot time.
try for yourself and type into console udevadm info --query=property --name="device path here"
there is no entry for model,serial,wwn etc this incidentally also means you cant make udev rules
-
Please provide a concrete example for "device path here"
-
/dev/sda
/dev/hda
basically any device that is populated by udev. so cdrom drives sg0 etc all should work
-
udevadm info --query property --attribute-walk --name sda|grep -e serial -e model
-
I noticed something like this before in a different context - tinycore uses an edited version of the set of rules that comes with the udev-173 package, so you probably need to use one or more of the original rules in full.
-
You can get disk models directly from /sys, but serials aren't exposed anywhere, so you need to query them via scsi somehow (full udev, or any other helper).
-
sudo sh -c 'find /sys -type f -name serial|xargs cat'
seems to work for me.
-
I don't have SCSI serials there, only USB?
-
is it possible to get full udev for microcore?
I really only want it as backup if the scsi inquiry doesnt work, but I was just surprised that udev isnt fully functional
-
I don't have SCSI serials there, only USB?
Indeed /dev/sda with which I tested as shown in prior posts is a USB device here, while no SCSI devices are connected.
I would not have expected such a difference in exposure.