|Just another Perl shrine|
(OT) how to identify a partitionby leocharre (Priest)
|on Apr 18, 2008 at 15:49 UTC||Need Help??|
leocharre has asked for the
wisdom of the Perl Monks concerning the following question:
I'm working on keeping track of data accross a network. And yes I am convinced perl is just fine for managing heavy stuff like this. Or it will be. (Paul Graham is da man!!!)
How would I go about identifying a partition, or at least a physical drive?
Maybe id'ing a partition would be easier? It seems I could simply put a readonly file at the root of the partition, like /.ptnid.0123456789.
Maybe if I looked up a way to tap into the hd bios chip or whatnot, there would be an id there? But this would only be useful for the actual driv, not so much the concept of 'partition'.
Looked on cpan and I see little about this kind of thing- maybe that's the way it should be?
I'm using ext3, maybe some fs types keep an id themselves (in the partition/inode/etc table ) ?
Any suggestions where I could find out more? I've read up on inode/fs design and some other creepy beautiful things, it hurts my head. But I can delve deeper if that's the road to the wizard.