SilverWav's Journal

The best is yet to come…

Note: udev/cdrom_id

leave a comment »

sudo /lib/udev/cdrom_id -d /dev/sr0
sudo /lib/udev/cdrom_id -d /dev/sr0
main: probing: '/dev/sr0'
cd_media_compat: CDROM_DRIVE_STATUS != CDS_DISC_OK
cd_inquiry: INQUIRY: [PIONEER ][DVD-RW  DVR-112D][1.21]
cd_profiles: GET CONFIGURATION: number of profiles 316
cd_profiles: profile 0x2b
cd_profiles: profile 0x1b
cd_profiles: profile 0x1a
cd_profiles: profile 0x16
cd_profiles: profile 0x15
cd_profiles: profile 0x14
cd_profiles: profile 0x13
cd_profiles: profile 0x11
cd_profiles: profile 0x10
cd_profiles: current profile 0x00
cd_profiles: no current profile, assuming no media
ID_CDROM=1
ID_CDROM_CD_R=1
ID_CDROM_CD_RW=1
ID_CDROM_DVD=1
ID_CDROM_DVD_R=1
ID_CDROM_DVD_RW=1
ID_CDROM_DVD_PLUS_R=1
ID_CDROM_DVD_PLUS_RW=1
ID_CDROM_DVD_PLUS_R_DL=1

NAME
udev – dynamic device management

DESCRIPTION
udev provides a dynamic device directory containing only the files for actually present devices. It creates or removes device node files in the /dev directory, or it renames network interfaces.

Usually udev runs as udevd(8) and receives uevents directly from the kernel if a device is added or removed from the system.

If udev receives a device event, it matches its configured rules against the available device attributes provided in sysfs to identify the device. Rules that match may provide additional device information or specify a device node name and multiple symlink names and instructudev to run additional programs as part of the device event handling.

Advertisements

Written by SilverWav

April 14, 2010 at 12:01 am

Posted in Notes

Tagged with , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: