- 论坛徽章:
- 0
|
谢fender0107401, 我刚开始从/usr/local/share/hal/fdi/preprobe/10osvendor/10-ide-drives.fdi复制了一个到/usr/local/share/hal/fdi/preprobe/20thirdparty/10-ignore-ide.fdi,然后把内容改了一下,如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="storage.bus" string="ata">
<match key="storage.drive_type" string="disk">
<merge key="info.ignore" type="bool">true</merge>
</match>
</match>
<match key="storage.bus" string="ide">
<match key="storage.drive_type" string="disk">
<merge key="info.ignore" type="bool">true</merge>
</match>
</match>
<match key="storage.bus" string="ide">
<match key="storage.drive_type" string="floppy">
<merge key="info.ignore" type="bool">true</merge>
</match>
</match>
<match key="storage.bus" string="scsi">
<match key="storage.drive_type" string="disk">
<merge key="info.ignore" type="bool">true</merge>
</match>
</match>
</device>
</deviceinfo>
但没有解决问题,后来看了你的另一贴:http://freebsd.chinaunix.net/bbs/thread-1432846-1-1.html
把内容改成了:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="freebsd.driver" string="ar0">
<merge key="info.ignore" type="bool">true</merge>
</match>
<match key="freebsd.driver" string="ad4">
<merge key="info.ignore" type="bool">true</merge>
</match>
<match key="freebsd.driver" string="ad8">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
</deviceinfo>
其中ar0是raid1,ad4和ad8是两个单盘, 这样改完以后还是没有解决问题,看了一下mount 列表,原来是gnome 把我的两个单盘自动装载了, 这样子怎么办呢?
/dev/ar0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ar0s1g on /tmp (ufs, local, soft-updates)
/dev/ar0s1e on /usr (ufs, local, soft-updates)
/dev/ar0s1f on /usr/home (ufs, local, soft-updates)
/dev/ar0s1d on /var (ufs, local, soft-updates)
/dev/fuse0 on /mnt/win2003 (fusefs, local, synchronous)
/dev/fuse1 on /root/.gvfs (fusefs, local, synchronous)
/dev/ad8s1e on /media/disk (ufs, local, nosuid, soft-updates)
/dev/ad4s1e on /media/disk-1 (ufs, local, nosuid, soft-updates)
/dev/ad8s1d on /media/disk-2 (ufs, local, nosuid, soft-updates)
/dev/ad8s1f on /media/disk-3 (ufs, local, nosuid, soft-updates)
/dev/ad4s4 on /media/disk-4 (ntfs, local, nosuid)
/dev/ad8s4 on /media/disk-5 (ntfs, local, nosuid)
/dev/ad4s1g on /media/disk-6 (ufs, local, nosuid, soft-updates)
/dev/ad4s1d on /media/disk-7 (ufs, local, nosuid, soft-updates)
/dev/ad8s1g on /media/disk-8 (ufs, local, nosuid, soft-updates)
/dev/ad4s1f on /media/disk-9 (ufs, local, nosuid, soft-updates) |
|