LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > MensaWater
User Name
Password

Notices


Rate this Entry

UDF mount works on RHEL6 & CentOS6 but not RHEL5 & CentOS5

Posted 02-05-2014 at 01:32 PM by MensaWater
Updated 02-05-2014 at 03:00 PM by MensaWater

On receiving an install media today I tried mount it on my RHEL5 system:

mount /dev/hdc /mnt/cdrom

But that errored out:
mount: block device /dev/hdc is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

In /var/log/messages I saw:
Feb 5 14:17:05 atljcl06 kernel: UDF-fs: No fileset found
Also saw similar in dmesg.

On doing research I found this is a known issue in some distros (including RHEL5/CentOS5/older Fedora). The issue is suggested to be because the media was created with Windows Vista which put an odd UDF format on the DVD. I did find links to kernel patches for some distros but didn't really want to patch my kernel.

The kernels used in RHEL5 do come with the udf.ko driver and in fact on my attempt to mount it automatically loaded the module as shown by doing "lsmod |grep udf" so I didn't even have to do the modprobe to load it. Despite that it still had the issue.
I did go ahead and do full update of my system so it is now RHEL 5.10 to verify the latest kernel still has the issue.

Also I found the suggestion to simply mount the drive on Windows (in my case it worked on Windows 7 Pro) and then burn a new DVD from the files found. (It should be obvious that you would have to select the files and burn them to a new DVD and NOT simply duplicate the DVD as such a duplicate would of course have the same issue as the original.) Rather than doing that I used my RHEL5 system to dd in the image to make a soft copy iso file as I would any other CD/DVD:
dd if=/dev/hdc of=<image>.iso
Where <image> is replaced by the name you want to give the copy.

I then used scp to copy that <image>.iso to a RHEL6 system. On doing a loop mount there it mounted with no issue:
mount -o loop -t udf <image>.iso /mnt/<mountdir>
The fstab entry to make that loop mount would be:
<image>.iso /mnt/<mntdir> udf loop 1 4
Where <mountdir> is the name of a directory you created to be the mountpoint for the image.

Since that worked it shows RHEL6 has support for this odd UDF format where RHEL5 didn't. I also tested on a CentOS6 box using the original DVD rather than the soft copy and it mounted successfully there.
Posted in Uncategorized
Views 2739 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 04:50 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration