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-2.6.25.3-18.fc9) For Other Linux Distros Download your kernel source)
- Download and prepare the kernel sources
- Download the kernel source :kernel-2.6.25.3-18.fc9.src.rpm
- Download UDF PATCH (click here) Check here for Main Page
- Patch the kernel source:
- Edit Makefile:
- Build the kernel modules:
- Save original udf kernel module
- Copy new udf kernel module to modules directory and load it
yum install yum-utils
yumdownloader --source kernel
yum install kernel-headers
yum install rpm-build m4
rpm -ivh kernel-2.6.25.3-18.fc9.src.rpm
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-2.6.25.3-i686.config .config
cp /tmp/UDF_2.50-linux-2.6.25rc1.patch.bz2
bzcat UDF_2.50-linux-2.6.25rc1.patch.bz2 | patch -p1
change EXTRAVERSION to which-ever kernel you want.(BE SURE ABOUT THIS)
EXTRAVERSION=.3-18.fc9.i686
make modules
mv /lib/modules/$(uname -r)/kernel/fs/udf/udf.ko /lib/modules/$(uname -r)/kernel/fs/udf/udf.ko.orig
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