Question : How do I identify and mount a particular CD?

I have a stripped down copy of Debian burnt to CD. The CD contains the linux kernel, the initramfs and a harddrive image file.
How can I identify and mount the CD that contains the harddrive image file?
I tried using mount -L vollabel but it seems to work for some CD's and not others.

Jason

Answer : How do I identify and mount a particular CD?

Figured it out.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
#!/bin/bash
for a in $(cat /proc/diskstats | awk {'print $3'}); do
check=(/dev/$a)
echo checking $check
mount $check /mnt/testmount 2>/dev/null
if [ -f /mnt/testmount/hda1.img ]
 then
 echo "found at $check"
fi
umount -l $check 2>/dev/null
done
Open in New Window Select All
Random Solutions  
 
programming4us programming4us