Home > Fedora 8, Fedora 9, Linux > UDF Bug in Linux Kernel , Play udf discs in fedora & other distros

UDF Bug in Linux Kernel , Play udf discs in fedora & other distros

I had been noticing for many months now that certain udf discs were not being mounted by fedora 8.

Giving Message:
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Earlier i had thought it just to be defect of my drive but after my drive got replaced and after installing fedora 9 i decided to check up and voila !!This bug has been reported in nearly all distros.(well duh since kernel has bug)

Solution: Rebuild Kernel with a patch (PS This is for kernel- For Other Linux Distros Download your kernel source)

  1. Download and prepare the kernel sources

  2. yum install yum-utils
    yumdownloader --source kernel
    yum install kernel-headers

  3. Download the kernel source :kernel-
  4. yum install rpm-build m4
    rpm -ivh kernel-
    cd /usr/src/redhat/SPECS
    rpmbuild -bp --target=i686 kernel.spec
    cd ../BUILD/kernel-2.6.25/linux-2.6.25.i686/
    cp configs/kernel- .config

  5. Download UDF PATCH (click here) Check here for Main Page
  6. Patch the kernel source:

  7. cp /tmp/UDF_2.50-linux-2.6.25rc1.patch.bz2
    bzcat UDF_2.50-linux-2.6.25rc1.patch.bz2 | patch -p1

  8. Edit Makefile:
  9. change EXTRAVERSION to  which-ever kernel you want.(BE SURE ABOUT THIS)


  10. Build the kernel modules:
  11. make modules

  12. Save original udf kernel module
  13. mv /lib/modules/$(uname -r)/kernel/fs/udf/udf.ko /lib/modules/$(uname -r)/kernel/fs/udf/udf.ko.orig

  14. Copy new udf kernel module to modules directory and load it
  15. cp fs/udf/udf.ko /lib/modules/$(uname -r)/kernel/fs/udf/
    modprobe udf
    modinfo udf

If the same message still comes go through the procedure again.
For any kind of help, please post in Support and Questions

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: