View previous topic :: View next topic |
Author |
Message |
skakz Guru


Joined: 03 Jul 2004 Posts: 380 Location: Ischia/Napoli/Italia/Terra
|
Posted: Sun Oct 16, 2005 12:19 pm Post subject: [OT] hal + ivman |
|
|
amd64
Code: | * sys-apps/hal
Available versions: 0.4.5-r2 0.4.7-r2 0.4.8 0.5.4
Installed: 0.5.4
* sys-apps/ivman
Available versions: 0.5_pre2 0.5_pre3 0.6.4
Installed: 0.6.4 |
Ho notato che l'ultima versione di hal non modifica più fstab (pur continuando ivman a montare i dispositivi) così ho pensato che forse hanno iniziato ad adottare un'altra configurazione e ho cercato un pò in giro ma senza alcun risultato.
ecco cosa mi succede:
/usr/share/hal/fdi/policy/10osvendor/10-storage-policy.fdi
Code: |
..cut..
<merge key="storage.policy.default.mount_root" type="string">/mnt</merge>
..cut..
<merge key="storage.policy.default.mount_option.users" type="bool">true</merge>
..cut.. |
Code: | * Starting service ivman
* Starting service hald
* Starting service dbus
* Service dbus started OK
* Service hald started OK
* Service ivman started OK |
dmesg
Code: |
..cut..
usb 1-3: new high speed USB device using ehci_hcd and address 5
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
Vendor: Maxtor Model: OneTouch Rev: 0201
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 490232832 512-byte hdwr sectors (250999 MB)
sda: assuming drive cache: write through
SCSI device sda: 490232832 512-byte hdwr sectors (250999 MB)
sda: assuming drive cache: write through
sda: sda1 < sda5 sda6 >
Attached scsi disk sda at scsi3, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi3, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete |
fstab
Code: | /dev/hda1 / reiserfs noatime 0 1
/dev/hdc1 none swap sw 0 0
/dev/hdc2 /home/ reiserfs noatime 0 1
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
mount
Code: | /dev/hda1 on / type reiserfs (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw)
/dev/hdc2 on /home type reiserfs (rw,noatime)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw,devmode=0664,devgid=85)
/dev/sda6 on /media/LZONE type vfat (rw,noexec,nosuid,nodev,quiet,shortname=winnt,uid=106,gid=410,umask=0002)
/dev/sda5 on /media/KZONE type vfat (rw,noexec,nosuid,nodev,quiet,shortname=winnt,uid=106,gid=410,umask=0002) |
secondo la configurazione che ho adottato modificando quelle due righe in 10-storage-policy.fdi,non dovrebbe montare tutto in /mnt con l'opzione users???
eppure mi ritrovo i dispositivi in /media e se provo a smontarli da non-root mi dice "umount: /media/LZONE non si trova in fstab (e non si è root)"
in oltre se non erro con la versione precedente di dbus-hal-ivman e con la stessa configurazione avevo un umask=0007 che mi permetteva di modificare/creare/eliminare e smontare/montare anche da non-root (oltre naturalmente alle righe in fstab) .. ora secondo voi cosa è cambiato? perchè hal non usa fstab? sono io che non ho capito come funziona il tutto o in effetti hanno cambiato configurazione? come faccio a modificare/creare/eliminare e smontare/montare anche da utente? _________________ Linux Registered User n.340423
Linux User Group Ischia
www.tush.it |
|
Back to top |
|
 |
skakz Guru


Joined: 03 Jul 2004 Posts: 380 Location: Ischia/Napoli/Italia/Terra
|
Posted: Sat Oct 22, 2005 7:15 pm Post subject: |
|
|
up _________________ Linux Registered User n.340423
Linux User Group Ischia
www.tush.it |
|
Back to top |
|
 |
XstefanoX n00b

Joined: 11 Jan 2005 Posts: 54 Location: Baggio, Milano Far West
|
Posted: Sun Oct 23, 2005 5:38 pm Post subject: |
|
|
Hal non usa più fstab e ivman non usa mount per montare. Ivman usa invece pmount per montare e legge i mount points dal database di hal. Le impostazioni che hai inserito tu per modificare il mont point e per montare con l'opzione users potrebbero anche essere giuste, non lo so di preciso.
Purtroppo mi è capitato di inserire delle nuove regole in hal, ma lui le ignorava sistematicamente. Forse mettevo il file nella directory sbagliata (nell'ultima verisone di hal la posizione dei file di configurazione è cambiata un po').
Da adesso per smontare devi usare Code: | pumount <mountpoint> | oppurealtrimenti ti dà l'errore che hai riportato nel tuo post.
Montare con l'opzione users dovrebbe consentirti di smontare anche da utente. |
|
Back to top |
|
 |
skakz Guru


Joined: 03 Jul 2004 Posts: 380 Location: Ischia/Napoli/Italia/Terra
|
Posted: Mon Oct 24, 2005 8:18 am Post subject: |
|
|
mi ero accorto di pmount però il problema rimane..ovvero hal ignora la configurazione!!
Code: | omega ~ # lshal | grep mount_root
lshal version 0.5.4
storage.policy.default.mount_root = '/mnt' (string)
omega ~ # lshal | grep users
lshal version 0.5.4
storage.policy.default.mount_option.users = true (bool)
omega ~ # |
Code: | /dev/sda5 on /media/KZONE type vfat (rw,noexec,nosuid,nodev,quiet,shortname=winnt,uid=106,gid=410,umask=0002)
/dev/sda6 on /media/LZONE type vfat (rw,noexec,nosuid,nodev,quiet,shortname=winnt,uid=106,gid=410,umask=0002) |
qualcuno sa come risolvere??? _________________ Linux Registered User n.340423
Linux User Group Ischia
www.tush.it |
|
Back to top |
|
 |
gutter Bodhisattva


Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Sat Oct 29, 2005 10:01 pm Post subject: |
|
|
Moved from Italian to Off Topic. _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
 |
|
|
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
|
|