Linux api for device description?

William Case billlinux at rogers.com
Sat Jul 12 23:37:00 UTC 2008


On Sat, 2008-07-12 at 19:27 -0400, William Case wrote:
> 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.
> 

Sorry Tom, just tried parted, again; it doesn't work on /dev/dvd.




> 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
> 
-- 
Regards Bill;
Fedora 9, Gnome 2.22.3
Evo.2.22.3.1, Emacs 22.2.1




More information about the fedora-list mailing list