Re: Linux api for device description?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
fedora-list mailing list
[email protected]
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux