Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev ivman
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3547
Location: Berlin

PostPosted: Sun May 08, 2005 10:28 am    Post subject: udev ivman Reply with quote

Hallo
Ich habe mir ivman installiert (speziell, um meine USB-Festplatte, Kamera und USB-Stick komfortabel einbinden zu können. Ging vorher auch, aber man gönnt sich ja sonst nichts.)
/etc/udev/rules.d/10-udev.rules
Code:

#digicam
BUS="scsi", KERNEL="sd?1", SYSFS{model}="Sony DSC", NAME="digicam"
#usbstick
BUS="scsi", KERNEL="sd?1", SYSFS{model}="Mobile Disk", NAME="usbstick"
#usbfestplatte
BUS="scsi", KERNEL="sd?1", SYSFS{model}="00JB-00GVA0", NAME="usbfestplatte"

/etc/fstab
Code:

### neu für ivman udevrules
/dev/digicam                             /mnt/camera                       auto            noauto,rw,user,noatime,exec            0 0
/dev/usbstick                            /mnt/usbstick                     auto            noauto,rw,user,noatime,exec            0 0
/dev/usbfestplatte                       /mnt/usbfestplatte                auto            noauto,rw,user,noatime,exec            0 0

Problem:
meine sda1 Windows C und sdb1 Gentoo /boot werden automatisch eingebunden, was aber nicht sein soll.
Ich wollte die udev Regeln ergänzen
Code:

#/dev/sdb1 -> /boot
#BUS="scsi", KERNEL="sda1", SYSFS{model}="ST3200822AS", NAME="boot"
#windowsc-wird ohne diesen Eintrag automatisch eingebunden
BUS="scsi", KERNEL="sdb1", SYSFS{model}="ST3200822AS", NAME="windowsc"

und die fstab ändern
alt
Code:

/dev/sdb1               /boot                            ext3           noauto,noatime                   1 1
/dev/sda1               /mnt/windows_c                   ntfs            noauto,user,exec,umask=022      0 0

neu
Code:

#/dev/boot                                /boot                             ext3           noauto,noatime                   1 1
/dev/windowsc                            /mnt/windows_c                    ntfs            noauto,user,exec,umask=022             0 0

Allerdings denke ich, daß ich dann nicht mehr booten kann. Kann mir de jemand einen Tipp geben?
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3547
Location: Berlin

PostPosted: Sun May 08, 2005 4:00 pm    Post subject: Reply with quote

Ja, das System läßt sich nicht booten.
Liegt an den Variablen. Da muß wohl ein Script her, so in der Art, daß sda und sdb ignoriert werden.
Back to top
View user's profile Send private message
momonster
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2003
Posts: 103

PostPosted: Tue May 10, 2005 6:06 am    Post subject: Reply with quote

Was passiert denn wenn du in
Code:
/etc/ivman/IvmConfigActions.xml

das hier einträgst:
Code:
<ivm:Match name="hal.block.device" value="/dev/sda1">
<ivm:Option name="mount" value="false" />
</ivm:Match>


vielleicht ist es auch sinnvoll einfach
Code:
<!-- try to mount any mountable volume at all -->
<ivm:Match name="ivm.mountable" value="true">
<ivm:Option name="mount" value="true" />
</ivm:Match>

auf false zu setzen und dann nur bestimmte devices explizit mounten zu lassen? (habe ich nicht getestet)
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3547
Location: Berlin

PostPosted: Tue May 10, 2005 3:08 pm    Post subject: Reply with quote

Ich habe festgestellt, daß ivman nicht das ist, was ich wollte. Ich wollte primär, daß ich meine 4 verschiedenen USB-Geräte in den fest zugewiesenen Mountpunkten einbinden kann, egal in welcher Reihenfolge ich sie aktiviere. das habe ich mit den udev Regeln erreicht.
Code:

 cat /etc/udev/rules.d/10*

###########################################################################
#digicam
###########################################################################
BUS="scsi", KERNEL="sdc1", SYSFS{model}="Sony DSC", NAME="digicam"
BUS="scsi", KERNEL="sdd1", SYSFS{model}="Sony DSC", NAME="digicam"
BUS="scsi", KERNEL="sde1", SYSFS{model}="Sony DSC", NAME="digicam"
BUS="scsi", KERNEL="sdf1", SYSFS{model}="Sony DSC", NAME="digicam"
###########################################################################
#usbstick
############################################################################
BUS="scsi", KERNEL="sdc1", SYSFS{model}="Mobile Disk", NAME="usbstick"
BUS="scsi", KERNEL="sdd1", SYSFS{model}="Mobile Disk", NAME="usbstick"
BUS="scsi", KERNEL="sde1", SYSFS{model}="Mobile Disk", NAME="usbstick"
BUS="scsi", KERNEL="sdf1", SYSFS{model}="Mobile Disk", NAME="usbstick"
############################################################################
#usbfestplatte
#############################################################################
BUS="scsi", KERNEL="sdc1", SYSFS{model}="00JB-00GVA0", NAME="usbfestplatte"
BUS="scsi", KERNEL="sdd1", SYSFS{model}="00JB-00GVA0", NAME="usbfestplatte"
BUS="scsi", KERNEL="sde1", SYSFS{model}="00JB-00GVA0", NAME="usbfestplatte"
BUS="scsi", KERNEL="sdf1", SYSFS{model}="00JB-00GVA0", NAME="usbfestplatte"
##############################################################################
#usb mp3 Player
##############################################################################
BUS="scsi", KERNEL="sdc1", SYSFS{model}="USB MP3", NAME="mp3Player"
BUS="scsi", KERNEL="sdd1", SYSFS{model}="USB MP3", NAME="mp3Player"
BUS="scsi", KERNEL="sde1", SYSFS{model}="USB MP3", NAME="mp3Player"
BUS="scsi", KERNEL="sdf1", SYSFS{model}="USB MP3", NAME="mp3Player"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum