tuxama n00b
Joined: 03 Sep 2005 Posts: 10
|
Posted: Sat Sep 10, 2005 10:50 pm Post subject: [IvMan - IvnConfigMappings.xml] Problème de mapping |
|
|
Bonsoir,
Sur une gentoo 2.6.12-gentoo-r10 avec UDEV, jai installé hal/dbus/ivman.
Juste avant le reboot de la machine voici comment sont les fichiers /etc/ivman/IvnConfigMappings.xml et /etc/fstab :
Code: | /etc/ivman/IvnConfigMappings.xml
<?xml version="1.0" encoding="UTF-8"?>
<ivm:MappingsConfig version="0.1" xmlns:ivm="http://www.eikke.com/ivm">
<!-- This is a sample mapping. It maps /dev/hdc (the device ivman gets from
HAL) to /dev/cdroms/cdrom0, which means when a cd is inserted into
/dev/hdc, 'mount /dev/dev.cdroms.cdrom0' would be called. If there is
no mapping for /dev/hdc, 'mount /dev/hdc' would be called. -->
<!--
<ivm:Map device="/dev/hdc" maps="/dev/cdroms/cdrom0" />
-->
<ivm:Map device="/dev/sr0" maps="/media/dvd" />
<ivm:Map device="/dev/sr1" maps="/media/cdr" />
<ivm:Map device="/dev/sr2" maps="/media/dvdr" />
</ivm:MappingsConfig> |
Code: | /etc/fstab
##########################################################################################################
# <fs> <mountpoint> <type> <opts> <dump/pass>
##########################################################################################################
/dev/hda1 /boot ext2 noauto,noatime 1 2
/dev/hda2 / reiserfs noatime 0 1
/dev/hda3 /home reiserfs noatime 0 1
/dev/hdc3 none swap sw 0 0
/dev/hdc4 /root reiserfs noatime 0 1
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
Après le reboot voici ces mêmes fichiers :
Code: | /etc/ivman/IvnConfigMappings.xml
<?xml version="1.0" encoding="UTF-8"?>
<ivm:MappingsConfig version="0.1" xmlns:ivm="http://www.eikke.com/ivm">
<!-- This is a sample mapping. It maps /dev/hdc (the device ivman gets from
HAL) to /dev/cdroms/cdrom0, which means when a cd is inserted into
/dev/hdc, 'mount /dev/dev.cdroms.cdrom0' would be called. If there is
no mapping for /dev/hdc, 'mount /dev/hdc' would be called. -->
<!--
<ivm:Map device="/dev/hdc" maps="/dev/cdroms/cdrom0" />
-->
<ivm:Map device="/dev/sr0" maps="/media/dvd" />
<ivm:Map device="/dev/sr1" maps="/media/cdr" />
<ivm:Map device="/dev/sr2" maps="/media/dvdr" />
</ivm:MappingsConfig> |
Code: | /etc/fstab
##########################################################################################################
# <fs> <mountpoint> <type> <opts> <dump/pass>
##########################################################################################################
/dev/hda1 /boot ext2 noauto,noatime 1 2
/dev/hda2 / reiserfs noatime 0 1
/dev/hda3 /home reiserfs noatime 0 1
/dev/hdc3 none swap sw 0 0
/dev/hdc4 /root reiserfs noatime 0 1
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
/dev/sr0 /media/cdrom auto user,exec,noauto,managed 0 0
/dev/sr1 /media/cdrecorder auto user,exec,noauto,managed 0 0
/dev/sr2 /media/cdrecorder1 auto user,exec,noauto,managed 0 0 |
/etc/fstab a été modifié, /media/cdrom, /media/cdrecorder et /media/cdrecorer1 ont été automatiquement créés dans le système de fichiers alors qu'ils n'existaient pas. Très bien jusque là, mais comment faire pour que les médias soient montés comme indiqué ci-dessous ? Peut-être plus clairement, ma modification du fichier /etc/ivman/IvnConfigMappings.xml n'est pas prise en compte, donc elle semble fausse ou incomplète !!
/media/dvd (/dev/sr0)
/media/cdr (/dev/sr1)
/media/dvdr (/dev/sr2)[/b] _________________ L'éternité c'est long surtout vers la fin... |
|