mount 옵션 한글 encoding 관련.

auditory의 이미지


ext4 파티션의 hdd를 새로 mount하려고합니다.

mount는 잘 되는데, 한글이 깨져서 보입니다.

예전에는 utf8 encoding으로 썼고, 현재는 euckr로 쓰고 있습니다

convmv해보면 잘 변환됩니다.

그런데 이걸 mount할때 옵션을 줘서 별다른 조치 없이 잘 보이게 할 수는 없을까요?

mount option으로 해결할 수도 있을것 같은데요..

nls=cp949 정도로 하면 되지 않을가 싶었는데, mount할때 에러가 납니다.

nls-cp949 module을 올리라는 글을 찾았는데, 이것과 관련이 있어보입니다만,

어떻게 하는지를 잘 모르겠습니다.

ubuntu 10.10 64bit server 쓰고 있습니다.

hys545의 이미지

전에 이 옵션 주어서 했던거 같은..

-o iocharset=euc-kr
정확한 옵션은 이거.
어디 보니까

즐린

auditory의 이미지

iocharset 옵션도 줘봤는데요. 마찬가지로 마운트할때 에러가 납니다..

# mount -o iocharset=euc-kr /dev/sde1 /mnt/sde1
mount: wrong fs type, bad option, bad superblock on /dev/sde1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

iocharset 옵션을 빼면 잘 됩니다.
--
nls 옵션은 ntfs의 경우에 해당하는 옵션이더군요..
ext4에 대해서는 encoding관련 옵션이 없네요..

$ man mount

hys545의 이미지

LANG="ko_KR.eucKR"
SUPPORTED="ko_KR.eucKR:ko_KR:ko"
SYSFONT="lat0-sun16"
이런 식으로 환경변수를 바꾸면 euckr잘 보일겁니다
단 문제는 이렇게 바꾸면 UTF8로 된게 깨져 보입니다.
왠만하면 euckr안쓰는게 좋습니다.
요즘 리녹스는 기본이 유니코드(utf8)입니다.
윈도우도 마찬가지..

즐린

auditory의 이미지


locale을 바꾸는건 잘 알고 있습니다만,

아직은 euckr 쓸 일이 많아서요..
다른 사람들(MS windows PC) 하고 자료 교환도 많고요..

그런데 윈도우가 기본이 utf8이던가요??
내부코드는 unicode로 전환했으나,
아직도 사용자인터페이스 부분은 cp949 아니던가요? (파일이름..)

hys545의 이미지

cp949사용할 뿐입니다.
파일 이름부분도 마찬가지..
cp949지원안하면 기존의 9x에서 사용하던 프로그램에서 한글입출력에 문제가 있을 수도 있기 때문..
참고로 windownt는 기본이 unicode입니다.

즐린

Prentice의 이미지

man mount를 하셔서 nls나 iocharset 옵션을 찾아보시면 ntfs나 vfat 섹션 아래에 표시됨을 아실 수 있습니다.

다른 방법이 어떤 것이 있는지는 모르겠지만 nls나 iocharset은 ext3, ext 마운트시에는 작동하지 않습니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.