Hard disk Serial no. and Model no.

Discussion in 'Macintosh Computers' started by naveen, Nov 29, 2004.

  1. naveen macrumors member

    Joined:
    Oct 27, 2004
    #1
    Hi all

    I am currently working in a project in QT For Macintosh system which deals with reading hardware details. Can anyone help me how to get the hardware details.
    for example in case of harddisk, i want to get the harddisk details like, manufacturer name, number of sectors, serial number,Model No. Like this i want to get details of all storage devices.
    is there any way of getting this. can anyone send a sample code of getting these details. is there any way in QT to get these.Where they are store in a system.
    Plz tell me from where i have to read the information programatically about serial no. and model no. of hard disk.

    Thanks and Regards

    *
     
  2. varmit macrumors 68000

    varmit

    Joined:
    Aug 5, 2003
    #2
    That stuff is written on the drives. Just have to read it. Otherwise, check with the manufacture, and they usually tell you all the information such as sectors and what not. And if you want the details of the Mac, read the sticker on the back of it. Apple prints what the computer originally came with on the back.
     
  3. sgarringer macrumors regular

    Joined:
    Jul 15, 2004
    Location:
    Cedar Rapids, IA
    #3
    Bother to read his original message? Hes looking for code that will pull this into QT. Unless you want to write a program that reads a sticker, you didnt answer the original question.
     
  4. AmigoMac macrumors 68020

    AmigoMac

    Joined:
    Aug 5, 2003
    Location:
    l'Allemagne
    #4
    that should be available within a code, look at system profiler and it works, I don't think it is impossible but don'T have idea how to do that, sorry, I know I didn't answer your question but a bit of motivation doesn't bother ;)
     
  5. Makosuke macrumors 603

    Joined:
    Aug 15, 2001
    Location:
    The Cool Part of CA, USA
    #5
    Although it's entirely possible to read plenty of drive info in software, I've never heard of anybody doing anything that low-level in QT directly. So far as I know, QT doesn't allow much outside of interface and scripting--certainly none of the system calls and likely direct hardware access that would be required to read the HD's serial number.

    I'd be quite surprised if this were possible without resorting to an external application--aside from completely breaking the cross-platform nature of QuickTime, that kind of access from a media handler would be a huge security risk.
     
  6. naveen thread starter macrumors member

    Joined:
    Oct 27, 2004
    #6
    hard disk serial no and model no and capacity

    hi all
    I am working on QT Designer(c++ Gui programming kit).
    I want to pic the hard disk serial no and model no and capacity using c++ programming from the macintosh system.
    But i don't know where ,in which file the information about the hard disk details are written.
    I am able to read the file in macintosh like /dev/disk0.

    Plz give me valuable suggestions and location of file that contains the above details about the hard disk.
    Thanks and Regards
     
  7. jeremy.king macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
  8. naveen thread starter macrumors member

    Joined:
    Oct 27, 2004
    #8
    Hard disk serial no and model no

    hi all
    Plz Sought out my problem.
    If anybody have knowlege please help me.

    Thanks and Regards
     

Share This Page