LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1463|回复: 22

new hardware有問題

[复制链接]
发表于 2004-5-15 15:19:43 | 显示全部楼层 |阅读模式
早上還好好的,下午開機不能進X,重啟后就檢出有問題,我沒有加任何新東西或做任何改動。
发表于 2004-5-15 16:06:13 | 显示全部楼层
具体的错误讯息贴出来看看。

也有可能是磁盘空间已经满了,而引起X起动不了。
 楼主| 发表于 2004-5-15 16:26:48 | 显示全部楼层
錯誤是在系統起動時的自檢晝面,沒法截圖。
磁盤絕對還有很多空間,但進了系統之后一切都很正常。
发表于 2004-5-15 16:37:34 | 显示全部楼层
把错误的信息抄下来贴出来看看。

运行drakconf看看X的设定有没有问题?
 楼主| 发表于 2004-5-15 16:44:15 | 显示全部楼层
x的設定絕對沒問題。
发表于 2004-5-15 17:22:57 | 显示全部楼层
能进终端吗?还是在硬件自检时失败??
 楼主| 发表于 2004-5-15 18:47:16 | 显示全部楼层
找到日誌,看看是不是:重啟后能進X,但自檢時發現錯誤。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2004-5-16 03:15:23 | 显示全部楼层
new hardware;

# hdparm -inew hardware

hdparm - get/set hard disk parameters - version v5.5

Usage:  hdparm  [options] [device] ..

Options:
-a   get/set fs readahead
-A   set drive read-lookahead flag (0/1)
-b   get/set bus state (0 == off, 1 == on, 2 == tristate)
-B   set Advanced Power Management setting (1-255)
-c   get/set IDE 32-bit IO setting
-C   check IDE power mode status
-d   get/set using_dma flag
-D   enable/disable drive defect-mgmt
-E   set cd-rom drive speed
-f   flush buffer cache for device on exit
-g   display drive geometry
-h   display terse usage information
-i   display drive identification
-I   detailed/current information directly from drive
-Istdin  similar to -I, but wants /proc/ide/*/hd?/identify as input
-k   get/set keep_settings_over_reset flag (0/1)
-K   set drive keep_features_over_reset flag (0/1)
-L   set drive doorlock (0/1) (removable harddisks only)
-M   get/set acoustic management (0-254, 128: quiet, 254: fast) (EXPERIMENTAL)
-m   get/set multiple sector count
-n   get/set ignore-write-errors flag (0/1)
-p   set PIO mode on IDE interface chipset (0,1,2,3,4,...)
-P   set drive prefetch count
-q   change next setting quietly
-Q   get/set DMA tagged-queuing depth (if supported)
-r   get/set readonly flag (DANGEROUS to set)
-R   register an IDE interface (DANGEROUS)
-S   set standby (spindown) timeout
-t   perform device read timings
-T   perform cache read timings
-u   get/set unmaskirq flag (0/1)
-U   un-register an IDE interface (DANGEROUS)
-v   defaults; same as -mcudkrag for IDE drives
-V   display program version and exit immediately
-w   perform device reset (DANGEROUS)
-W   set drive write-caching flag (0/1) (DANGEROUS)
-x   tristate device for hotswap (0/1) (DANGEROUS)
-X   set IDE xfer mode (DANGEROUS)
-y   put IDE drive in standby mode
-Y   put IDE drive to sleep
-Z   disable Seagate auto-powersaving mode
-z   re-read partition table
发表于 2004-5-16 03:43:28 | 显示全部楼层
把你的“系统”中的“服务”项的加载情况贴出来看看!好象和硬件没有什么关系。
发表于 2004-5-16 08:39:30 | 显示全部楼层

/usr/lib/python2.3/codecs.py文件你比较一下你自己的。看看红色大的地方,你的改动导

def open(filename, mode='rb', encoding=None, errors='strict', buffering=1):

    """ Open an encoded file using the given mode and return
        a wrapped version providing transparent encoding/decoding.

        Note: The wrapped version will only accept the object format
        defined by the codecs, i.e. Unicode objects for most builtin
        codecs. Output is also codec dependent and will usually by
        Unicode as well.

        Files are always opened in binary mode, even if no binary mode
        was specified. This is done to avoid data loss due to encodings
        using 8-bit values. The default file mode is 'rb' meaning to
        open the file in binary read mode.

        encoding specifies the encoding which is to be used for the
        file.

        errors may be given to define the error handling. It defaults
        to 'strict' which causes ValueErrors to be raised in case an
        encoding error occurs.

        buffering has the same meaning as for the builtin open() API.
        It defaults to line buffered.

        The returned wrapped file object provides an extra attribute
        .encoding which allows querying the used encoding. This
        attribute is only available if an encoding was specified as
        parameter.

    """
    if encoding is not None and \
       'b' not in mode:
        # Force opening of the file in binary mode
        mode = mode + 'b'

    file = __builtin__.open(filename, mode, buffering)

    if encoding is None:
        return file
    (e, d, sr, sw) = lookup(encoding)
    srw = StreamReaderWriter(file, sr, sw, errors)
    # Add attributes to simplify introspection
    srw.encoding = encoding
    return srw

def EncodedFile(file, data_encoding, file_encoding=None, errors='strict'):
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表