LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-17-2007, 08:21 PM   #16
-kc-
LQ Newbie
 
Registered: Jun 2007
Distribution: Slackware
Posts: 21

Rep: Reputation: 15

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
 
Old 07-17-2007, 08:32 PM   #17
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
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.
 
Old 07-17-2007, 08:36 PM   #18
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 13.37 Android 4.0
Posts: 2,248

Rep: Reputation: 46
Is your user in the plugdev group? It works fine for me.
 
Old 07-18-2007, 12:04 AM   #19
happyslacker
LQ Newbie
 
Registered: Jul 2007
Posts: 15

Rep: Reputation: 0
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).
 
Old 07-18-2007, 06:53 AM   #20
-kc-
LQ Newbie
 
Registered: Jun 2007
Distribution: Slackware
Posts: 21

Rep: Reputation: 15
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.

Last edited by -kc-; 07-18-2007 at 06:56 AM.
 
Old 08-20-2007, 12:06 PM   #21
notsay
LQ Newbie
 
Registered: Oct 2004
Location: China
Distribution: redhat,debian,redflag
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by happyslacker View Post
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.
 
Old 08-21-2007, 11:08 AM   #22
happyslacker
LQ Newbie
 
Registered: Jul 2007
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by notsay View Post
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.

Last edited by happyslacker; 08-21-2007 at 11:15 AM.
 
Old 08-21-2007, 06:11 PM   #23
notsay
LQ Newbie
 
Registered: Oct 2004
Location: China
Distribution: redhat,debian,redflag
Posts: 12

Rep: Reputation: 0
Quote:
Originally Posted by happyslacker View Post
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.
 
Old 08-22-2007, 09:42 AM   #24
happyslacker
LQ Newbie
 
Registered: Jul 2007
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by notsay View Post
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.
 
Old 09-05-2007, 01:04 AM   #25
mpyusko
Member
 
Registered: Oct 2003
Location: Rochester, NY, USA
Distribution: Salckware ver 10.1 - 14.1, Debian too.
Posts: 351
Blog Entries: 1

Rep: Reputation: 37
Exclamation

Quote:
Originally Posted by gargamel View Post
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!!!!!!!!!!!!! I'd beat my head against the wall if it didn't start working.
 
Old 09-05-2007, 11:16 AM   #26
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
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
 
Old 09-07-2007, 09:14 PM   #27
Bahseik
LQ Newbie
 
Registered: Aug 2007
Distribution: Attempting Slackware 12.0
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by Datamike View Post
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.
 
Old 09-07-2007, 09:29 PM   #28
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
Quote:
Originally Posted by Bahseik View Post
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.

Last edited by rworkman; 09-07-2007 at 09:30 PM.
 
Old 09-08-2007, 04:08 AM   #29
happyslacker
LQ Newbie
 
Registered: Jul 2007
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by Bahseik View Post
I'm having the same problem with USB sticks. And I'm doing it as root.
Just install vsupdfstab-0.2-noarch-0.tgz.
 
Old 10-18-2007, 10:26 AM   #30
ronty
LQ Newbie
 
Registered: Jun 2004
Location: Manchester UK
Distribution: Debian_OSX_Fedora_Slackware
Posts: 12

Rep: Reputation: 0
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
 
  


Reply

Tags
automount, cdrom, dbus, drive, flash, fstab, group, hal, plugdev, slackware, usb, utf8


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Preparing for Slackware 12 and Hal arubin Slackware 4 07-05-2007 10:44 AM
automount[10761]: failed to mount /media/.hal-mtab kevkim55 Linux - General 0 06-23-2007 12:29 PM
HAL on Slackware 11.0 cdale77 Slackware 4 05-13-2007 05:55 PM
after update HAL automount doesn't work eddiep Linux - Hardware 4 02-26-2007 01:58 PM
Slackware 11, KDE 3.5.4 + hal shadowhunter Slackware 3 10-07-2006 01:18 PM


All times are GMT -5. The time now is 11:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration