Puslapiai: 1
Sveiki,
jau nebežinau ką bedaryt, tai rašau čia.. bėda tokia, kad, kad man thunar-volman mesdavo tokį error'ą:
Rejected send message, 1 matched rules; type="method_call", sender=":1.49" (uid=1000 pid=2879 comm="exo-mount) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=2028 comm="/usr/sbin/hald)).uzbl
suvedus visą šitą reikalą į gūglą - 0 rezultatų.. Paskaitinėjau truputį ir supratau, kad hal'o iš esmės nereikia, viskuo turėtų udev'as pasirūpinti. Na, tai išdiegiau tą hal'ą (teko ir thunar'ą, nes jis be hal'o neveikia).. pabandžiau be jo kažką - nieko, net nerodo, kad prijungtas usb (per konsolę su fdisk'u tai rodo). Susidiegiau atgal, tai dar blogiau - veikia tik linuksinės failų sistemos ext2, etx3, ir t.t. jokių ntfs, fat ir pnš.
Žodžiu, norėčiau, kad būtų galimybė naudotis usb raktu, gal kas turit minčių ?
Paskutinį kartą redaguotas n0de (2010-11-16 01:14:03)
Atsijungęs
Turim, turim. Kaip mums siulo ofociali bendruomene, susikurk faila: /etc/udev/rules.d/11-media-by-label-auto-mount.rules su tokiu turiniu:
KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
# Import FS infos
IMPORT{program}="/sbin/blkid -o udev -p %N"
# Get a label if present, otherwise specify one
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
# Global mount options
ACTION=="add", ENV{mount_options}="relatime"
# Filesystem-specific mount options
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
# Mount the device
ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}"
# Clean up after removal
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}"
# Exit
LABEL="media_by_label_auto_mount_end"
kad montuotu /media skirsnyje arba faila: /etc/udev/rules.d/11-mnt-auto-mount.rules su turiniu:
KERNEL!="sd[a-z][0-9]", GOTO="mnt_auto_mount_end"
# Global mount options
ACTION=="add", ENV{mount_options}="relatime"
# Filesystem-specific mount options
ACTION=="add", IMPORT{program}="/sbin/blkid -o udev -p %N"
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
# Mount under /mnt and create the symbolic link in /media
ACTION=="add", RUN+="/bin/mount -o $env{mount_options} /dev/%k /mnt/usbhd-%k", RUN+="/bin/ln -s /mnt/usbhd-%k /media/usbhd-%k"
# Clean up after removal
ACTION=="remove", RUN+="/bin/rm -f /media/usbhd-%k", RUN+="/bin/umount -l /mnt/usbhd-%k", RUN+="/bin/rmdir /mnt/usbhd-%k"
# Exit
LABEL="mnt_auto_mount_end"
kad montuotu /mnt skirsnyje, o /media sukurtu tik linka.
Be to, kad montuotu NTFS naudojancius irenginius, susidiek driver'ius:
sudo pacman -S ntfs-3g
O paskui sukurk /etc/udev/rules.d/10-my-media-automount.rules faila, jame irases:
# vim:enc=utf-8:nu:ai:si:et:ts=4:sw=4:ft=udevrules:
#
# /etc/udev/rules.d/10-my-media-automount.rules
# start at sdb to ignore the system hard drive
KERNEL!="sd[b-z]*", GOTO="my_media_automount_end"
ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="my_media_automount_end"
# import some useful filesystem info as variables
IMPORT{program}="/sbin/blkid -o udev -p %N"
# get the label if present, otherwise assign one based on device/partition
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
# create the dir in /media and symlink it to /mnt
ACTION=="add", RUN+="/bin/mkdir -p '/media/%E{dir_name}'"
# global mount options
ACTION=="add", ENV{mount_options}="relatime"
# filesystem-specific mount options (777/666 dir/file perms for ntfs/vfat)
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},gid=100,dmask=000,fmask=111,utf8"
# automount ntfs filesystems using ntfs-3g driver
ACTION=="add", ENV{ID_FS_TYPE}=="ntfs", RUN+="/bin/mount -t ntfs-3g -o %E{mount_options} /dev/%k '/media/%E{dir_name}'"
# automount all other filesystems
ACTION=="add", ENV{ID_FS_TYPE}!="ntfs", RUN+="/bin/mount -t auto -o %E{mount_options} /dev/%k '/media/%E{dir_name}'"
# clean up after device removal
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l '/media/%E{dir_name}'", RUN+="/bin/rmdir '/media/%E{dir_name}'"
# exit
LABEL="my_media_automount_end"
Kompaktu automontavimui arba jei nepavyktu pasiekti tikslo irasius sias taisykles (vadinasi kazka darai blogai), gali pabandyt programas: udiskie ar udisksevt.
"Ubuntu" is an ancient African word, that means "I can't configure "Slackware""
Atsijungęs
Turim, turim. Kaip mums siulo ofociali bendruomene, susikurk faila: /etc/udev/rules.d/11-media-by-label-auto-mount.rules su tokiu turiniu:
KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end" # Import FS infos IMPORT{program}="/sbin/blkid -o udev -p %N" # Get a label if present, otherwise specify one ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}" ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k" # Global mount options ACTION=="add", ENV{mount_options}="relatime" # Filesystem-specific mount options ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002" # Mount the device ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}" # Clean up after removal ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}" # Exit LABEL="media_by_label_auto_mount_end"
kad montuotu /media skirsnyje arba faila: /etc/udev/rules.d/11-mnt-auto-mount.rules su turiniu:
KERNEL!="sd[a-z][0-9]", GOTO="mnt_auto_mount_end" # Global mount options ACTION=="add", ENV{mount_options}="relatime" # Filesystem-specific mount options ACTION=="add", IMPORT{program}="/sbin/blkid -o udev -p %N" ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002" # Mount under /mnt and create the symbolic link in /media ACTION=="add", RUN+="/bin/mount -o $env{mount_options} /dev/%k /mnt/usbhd-%k", RUN+="/bin/ln -s /mnt/usbhd-%k /media/usbhd-%k" # Clean up after removal ACTION=="remove", RUN+="/bin/rm -f /media/usbhd-%k", RUN+="/bin/umount -l /mnt/usbhd-%k", RUN+="/bin/rmdir /mnt/usbhd-%k" # Exit LABEL="mnt_auto_mount_end"
kad montuotu /mnt skirsnyje, o /media sukurtu tik linka.
Be to, kad montuotu NTFS naudojancius irenginius, susidiek driver'ius:
sudo pacman -S ntfs-3g
O paskui sukurk /etc/udev/rules.d/10-my-media-automount.rules faila, jame irases:
# vim:enc=utf-8:nu:ai:si:et:ts=4:sw=4:ft=udevrules: # # /etc/udev/rules.d/10-my-media-automount.rules # start at sdb to ignore the system hard drive KERNEL!="sd[b-z]*", GOTO="my_media_automount_end" ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="my_media_automount_end" # import some useful filesystem info as variables IMPORT{program}="/sbin/blkid -o udev -p %N" # get the label if present, otherwise assign one based on device/partition ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}" ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k" # create the dir in /media and symlink it to /mnt ACTION=="add", RUN+="/bin/mkdir -p '/media/%E{dir_name}'" # global mount options ACTION=="add", ENV{mount_options}="relatime" # filesystem-specific mount options (777/666 dir/file perms for ntfs/vfat) ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},gid=100,dmask=000,fmask=111,utf8" # automount ntfs filesystems using ntfs-3g driver ACTION=="add", ENV{ID_FS_TYPE}=="ntfs", RUN+="/bin/mount -t ntfs-3g -o %E{mount_options} /dev/%k '/media/%E{dir_name}'" # automount all other filesystems ACTION=="add", ENV{ID_FS_TYPE}!="ntfs", RUN+="/bin/mount -t auto -o %E{mount_options} /dev/%k '/media/%E{dir_name}'" # clean up after device removal ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l '/media/%E{dir_name}'", RUN+="/bin/rmdir '/media/%E{dir_name}'" # exit LABEL="my_media_automount_end"
Kompaktu automontavimui arba jei nepavyktu pasiekti tikslo irasius sias taisykles (vadinasi kazka darai blogai), gali pabandyt programas: udiskie ar udisksevt.
Ačiū, veikia matyt ne tokius raktažodžius naudojau ieškodamas sprendimo..
EDIT: kai išsigandau, kai e2fsck įkrovos metu klaidą rodė... bet mano bėda, nepastebėjau, kad pateiktam kode yra smulki klaida
Paskutinį kartą redaguotas n0de (2010-11-16 20:40:23)
Atsijungęs
Kurioje vietoje klaida?
"Ubuntu" is an ancient African word, that means "I can't configure "Slackware""
Atsijungęs
Kurioje vietoje klaida?
Pirmuose dviejuose failuose, kur yra eilutė su žodžiu KERNEL, tai turėtų būti kaip ir paskutiniąjame faile: sd[b-z], nes sda yra pagrindinio hardo skirsniai bet dabar jau išvis tuos failus ištryniau ir įsirašiau udiskie
Atsijungęs
Cia ne klaida, buna visaip. Tiesiog pamirsau pamineti, kad reikia pasiredaguot savo poreikiams
"Ubuntu" is an ancient African word, that means "I can't configure "Slackware""
Atsijungęs
Puslapiai: 1