Modify

Opened 9 years ago

Closed 9 years ago

#4714 closed defect (worksforme)

mount & codepage

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Kamikaze 8.09.2
Component: packages Version: Kamikaze 8.09
Keywords: Cc:

Description

mount doesn't accept codepage option
example:
mount /dev/sda1 /mnt -o codepage=cp1250
output:
mount: mounting /dev/sda1 on /mnt failed: Invalid argument
there is codepage option in mount:
/dev/sda1 on /mnt type vfat
(rw,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1)

system: Kamikaze 8.09 v14548, mips - brcm47xx, Asus WL-500gP v1

Attachments (0)

Change History (6)

comment:1 Changed 9 years ago by anonymous

Similar problem mounting:
mount /dev/sda1 /mnt
mount: mounting /dev/sda1 on /mnt failed: Invalid argument

But then I
mount -o loop /dev/sda1 /mnt

mounted OK, then
umount; mount /dev/sda1 /mnt
worked with no problems.

comment:2 Changed 9 years ago by nico

  • Milestone changed from Kamikaze to Kamikaze 8.09.1
  • Version set to Kamikaze 8.09

Did you install required kmod-nls-* packages?

comment:3 Changed 9 years ago by anonymous

I can mount vfat with:
-o codepage=850,iocharset=iso8859-15,utf8
or
-o codepage=850,iocharset=cp850,utf8
but not when using msdos!
So try it explicit with vfat.. .

What does not work is to provide iocharset=cp850,utf8 or iso8859-15,utf8 in the options of kernel_menuconfig, so ,utf8 can't be provided there, and therefore I don't find a solution to mount vfat with the correct character set automatically.

comment:4 Changed 9 years ago by nico

  • Milestone changed from Kamikaze 8.09.1 to Kamikaze 8.09.2

comment:5 Changed 9 years ago by anonymous

Developers please close this ticket.
In the mount command you have to use argument "codepage=1250" and not "codepage=cp1250"!
This is of course invalid argument.
Yes, I know, that in list of mounted filesystems mount write "codepage=cp437" but you can't use this option for mounting filesystem as is. You have to ommit leading "cp". Maybe it's weird but it is a fact.
More explanation about codepages and nls needed for mounting filesystems with international characters in filenames etc you can find for example here (NSLUG).
http://www.nslu2-linux.org/wiki/HowTo/MountFATFileSystems

comment:6 Changed 9 years ago by nico

  • Resolution set to worksforme
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.