우분투에서 fat32 파일명이 깨져 나옵니다.

hsnks100의 이미지

문제 발생후 검색하고 많이 읽어봤습니다.

fat32 가 sda5 로 자동으로 마운트 되더군요.

vi /etc/fstab 를 하면 sda5 부분 내용이 다음과 같습니다.

UUID=477D-7D61 /media/sda5 vfat defaults,utf8,umask=007,gid=46 0 1

많이 읽어본 결과 문제가 없어보이는데요 :(

그리고 신기한건 다른 사람의 문제 와는 다르게 일부는 한글로 보인다는 겁니다.
스크린샷좀 봐주세요.

리눅스 방금 깔은 초보입니다. 도와주세요.

그리고 cat textfile.txt 을 하면 한글 내용이 깨져나옵니다(gedit 같은것으로 보면 괜찮습니다.) 흑흑흑

File attachments: 
첨부파일 크기
Image icon a.gif48.82 KB
klyx의 이미지

cat textfile.txt 했을때 한글이 깨지는건 인코딩 문제일 것입니다.
전 쿠분투라서 konsole을 쓰는데, euc-kr인 파일을 기본 인코딩(아마도 UTF-8)상태에서 cat으로 표시하면 깨지지만 konsole의 인코딩을 euc-kr로 지정하면 안깨지더군요.
gedit는 자동으로 한글은 euc-kr로 읽도록 로컬라이징 되이있기 때문일 것입니다.
cat은 따로 인코딩지정이 불가능하므로 기본인코딩과 다른 인코딩의 파일의 한글이 깨지는건 문제라기보다는 당연한거구요...
아마 파일명 문제도 인코딩 문제일듯 한데, 전 겪은 적도 없고, 쿠분투라 노틸러스는 안쓰기 때문에 잘 모르겠네요.
한번 노틸러스와 로케일이나, 인코딩, utf-8, euc-kr등에 대해 검색해보심이 어떠신지..

hsnks100의 이미지

제가 겪고 있는 문제는 어떤 파일은 제대로 보인다는겁니다.

그래서 특정 파일명만 손상된것이 아닌가 싶어서 ghost-windows ver 가지고 한번 부팅 시켜서
파일명을 확인해봤습니다. 그런데 제대로 나오더군요.

어떤 파일은 제대로 나오고 어떤건 제대로 안나오고... 왜 이럴까요. 처음 쓰는 초보가 해결하기엔 너무

어렵네요. 흑흑

----------------------------------------------------
개인 블로그: https://kangssu.com

king0200의 이미지

1.우분투를 사용하니 gedit로 하든, 셀에서 vi로 하든, /etc/fstab에서 아래와 같이변경하기

UUID=477D-7D61 /media/sda5 vfat defaults,<span>iocharset=cp949</span>,utf8,umask=007,gid=46 0 1
2.만약 안되면, iocharset=utf8,codepage=949로 대치해 보세요
3.반드시 수정후 리부팅 해야 합니다
 
 

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.