LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: mishuang

gentoo识别不出U盘

[复制链接]
发表于 2007-5-20 23:32:33 | 显示全部楼层
Post by mishuang
我觉得夕角给的链接解决的应该是自动识别的问题。现在加载过usb-storage模块插上U盘后,设备文件/dev/sda就会自己出现,拔掉U盘后,该设备文件又自行消失,我想这应该是hald和dbus的作用吧。我觉得我的问题关键还是没有加载驱动,呵呵,不过还是得谢谢各位:)


嗯 不错识别不到自动挂载起不到作用
而且linux里面用usb硬盘要把scsi也选上去 当时把我搞郁闷过



版主神速!
回复 支持 反对

使用道具 举报

发表于 2007-5-21 00:51:26 | 显示全部楼层
现在加载过usb-storage模块插上U盘后,设备文件/dev/sda就会自己出现,拔掉U盘后,该设备文件又自行消失,我想这应该是hald和dbus的作用吧
这个是 udev 的事情。。和 hald/dbus 无关。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-21 10:51:34 | 显示全部楼层
udev
From Wikipedia, the free encyclopedia
Jump to: navigation, search

    The correct title of this article is udev. The initial letter is shown capitalized due to technical restrictions.

udev is the device manager for the Linux 2.6 kernel series. Its primary function is managing device nodes in /dev. It is the successor of devfs and hotplug, which means that it handles the /dev directory and all user space actions when adding/removing devices, including firmware load.

The latest versions of udev depends on the latest version of the uevent interface of the Linux kernel which has been updated or introduced with Linux kernel 2.6.13. A system using such a new version of udev will not boot with kernels older than 2.6.13 unless udev is disabled with bootparam noudev and a traditional /dev directory is used for device access.
Contents
[hide]

    * 1 Overview
    * 2 Operation
    * 3 Architecture
    * 4 Authors
    * 5 External links

[edit] Overview

Unlike the traditional Linux system, where the device nodes in the /dev directory have been a static set of files, udev dynamically provides only the nodes for the devices actually present on a system. Although devfs provided a similar functionality, advocates for udev cited a number of reasons [1] for preferring its implementation over devfs:

    * udev supports persistent device naming, which does not depend on, for example, the order in which the devices are plugged into the system. The default udev setup provides persistent names for storage devices. Any hard disk is recognized by its unique filesystem id, the name of the disk and the physical location on the hardware it is connected to.
    * udev executes entirely in user space, as opposed to devfs' kernel space. One consequence is that udev moved the naming policy out of the kernel and can run arbitrary programs to compose a name for the device from the device's properties, before the node is created.

[edit] Operation

udev is a generic kernel device manager. It runs as a daemon on a Linux system and listens to uevents the kernel sends out (via netlink socket) if a new device is initialized or a device is removed from the system. The system provides a set of rules that match against exported values of the event and properties of the discovered device. A matching rule will possibly name and create a device node and run configured programs to set-up and configure the device. udev rules can match on properties like the kernel subsystem, the kernel device name, the physical location of the device, or properties like the device's serial number. Rules can also request information from external programs to name a device or specify a custom name that will always be the same, regardless of the order devices are discovered by the system.
回复 支持 反对

使用道具 举报

发表于 2007-5-21 21:06:58 | 显示全部楼层
对gnome要安gnome-volume-manager。对xfc4 bluebox  kde 等等 也用它?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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