refreshing /dev direcotry to show CD tracks

Svein Halvor Halvorsen svein-freebsd-questions at theloosingend.net
Mon Oct 25 23:13:58 PDT 2004


[Eric Thornton, 2004-10-25]
>  I'm trying to figure out how to update the /dev directory after inserting a
>  CD to show the CD's tracks.  The /dev direcotry does list the CD tracks
>  (/dev/acd0t01...02...) but only after i try to access the disk erroneously
>  through mount /cdrom. I have a shell script that can dump the tracks once
>  they've appeared, but my script dies when the filenames arent present.  Is
>  there a command that will "refresh" the direcory after CD is inserted?

This doesn't give you a general solution to your problem, but issuing 

# cdcontrol -f /dec/acd0 info 

...will work in your specific case.


SVein Halvor


More information about the freebsd-questions mailing list