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

Re: How to read CD label?



Neal Lippman wrote:

> Is there any utility that can give me the lablel on a CD (mouinted or 
> unmounted - doesn't matter to me).

isoinfo -d -i /dev/cdrom

isoinfo is part of mkisofs.

Or this script ("cd-info"):

#!/bin/bash

RD=${1:-/dev/cdrom}

for i in 32768,7  32776,32 32808,32 32958,128  33086,128  33214,128 \
         33342,128  33470,32  33581,16  33598,16   33615,16   33632,16

do
        old_IFS="$IFS"
        IFS=","
        set -- $i
        IFS="$old_IFS"
        OFFSET=$1
        LENGTH=$2
        echo "*`dd if=$RD bs=1 skip=$OFFSET count=$LENGTH 2>/dev/null`#"
done


I'm afraid I don't know the author of this script, though.

Regards...
		Michael



Reply to: