Find the answer to your Linux question:
Results 1 to 7 of 7
His, I am doing a script to catalog my CDs and DVDs (all burned with windows) and at this point I would like to know how to read the serial ...
  1. #1
    Just Joined! clickalot's Avatar
    Join Date
    Nov 2009
    Location
    Erlangen, Germany
    Posts
    37

    read CD/DVD disk serial number

    His,

    I am doing a script to catalog my CDs and DVDs (all burned with windows) and at this point I would like to know how to read the serial number of the CD/DVD

    in DOS/windows i do a dir command and i get a serial number. something like:

    Code:
    c:> dir d:
    Volume in drive D is book2      Serial number is 4FD6:825E
    (...)
    How do i get that serial number under Linux?

    Thanks!
    Last edited by clickalot; 12-06-2009 at 05:43 PM. Reason: clarity

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    The hdparm command with the -I Parameter gives many infos.
    But it needs to have root rights, so there might be a better way.
    Debian GNU/Linux -- You know you want it.

  3. #3
    Just Joined! clickalot's Avatar
    Join Date
    Nov 2009
    Location
    Erlangen, Germany
    Posts
    37
    Hi GNU-Fan,

    in my case:
    Code:
    $ sudo hdparm -I /dev/sr0
    will give information on the cd-rom device and not on the actual optical media...

    sorry, i wasn't clear enough

  4. #4
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Maybe browse the proc directory.
    The pseudofiles in there should give you ample information.
    CDROM driver (sr or scd)
    Debian GNU/Linux -- You know you want it.

  5. #5
    Linux Enthusiast minthaka's Avatar
    Join Date
    May 2006
    Location
    Mol, Vojvodina
    Posts
    556
    If you're using a Debian or Redhat based distro, I'm inviting you to try out my program for CD/DVD catalogization I'm developing since january this year. Of course, I don't want you to abandon your scripting, I'd just like to hear your opinions, since I don't know what do I have to add. I have very few feedbacks, so I don't know. Thank you!

    The link:
    Browse GamCat Files on SourceForge.net
    Anc the project's public page with infos (please read them):
    GamCat KDE-Apps.org
    If you need a CD/DVD catalogizer, give a try to my program:
    http://www.kde-apps.org/content/show...content=100682
    Linux Usert#430188

  6. #6
    Just Joined! clickalot's Avatar
    Join Date
    Nov 2009
    Location
    Erlangen, Germany
    Posts
    37
    Thanks for the good pointer GNU-Fan

    minthaka: that's exciting that you are developing a gui based cataloger!
    I'll probably have time in january to look into it better
    (right now i installed it, it asked me a bunch of questions and then it crashed - probably because i don't have gambas database installed... btw: i'm using Ubuntu 9.04-64bit)


    also:
    I'm starting to think that many serial numbers aren't stamped into the media... instead, it's the dos dir command that generates it...

  7. #7
    Linux Enthusiast minthaka's Avatar
    Join Date
    May 2006
    Location
    Mol, Vojvodina
    Posts
    556
    YOU MUST INSTALL the gambas2-gb-db-sqlite2 and sqlite3 PACKAGES MANUALLY. This is due to an old version of gambas2 present in Ubuntu. Please, simply delete the folder /home/user/.GamCat and restart the app.
    Last edited by minthaka; 12-07-2009 at 12:29 PM. Reason: They have changed the package name in Ubuntu
    If you need a CD/DVD catalogizer, give a try to my program:
    http://www.kde-apps.org/content/show...content=100682
    Linux Usert#430188

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...