Bash: How to read label of cd/dvd?
From FVue
Contents
Problem
I want to read the label/volume of the cd? How can this be done?
Solution
sudo isoinfo -d dev=0,1,0 | sed -rn 's/^Volume id: (.*)$/\1/ p'
isoinfo is a utility to perform directory like listings of iso9660 images.
OPTIONS
-d Print information from the primary volume descriptor (PVD) of
the iso9660 image. This includes information about Rock Ridge,
Joliet extensions and Eltorito boot information if present.
Journal
20070324
- Wie das cdrom Label herausbekommen?
- Forum thread on de.comp.os.unix.linux.misc with same question.
- How to read CD label?
- Forum thread on muc.lists.debian.user with hint to isoinfo
Advertisement