LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 12, HAL automount (https://www.linuxquestions.org/questions/slackware-14/slackware-12-hal-automount-566948/)

-kc- 07-17-2007 08:21 PM

I wanted to give HAL a try, but nothing get mounted automatically, what's the command to mount? And what's the purpose of using items without requiring the mount or umount command if you need another command?
I use WindowMaker/Fluxbox/Other, and desktop environment dependent solutions are against my religion, should I throw HAL away?

thanks
kc

rworkman 07-17-2007 08:32 PM

Quote:

Originally Posted by -kc-
I wanted to give HAL a try, but nothing get mounted automatically, what's the command to mount? And what's the purpose of using items without requiring the mount or umount command if you need another command?
I use WindowMaker/Fluxbox/Other, and desktop environment dependent solutions are against my religion, should I throw HAL away?

HAL doesn't actually mount anything - it only provides device information via DBUS. You'll need KDE, GNOME, or Xfce for a desktop environment that makes use of it (the DE actually does the mounting, but even so, it's not automatic -- it simply makes it a one-click process, or alternatively asks what you want to do and then allows automatic mounting later). Alternatively, a combination of ivman and pmount will do what you seem to want (in any window manager), and I intend to push these to the public at SlackBuilds.org soon, but they're not out yet for 12.0.

The other option is to use mount(8) and umount(8), which will necessitate adding devices to /etc/fstab.

masonm 07-17-2007 08:36 PM

Is your user in the plugdev group? It works fine for me.

happyslacker 07-18-2007 12:04 AM

Quote:

Originally Posted by -kc-
I wanted to give HAL a try, but nothing get mounted automatically, what's the command to mount? And what's the purpose of using items without requiring the mount or umount command if you need another command?
I use WindowMaker/Fluxbox/Other, and desktop environment dependent solutions are against my religion, should I throw HAL away?

thanks
kc

This program will add/remove data from /etc/fstab (just install it):

http://www.linuxquestions.org/questi...78#post2826978

KDE will mount/umount device (the program vsupdfstab dont't mount/umount because this is incompatible with KDE).

-kc- 07-18-2007 06:53 AM

Thanks for the explanation, rworkman,
ANNOUNCE.12_0 talk about "using items without requiring sudo, the mount or umount command, just plug and play" but don't mention KDE/Xfce role in the mount process, so I was probably confusing HAL with some sort of auotomount daemon, or something like a new better way of doing things with removable media.

I think I'll stick with the old method until I can take advantage of HAL in any window manager or command line environment in an out of the box Slackware.
Quote:

Originally Posted by happyslacker
This program will add/remove data from /etc/fstab (just install it):
Thanks, I'll try it out.

notsay 08-20-2007 12:06 PM

Quote:

Originally Posted by happyslacker (Post 2826978)
Don't add users - it is unnecessary.

How to use USB flash drive with Slackware Linux

First turn on HAL and D-BUS (if you don't):
Code:

chmod +x /etc/rc.d/rc.messagebus
/etc/rc.d/rc.messagebus start
chmod +x /etc/rc.d/rc.hald
/etc/rc.d/rc.hald start

and then install package installpkg vsupdfstab-0.1-noarch-0.tgz:

Maybe you must restart KDE.

My Slackware linux can auto mount or unmount USB-disk by udev, but when USB-disk mounted by udev, there is a bad interface, all chinese word display "???", I think should mount -o iocharset=zh_CN.utf8 , but auto mount by udev , I dont' know how to edit mount rules.

happyslacker 08-21-2007 11:08 AM

Quote:

Originally Posted by notsay (Post 2864746)
My Slackware linux can auto mount or unmount USB-disk by udev, but when USB-disk mounted by udev, there is a bad interface, all chinese word display "???", I think should mount -o iocharset=zh_CN.utf8 , but auto mount by udev , I dont' know how to edit mount rules.

Your Linux can auto mount (already added partitions to /etc/fstab), but can not auto add partitions to /etc/fstab with correct parameters. You may use vsupdfstab to add partitions with settings to use UTF-8 or edit by hand /etc/fstab.


Examples of settings to use UTF-8:
Code:

/dev/hda5 /mnt/hda5 ntfs-3g auto,noatime,users,rw,nls=utf8,fmask=111,dmask=000 0 0
/dev/hda1 /mnt/hda1 vfat auto,noatime,users,iocharset=utf8,codepage=855,fmask=111,dmask=000 0 0
/dev/sda1 /media/usb_sda1 vfat auto,users,noatime,async,iocharset=utf8,codepage=855,fmask=111,dmask=000 0 0

Mount options for flash memory must include "noatime,async". If these options is not present, flash memory life will be decrased.

notsay 08-21-2007 06:11 PM

Quote:

Originally Posted by happyslacker (Post 2865897)
Your Linux can auto mount (already added partitions to /etc/fstab), but can not auto add partitions to /etc/fstab with correct parameters. You may use vsupdfstab to add partitions with settings to use UTF-8 or edit by hand /etc/fstab.


Examples of settings to use UTF-8:
Code:

/dev/hda5 /mnt/hda5 ntfs-3g auto,noatime,users,rw,nls=utf8,fmask=111,dmask=000 0 0
/dev/hda1 /mnt/hda1 vfat auto,noatime,users,iocharset=utf8,codepage=855,fmask=111,dmask=000 0 0
/dev/sda1 /media/usb_sda1 vfat auto,users,noatime,async,iocharset=utf8,codepage=855,fmask=111,dmask=000 0 0

Mount options for flash memory must include "noatime,async". If these options is not present, flash memory life will be decrased.


Thanks for flash memeory mount idea.

vi /etc/fstab is easy, why "vsupdfstab" exist? is it better?

/etc/fstab mount or umount depend input mount or umount command by hand, I know this and utf8 option support.
I mean I know mount or umount by udev, but utf8 support by udev.

happyslacker 08-22-2007 09:42 AM

Quote:

Originally Posted by notsay (Post 2866216)
vi /etc/fstab is easy, why "vsupdfstab" exist? is it better?

vsupdfstab add data automatically when user insert memory and remove data when user remove memory even user forget to umount partition. If user forget to umount partition and insert memory again (without vsupdfstab), device will be other (/dev/sdb will busy and udev will create /dev/sdc) and user must edit fstab by hand again.

mpyusko 09-05-2007 01:04 AM

Quote:

Originally Posted by gargamel (Post 2814477)
Not sure, but maybe you need to re-login after adding yourself to the relevant groups, as your login session reads the groups your user belongs to at login time... It shouldn't be necessary to reboot, but it may be necessary to restart D-BUS and/or HAL.

gargamel

God bless google! I ran across this article and it solved my problem. I added myself to plugdev, I restarted rc.hald and rc.messagebus. But I still couldn't mount my CD-ROM until I logged out of KDE and logged back in. Thank you!!!!!!!!!!!!! :D I'd beat my head against the wall if it didn't start working.

perry 09-05-2007 11:16 AM

very interesting thread
 
all i know is that HAL is a new feature of 12 and a big reason why i wanted to upgrade and glad that i did. but like anything *new* and *working* it comes with quirks. i ended up having to remove usb devices that i was using like a flash card reader on account that there seemed to be a race condition during startup and HAL or dbus was assigning sd? values based on whatever showed up first.

as i learn more about HAL and it's related packages I'll get an idea on how to better utilize them. right now i'd be settled to know how to reset the lovely icons that show up on my desktop (under dropline gnome). after a fresh install, there will be device icons for each of my partitions. after i install and run gparted at least once, only device icons for actual usb devices will show up (the correct thing to do, i would think) however on a previous install, the too managed to disappear so i 1/2 expecting them to disappear eventually and when they do i'd like to know what the problem is so that i can correct it. perhaps it's something to do with dropline...!

any ideas?

- perry

Bahseik 09-07-2007 09:14 PM

Quote:

Originally Posted by Datamike (Post 2812788)
I don't think there is a good FAQ for HAL yet, nor much in terms of troubleshooting or tutorials on how to use it. I'm also having trouble getting into terms with HAL.

For example, just inserting and getting my CDROM mounted, is a problem. I do get the box asking what to do with it. But when I click that I want browse it, konqueror launches and I get a weird error message:

A security policy in place prevents this sender from sending this message to this recipient: see message bus configuration file (rejected message had
interface "org.freedesktop.Hal.Device.Volume"
member "Mount" error name "(unset)"
destination "org.freedesktop.Hal")


Anyone have a clue what this means?

I'm having the same problem with USB sticks. And I'm doing it as root.

rworkman 09-07-2007 09:29 PM

Quote:

Originally Posted by Bahseik (Post 2885044)
I'm having the same problem with USB sticks. And I'm doing it as root.

Read the entire thread and the stickied thread about HAL - a solution has been given multiple times.

happyslacker 09-08-2007 04:08 AM

Quote:

Originally Posted by Bahseik (Post 2885044)
I'm having the same problem with USB sticks. And I'm doing it as root.

Just install vsupdfstab-0.2-noarch-0.tgz.

ronty 10-18-2007 10:26 AM

mount cd?
 
I too am having problems with mounting a cd or dvd.
My machine is Amd2 64bit.

My fstab file is:

/dev/sda5 swap swap defaults 0 0
/dev/sdb5 swap swap defaults 0 0
/dev/sdb1 / ext3 defaults 1 1
/dev/sdb6 /home ext3 defaults 1 2
/dev/cd-rw /mnt/cd-rw iso9660 noauto,owner,ro 0 0
/dev/dvd-rom /mnt/dvd-rom iso9660 noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

When I try to mount a cd I get the same reply even if I log in as root.

I have added myself to plugdev still nothing

A security policy in place prevents this sender form sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")

Don't know if I have put this reply in the right place...my first post


All times are GMT -5. The time now is 10:23 PM.