张凯朝

张凯朝的博客

他的个人主页  他的博客

Debian 下 mp3 文件损坏

张凯朝  2010年03月10日 星期三 12:49 | 1650次浏览 | 3条评论

Debian 版本:testing
Debian 文件系统:EXT4
Windows XP 版本:SP3 Professional 简体中文版

最近不止发现某些 jpeg 文件损坏,而且很多 mp3 文件也损坏了,不知道还会有哪些。。。
使用文本编辑器查看这些文件的内容,里面的内容大大出乎所料!
0. 这些损坏了的文件一直存在Windows XP SP3 的 NTFS 分区中,大小保持与原来没损坏之前一模一样。
1. 损坏的 jpeg 文件中穿插了大量的 Python 代码。。。
2. 损坏的 mp3 文件中穿插了大量的 Debian 系统相关信息。。。

现在搞不清楚到底是 Debian 本身的问题还是 EXT4 文件系统引发的,或者是 NTFS-3G 的问题。。。。

==================
部分 mp3 文件中穿插的 Debian 系统相关信息例子(有些中间夹杂乱码):

1. 中间夹杂乱码的:
install-language-pack
remove-language-pack
remove-language-pack.dpkg-new
install-language-pack.dpkg-tmp
remove-language-pack.dpkg-tmp

2. 纯脚本的:
#!/bin/sh -e

if [ -z "$1" ]; then
    echo "Usage: $0 <language code> <class> [<version>]"
    exit 0
fi

# install locales for base packages (not for gnome/kde)
# (use "--no-purge" in case PURGE=yes is used in config, which would remove
#  all other locale files)
if [ -z "$2" ]; then
    /usr/sbin/locale-gen --no-purge "$1"
fi

# reload gdm to make it aware of new locales
if [ -x /etc/init.d/gdm ]; then
    if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
        invoke-rc.d gdm reload || exit 0
    else
        /etc/init.d/gdm reload || exit 0
    fi
fi

3. 中间夹杂乱码的:
README.magic
copyright
NEWS.Debian.gz
changelog.Debian.gz
NEWS.Debian.gz.dpkg-new
README.magic.dpkg-tmp
copyright.dpkg-tmp
NEWS.Debian.gz.dpkg-tmp
changelog.Debian.gz.dpkg-new
changelog.Debian.gz.dpkg-tmp

4. 说明文字的:
belocs-locales-bin magic number
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

GNU libc stores a magic number in compiled locale files to ensure
that locale files are compatible with current GNU libc version.
This magic number can be retrieved with the following commands:
  $ localedef.glibc --no-archive -c -i en_US -f ISO-8859-1 /tmp/en_US
  $ od -tx4 /tmp/en_US/LC_CTYPE | head -n 1 | awk '{print $2}'

belocs-locales-bin can generate locale files for the following
magic numbers:
  + 20051014 (glibc CVS HEAD)
  + 20031115 (glibc >= 2.3.3)
  + 20000828 (glibc >= 2.1.96)

 -- Denis Barbier <barbier@debian.org>  Mon, 17 Oct 2005 23:26:26 +0200

5. 说明文字的
This package was put together by Denis Barbier from CVS sources
with the command
  cvs -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc co libc/locale
  cvs -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc co libc/crypt
  cvs -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc co libc/intl

Copyright (C) 1991-2002,2003,2004,2005,2006 Free Software Foundation, Inc.

Some files are released under the terms of the GNU Lesser General Public
License (version 2.1 or any later version) and others under the GNU General
Public License version 2.

On Debian systems, the complete texts of the GNU Lesser General Public
License and GNU General Public License can be found respectively in
`/usr/share/common-licenses/LGPL-2.1' and `/usr/share/common-licenses/GPL-2'

评论

我的评论:

发表评论

请 登录 后发表评论。还没有在Zeuux哲思注册吗?现在 注册 !
Ford Guo

回复 Ford Guo  2010年03月10日 星期三 13:09

飘过,我觉得跟EXT4关系不大,应该是NTFS-3G导致的吧

2条回复

  • 张凯朝

    回复 张凯朝  2010年03月10日 星期三 13:16

    不过,我在 WindowsXP 上的 Firefox3 和 Debian 上的 Iceweasel 以及 Fedora 上的 Firefox3 都安装了 ScrapBook 插件和 zotero 插件,而且都将数据存放在 NTFS 分区却从来没有出现过问题。。。

    1条回复

      • Ford Guo

        回复 Ford Guo  2010年03月10日 星期三 13:21

        恩,有道理,可能NTFS-3G跟结合的EXT4不好吧?

        0条回复

暂时没有评论

Zeuux © 2024

京ICP备05028076号