The system doesn't recognise and auto-mount cdrom when cd was burned in Windows.

Bug #377373 reported by Jan Hlodan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Kubuntu 9.04
The system doesn't recognise and auto-mount cdrom when CD was burned in Windows.
CD's burned under Linux are recognised and mounted automatically.
I didn't remember that I had similar problem with older releases of Ubuntu.

$ sudo mount
/dev/sda4 on / type ext4 (rw,relatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
lrm on /lib/modules/2.6.28-12-generic/volatile type tmpfs (rw,mode=755)
securityfs on /sys/kernel/security type securityfs (rw)

$ cat /etc/fstab
# / was on /dev/sda4 during installation
UUID=6e506483-56da-4bc8-a16b-2ca770d72f7e / ext4 relatime,errors=remount-ro 0 1
# cdrom - added by me (but didn't help)
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto,exec 0 0

Revision history for this message
delance (olivier-delance) wrote :

In my Ubuntu /etc/fstab, I have :

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

Try with utf8 (prehaps windows use unicode).

affects: ubuntu → util-linux (Ubuntu)
Revision history for this message
Jan Hlodan (wewek) wrote :

It didn't help.

# cdrom
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

Revision history for this message
delance (olivier-delance) wrote :

Don't use scd0 but cdrom. We have not the same device.

Windows use a standard derived from iso9660, Joliet, but it is managed by Ubuntu (except if you disable it).

Could you try with a commercial CD (not burnt)?

The burnt CD which fails with 9.04 worked with previous version (try an old CD) ?

Revision history for this message
delance (olivier-delance) wrote :

Try" sudo mount /media/cdrom0" to get a error message, and then "dmesg|tail".

Prehaps duplicate of https://bugs.launchpad.net/ubuntu/+source/linux/+bug/106910, there were problem with CD at UDF standard.

Revision history for this message
Jan Hlodan (wewek) wrote :
Download full text (8.6 KiB)

> Don't use scd0 but cdrom. We have not the same device.
OK. Changed.
# cdrom
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
> Windows use a standard derived from iso9660, Joliet, but it is managed by Ubuntu (except if you disable it).
I haven't changed anything here. It fresh installation.
> Could you try with a commercial CD (not burnt)?
Yes, I already tried it. CD was not auto-mounted.
 > The burnt CD which fails with 9.04 worked with previous version (try an old CD) ?
Yes, I tried the same CDs on my other machine - Ubuntu 8.10, and it worked fine (CD was auto-mounted and pop up windows appeared - what I want to do with CD)

> Try" sudo mount /media/cdrom0" to get a error message, and then "dmesg|tail".

$ sudo mount /media/cdrom0
[sudo] password for wewek:
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
$

$ dmesg | tail
[ 678.752736] end_request: I/O error, dev sr0, sector 64
[ 681.592384] end_request: I/O error, dev sr0, sector 1424292
[ 681.595777] end_request: I/O error, dev sr0, sector 1423268
[ 681.598750] end_request: I/O error, dev sr0, sector 1424288
[ 681.601788] end_request: I/O error, dev sr0, sector 1423264
[ 681.605110] end_request: I/O error, dev sr0, sector 1424284
[ 681.608634] end_request: I/O error, dev sr0, sector 1423260
[ 681.611956] end_request: I/O error, dev sr0, sector 1423692
[ 681.615505] end_request: I/O error, dev sr0, sector 1422668
[ 681.618958] end_request: I/O error, dev sr0, sector 1423684
[ 681.622197] end_request: I/O error, dev sr0, sector 1422660
[ 681.625577] end_request: I/O error, dev sr0, sector 1024
[ 681.629046] end_request: I/O error, dev sr0, sector 2048
[ 681.632983] end_request: I/O error, dev sr0, sector 1424292
[ 681.636449] end_request: I/O error, dev sr0, sector 1423044
[ 681.639899] end_request: I/O error, dev sr0, sector 1424288
[ 681.643166] end_request: I/O error, dev sr0, sector 1423040
[ 681.646425] end_request: I/O error, dev sr0, sector 1423048
[ 681.649692] end_request: I/O error, dev sr0, sector 1424284
[ 681.652690] end_request: I/O error, dev sr0, sector 1423036
[ 681.655975] end_request: I/O error, dev sr0, sector 1423552
[ 681.659321] end_request: I/O error, dev sr0, sector 1422304
[ 681.662655] end_request: I/O error, dev sr0, sector 1423544...

Read more...

Revision history for this message
delance (olivier-delance) wrote :

Hello, I am reading forum to learn how to investigate.

1++) CD standard identification
I am on Ubuntu 9.04 Jaunty and introduce a CD-ROM burned on W/XP.
Command mount return :

/dev/sr0 on /media/cdrom0 type iso9660 (ro,nosuid,nodev,utf8,user=delance)

What return mount on "other machine - Ubuntu 8.10" ? (I try to know which standard used Windows)
What softaware do you use to burn CD on Windows ?
Was it a CD or a DVD ? Was it multisession ? CD is data CD or audio CD ?

2) Try "mount -t iso9660 /dev/sr0 /media/cdrom0/".

3) Do "cat /proc/filesystems", and attach lines which contains udf or iso9660.

4) Device identification
Do "eject /dev/sr0" to validate the device name.
Is SATA or PATA (old IDE) ?
Is a CD reader, CD burner or a DVD reader&CD burner ?
In fstab, replace /dev/cdrom by /dev/sr0, but I am affraid it would change anything.
After reading forum, the fstab seems to be good.

Revision history for this message
Jan Hlodan (wewek) wrote :
Download full text (3.6 KiB)

I forgot to write that I am on 64bit (Kubuntu 9.04)
Toshiba Tecra A9 T9300

> What return mount on "other machine - Ubuntu 8.10" ? (I try to know which standard used Windows)
I'll past the output later.

> What software do you use to burn CD on Windows ?
If I remember it right, I used Nero on Windows XP Home

> Was it a CD or a DVD ? Was it multisession ? CD is data CD or audio CD ?
I tried several CDs (audio, data, vide). But what should be easy to reproduce: test original audio CD bought in music store. It should contains just songs in .wav format and was burned in Windows.

> 2) Try "mount -t iso9660 /dev/sr0 /media/cdrom0/"

# mount -t iso9660 /dev/sr0 /media/cdrom0/
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

# dmesg | tail
[22941.060560] end_request: I/O error, dev sr0, sector 64
[22941.060606] isofs_fill_super: bread failed, dev=sr0, iso_blknum=16, block=16

 > 3) Do "cat /proc/filesystems", and attach lines which contains udf or iso9660.

$ cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cgroup
nodev cpuset
nodev debugfs
nodev securityfs
nodev sockfs
nodev usbfs
nodev pipefs
nodev anon_inodefs
nodev tmpfs
nodev inotifyfs
nodev devpts
        ext3
        ext4
        ext2
        cramfs
nodev ramfs
nodev hugetlbfs
nodev ecryptfs
nodev fuse
        fuseblk
nodev fusectl
nodev mqueue
        reiserfs
        iso9660
$

> 4) Device identification
> Do "eject /dev/sr0" to validate the device name.
CD was ejected :)
$ eject /dev/sr0
$

> Is SATA or PATA (old IDE) ?
*-cdrom
                description: DVD-RAM writer
                product: DVD-RAM UJ-852S
                vendor: MATSHITA
                physical id: 0.0.0
                bus info: scsi@3:0.0.0
                logical name: /dev/cdrom
                logical name: /dev/cdrw
                logical name: /dev/dvd
                logical name: /dev/dvdrw
                logical name: /dev/scd0
                logical name: /dev/sr0
     ...

Read more...

Revision history for this message
delance (olivier-delance) wrote :

On my computer, I get :

delance@delance-desktop:~$ cat /proc/filesystems
nodev sysfs
...
nodev binfmt_misc
 udf
 iso9660

Your device identification is good, but I think you lack "driver" for windows file system UDF.
I will search more data on google ?
Can you confirm "cat /proc/filesystems" has iso9660 line but not udf ?

Revision history for this message
Jan Hlodan (wewek) wrote :

> Can you confirm "cat /proc/filesystems" has iso9660 line but not udf ?

yes, I can confirm that after "sudo mount -t iso9660 /dev/sr0 /media/cdrom0/" is no 'udf' in "/proc/filesystems"
just this:

nodev mqueue
        iso9660

Revision history for this message
delance (olivier-delance) wrote :

If you do not need multi-sessions CD-R, you can on Window choose iso9660 instead of udf. Your burn software ask probably if you want multi-session (say No) or if you want to "close" the CD (say Yes).

But Linux kernel should read udf CD-R. And it is not an solution for your already burned CD-R.

I read on french ubuntu documentation that Vista do not use standard UDF, but I think it is now fixed in current kernel. Perhaps Roxio doesn't follow strictly the standard.

I never use multi-session, since there is CD-RW now. So I can not test if my computer recognize such CD.
I am more surprised that commercial CD works, since there should be iso9660.

The driver for "udf" is in kernel (I will change package associated in bug).

Do "lsmod | grep udf". Udf is managed by a kernel module and you should get :
udf 87716 0
crc_itu_t 10112 1 udf

Do a "sudo modprobe udf"

Try " sudo mount -t udf /dev/sr0 /media/cdrom0/"

Try "sudo mount /dev/sr0 /media/cdrom0 -t udf -o ro,user,noauto,exec,umask=0,session=0,lastblock=1"

Revision history for this message
delance (olivier-delance) wrote :

Do also a "uname -rv" to get your kernel version.
Mine is "2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009"

Revision history for this message
Jan Hlodan (wewek) wrote :

I haven't used Windows for years. I'm not going to burn any CDs in Windows. I have discovered this bug when I tried to mount and play any commercial audio CD from music store.
Then I realised that it should affect also CDs burned in Windows. So I tried to mound some CD which I burned in Windows years ago. And with the same result.
This is not critical issue for me. But I believe, for other customers this should be fatal. If kernel doesn't contain 'udf' module as a default module.

Requested information:

$ uname -rv
2.6.28-12-generic #43-Ubuntu SMP Fri May 1 19:31:32 UTC 2009

no udf module is loaded
# lsmod | grep udf
#
(attaching lsmod)

# modprobe -l | grep udf
kernel/fs/udf/udf.ko

# modprobe udf
# mount -t udf /dev/sr0 /media/cdrom0/
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

#

# mount /dev/sr0 /media/cdrom0 -t udf -o ro,user,noauto,exec,umask=0,session=0,lastblock=1
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

#

Jan Hlodan (wewek)
affects: util-linux (Ubuntu) → udftools (Ubuntu)
Jan Hlodan (wewek)
affects: udftools (Ubuntu) → linux (Ubuntu)
Revision history for this message
delance (olivier-delance) wrote :

I am on Ubuntu.
In Synaptic,
kernel 2.6.28-12 is today tagged "for test" (jaunty-proposed)
kernel 2.6.28-11 is today tagged "stable" (jaunty-update)

Revision history for this message
Jan Hlodan (wewek) wrote :

How you mean this?
Do you think that "stable" version is supporting udf in this case?

Revision history for this message
delance (olivier-delance) wrote :

Yes.
I do not know how you get version 2.6.28-12,as in default configuration it is 2.6.28-11 which is supported.
Perhaps in Synaptic depot, you have added jaunty-proposed to use a software.
You should try to go back to 2.6.28-11 and wait the next "stable" kernel, by removing jaunty-proposed in your synaptic depot, if you have it.
Else we will try another solution.

Revision history for this message
Jan Hlodan (wewek) wrote :

I booted into 2.6.28-11
$ uname -rv
2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009

# modprobe udf
# mount -t udf /dev/sr0 /media/cdrom0/
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
# mount /dev/sr0 /media/cdrom0 -t udf -o ro,user,noauto,exec,umask=0,session=0,lastblock=1
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

It seems that udf module is loaded.
# lsmod | grep udf
udf 92584 0
crc_itu_t 10496 1 udf
#

# dmesg | tail
[ 515.908073] end_request: I/O error, dev sr0, sector 0
[ 515.911255] end_request: I/O error, dev sr0, sector 8
[ 515.914522] end_request: I/O error, dev sr0, sector 1248
[ 515.917738] end_request: I/O error, dev sr0, sector 2496
[ 515.921450] end_request: I/O error, dev sr0, sector 4
[ 515.924617] end_request: I/O error, dev sr0, sector 0
[ 515.927853] end_request: I/O error, dev sr0, sector 8
[ 515.931434] end_request: I/O error, dev sr0, sector 1248
[ 515.934830] end_request: I/O error, dev sr0, sector 2496
[ 515.934978] UDF-fs: No partition found (1)

Revision history for this message
delance (olivier-delance) wrote :

I found that DVD Video are on Udf format. And the DVD is mounted with any problem! And without udf kernel module.
If I do "modprobe udf", the DVD is also mounted.

delance@delance-desktop:~$ lsmod | grep udf
udf 87716 1
crc_itu_t 10112 1 udf

delance@delance-desktop:~$ uname -a
Linux delance-desktop 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686 GNU/Linux.

The bug is also reported in Bug #106910.

Changed in linux (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.