2.6.27 GPL (GNU General Public License)    
2.6/5 18
A filesystem that exports all tracks on a CD as normal files.





CDfs is a filesystem for Linux systems that exports all tracks and boot images on a CD as normal files. These files can then be mounted (e.g. for ISO and boot images), copied, played (audio and VideoCD tracks)...

The primary goal for developing this file system was to `unlock' information in old ISO images. For instance, if you have a multisession CD with two ISO images that both contain the file 'a', you only see the file 'a' in the second session if you use the iso9660 file system:

[root@k6 /root]# mount -t iso9660 -o ro /dev/cdrom /mnt/cdrom

[root@k6 /root]# ls -l /mnt/cdrom
total 2
-r-xr-xr-x 1 root root 2 Aug 8 19:16 a
-r-xr-xr-x 1 root root 2 Aug 8 19:19 b

If you mount the CD with the cdfs file system, you get the two sessions as files:

[root@k6 /root]# mount -t cdfs -o ro /dev/cdrom /mnt/cdfs

[root@k6 /root]# ls -l /mnt/cdfs
total 33389
-r--r--r-- 1 ronsse ronsse 33503232 Aug 8 19:36 sessions_1-1.iso
-r--r--r-- 1 ronsse ronsse 34121728 Aug 8 1999 sessions_1-2.iso

These files can then be mounted loop back:

[root@k6 /root]# mount -t iso9660 -o loop /cdfs/sessions_1-1.iso /mnt/loop1

[root@k6 /root]# mount -t iso9660 -o loop /cdfs/sessions_1-2.iso /mnt/loop2

and the file a can be accessed in both sessions

[root@k6 /root]# ls -l /mnt/loop1
total 9889
-r-xr-xr-x 1 root root 10104236 Aug 8 17:34 a

[root@k6 /root]# ls -l /mnt/loop2
total 2
-r-xr-xr-x 1 root root 2 Aug 8 19:16 a
-r-xr-xr-x 1 root root 2 Aug 8 19:19 b

The file system also allows you to access data on faulty multi session disks, e.g. disk with multiple single sessions instead of a multi session (for instance created with mkisofs without the proper -C parameters).
Last updated on December 25th, 2008

0 User reviews so far.