CD-ROMs are not mounted with UTF-8

Bug #22623 reported by Sebastien CELLES
40
Affects Status Importance Assigned to Milestone
partman-target (Ubuntu)
Fix Released
Medium
Martin Pitt
Declined for Gutsy by Henrik Nilsen Omma
Hardy
Fix Released
Medium
Martin Pitt

Bug Description

Hello,

I write you because when I try to copy with nautilus the content of a cdrom
(with french filenames with accentuation), some characters (é, è, etc...) are
converted in ?
and the end of the filename become "invalid encoding".

The problem is the same when I'm just mounting the cdrom to browse it.
I write
sudo mount /media/cdrom
(I think it should be easier for beginners... but I don't have cdrom icon on my
Gnome Desktop)

my /etc/fstab line for cdrom is

/dev/hda /media/cdrom0 udf,iso9660 ro,user,noauto 0 0

I think Ubuntu, which is a user oriented Linux distribution shouldn't have such
a problem.

Regards

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for the bug report. I see two issues in it:

a) "invalid encoding" in file names
 -> I suppose this is a Windows CD, is it? If so, it's the problem, that Windows
uses a different encoding than we do

b) no icon for the CD drive
 -> that's supposed to work, maybe Martin can help with that. Sebastien, can you
have a look at /var/log/syslog and the output of dmesg and see if something
awful happens?
 -> Martin, what else needs to be checked?

Revision history for this message
Martin Pitt (pitti) wrote :

(In reply to comment #1)
> Thanks for the bug report. I see two issues in it:
>
> a) "invalid encoding" in file names
> -> I suppose this is a Windows CD, is it? If so, it's the problem, that Windows
> uses a different encoding than we do

Sebastien: Can you please try the following: Please unmount the CD and mount it
again using

  sudo mount -o iocharset=utf8 /cdrom

Do you see proper characters then? If it works, then we should maybe set it as
default in Breezy, since Unicode becomes more and more popular and we converted
everything else to Unicode, too.

> b) no icon for the CD drive
> -> that's supposed to work, maybe Martin can help with that. Sebastien, can you
> have a look at /var/log/syslog and the output of dmesg and see if something
> awful happens?
> -> Martin, what else needs to be checked?

There is no icon at all? Please do "lshal > lshal.txt" and attach lshal.txt to
this bug report.

Revision history for this message
Sebastien CELLES (s-cls) wrote :

Created an attachment (id=4129)
lshal

Revision history for this message
Sebastien CELLES (s-cls) wrote :

mounting cdrom with

sudo umount -o iocharset=utf8 /media/cdrom

works fine

what should I put in my fstab ?

$ dmesg | tail -n 20
hdd: dma_intr: error=0x84 { DriveStatusError BadCRC }
ide: failed opcode was: unknown
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
cdrom: open failed.
UDF-fs: No VRS found
ISO 9660 Extensions: Microsoft Joliet Level 3
ISOFS: changing to secondary root
UDF-fs: No VRS found
ISO 9660 Extensions: Microsoft Joliet Level 3
ISOFS: changing to secondary root
UDF-fs: No VRS found
ISO 9660 Extensions: Microsoft Joliet Level 3
ISOFS: changing to secondary root
UDF-fs: No VRS found
ISO 9660 Extensions: Microsoft Joliet Level 3
ISOFS: changing to secondary root

lshal.txt is include

Regards

Revision history for this message
Martin Pitt (pitti) wrote :

(In reply to comment #4)
> mounting cdrom with
>
> sudo umount -o iocharset=utf8 /media/cdrom
>
> works fine
>
> what should I put in my fstab ?

There should be a line similar to this:

  /dev/hdb /media/cdrom0 udf,iso9660 ro,user,noauto 0 0

Just after the "noauto", append the iocharset option, so that the line looks
like this.

/dev/hdb /media/cdrom0 udf,iso9660 ro,user,noauto,iocharset=utf8 0 0

Colin, since we have a mostly complete UTF-8 system now, and Windows now uses
UTF-8 by default, too, can we fix this in the installer so that new
installations get it?

Revision history for this message
Sebastien CELLES (s-cls) wrote :

Thank you for /etc/fstab

I know this is not the place to ask this... but do you know why I don't have an
icon on my desktop for mounting cdrom ?
The problem is the same with my USB Key

Revision history for this message
Martin Pitt (pitti) wrote :

(In reply to comment #6)
> Thank you for /etc/fstab
>
> I know this is not the place to ask this... but do you know why I don't have an
> icon on my desktop for mounting cdrom ?
> The problem is the same with my USB Key

Can you please file a separate bug about this? Do the devices automount?

Revision history for this message
Sebastien CELLES (s-cls) wrote :
Revision history for this message
Manuel López-Ibáñez (manuellopezibanez) wrote :

The same happens to me. Spanish characters like "ñ" and "á" are converted to "?". Worse, I cannot write this "?" character in the console, since it is not a normal "?" character.

However in my case using iocharset=utf8 or utf8 doesn't work. I need to add "norock". Any of these will fix the issue:

sudo mount -o norock,iocharset=utf8 /media/cdrom0/
sudo mount -o norock,utf8 /media/cdrom0/

Mounting the cdrom says:

[17191079.028000] ISO 9660 Extensions: Microsoft Joliet Level 3
[17191079.120000] ISO 9660 Extensions: RRIP_1991A

Yet, I burned this on Mandriva using K3B.

Changed in partman-target:
status: Unconfirmed → Confirmed
Colin Watson (cjwatson)
Changed in partman-target:
assignee: kamion → nobody
Revision history for this message
SerP (serp2002) wrote :

i have som problem,as for me, it's not difficult to edit fstab and got right filenames, it's not critical bug, but!!! most users dislike linux because it has very many non critical and smoll bugs... i hope it will be fixed soon %) thats all... what i eant to say...

Revision history for this message
Ric Flomag (ricflomag) wrote :

From my experience, any joliet CD or DVD mounts perfectly when utf8 is set in fstab (French, Spanish or Japanese joliet discs). This is a very annoying bug for most non English-speaking people i believe... Should be considered "High" importance, and as far as my ignorance goes, it is apparently easy to fix :-)

Revision history for this message
Alberto Milone (albertomilone) wrote :

The problem seems to affect only Debian and Ubuntu. Fedora and other distros do not need "iocharset=utf8" in the fstab. Any ideas?

Revision history for this message
Ihar Hrachyshka (ihar-hrachyshka) wrote :

Hey, guys, this bug is 2 years old. Why don't you just fix it? Ubuntu is already utf8-only system! Can we make utf8 by default? Sometimes when I help other people to convert to Linux it's quite annoying to tell them "please edit /etc/fstab and add utf8 keyword there". It's not what a new user expect of a brand new OS on his desktop/laptop.

Revision history for this message
Jacob Popov (j-a-popov) wrote :

Again I create a customized CD for Russia. And again I fix this bug!

Guys, it's getting on me! The solution is quite simple!

Attached you'll find the fixed script for Gutsy.

Please, do fix this bug!

Martin Pitt (pitti)
Changed in partman-target:
assignee: nobody → pitti
milestone: none → ubuntu-8.04
status: Confirmed → In Progress
Revision history for this message
Andrey Zhekov (x3ro.daemon) wrote :

it seems that there's a bug almost duplicating the subject:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/112584

Changed in partman-target:
status: In Progress → Confirmed
Martin Pitt (pitti)
Changed in partman-target:
status: Confirmed → In Progress
Revision history for this message
Jerone Young (jerone) wrote :

This bug is also a duplicate of this bug (reported for Fiesty):
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/106910

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package partman-target - 52ubuntu5

---------------
partman-target (52ubuntu5) hardy; urgency=low

  * fstab_removable_media_entries: Mount CD-ROMs and Floppies with the "utf8"
    option by default, since this is our only supported encoding since Hoary.
    (LP: #22623)

 -- Martin Pitt <email address hidden> Wed, 13 Feb 2008 15:56:29 +0100

Changed in partman-target:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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