Linux api for device description?

William Case billlinux at rogers.com
Sat Jul 12 23:27:22 UTC 2008


Hi Tom;

Kind of unorthadox, because I forget the right way off hand, but

parted /dev/dvd
(parted) p

gives me the name in the header.

On Sat, 2008-07-12 at 19:11 -0400, Tom Horsley wrote:
> Before I resort to digging up the source code, does anyone
> happen to know how to get from a device name like "/dev/dvd"
> to a description like "Toshiba Model XYZ CDRW"?
> 
> I see tools like k3b display that info, but I don't know
> off hand the api call or magic /proc/whatever file that
> allows me to dig up the description starting at the /dev/
> name.
> 
-- 
Regards Bill;
Fedora 9, Gnome 2.22.3
Evo.2.22.3.1, Emacs 22.2.1




More information about the users mailing list