LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-04-2011, 11:49 AM   #1
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Rep: Reputation: Disabled
USB unmount problems (HAL related?)


Hello,

USB storage devices (external hard drives and sticks) have never been working well with my slackware setup and I need help to figure it out. Searching these forums revealed nothing and a google search revealed a potential problem or misconfiguration with HAL (most references are on Gentoo or ArchLinux) but I am totally unable to deal with HAL as I have no idea how it works. I use Slackware 13.1 & XFCE 4.4 (probably outdated but once again upgrading seems to have its share of bugs and problems and seems to require tremendous efforts)

Basically, if I plug a USB stick to my slackware machine, half of the time I wont be able to use it as a normal user. I need to launch konqueror as root (kdesu konqueror) and move the files as root. It will work. Then I wont be able to unmount the device as a normal user. If I try, I get a popup saying:

Code:
Unmount Failed.  Unable to unmount "USBSTICK":  org.freedesktop.hal.storage.unmount-others no <-- (privilege, result)
I believe this is a permission problem.

If the drive was freshly formatted on a windows machine, and has not yet been mounted on linux, I will be able to use it as a normal user.

Does anyone know how to fix this so I can use my USB devices like with any other operating systems out there??

Thanks

Last edited by lpallard; 07-04-2011 at 11:51 AM.
 
Old 07-04-2011, 12:40 PM   #2
bonixavier
Member
 
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Rep: Reputation: 69
As root
Code:
gpasswd -a username plugdev
Logout and log back in. Should work.
 
Old 07-04-2011, 01:25 PM   #3
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
Sorry, this did not fix it... I typed the command above and it said that my user was added to the group plugdev.

Any other suggestions?
 
Old 07-04-2011, 01:28 PM   #4
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
You'd need to log out and log in again for that change to take effect. Maybe that's why it didn't work.
 
Old 07-04-2011, 01:35 PM   #5
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
Sorry I hit the quick reply too quick!

I did logout and back in... I however noticed that it takes forever (about 30 seconds) for the desktop to close and go to he login screen...
 
Old 07-08-2011, 02:23 PM   #6
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
Bump.... Nobody?
 
Old 07-08-2011, 02:51 PM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello lpallard,
Quote:
I use Slackware 13.1 & XFCE 4.4 (probably outdated but once again upgrading seems to have its share of bugs and problems and seems to require tremendous efforts)
I don't think so. Note that HAL is less used with Slackware-13.37 than with 13.1.

With Gentoo I have once used halevt http://slackbuilds.org/repository/13.37/system/halevt/ which can be configured to handle plugable devices automatically.

But I would recommend to upgrade to 13.37, hopefully you'll find a better solution for your problem after an upgrade.

Markus
 
Old 07-08-2011, 03:11 PM   #8
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
markush, i've seen you around these forums quite a lot and I think you are probably ahead of me in most stuff, so here's a quick question for you:

Would upgrade to 13.37 be easy? I have been using slack for quite some time now but I am still unsure how to upgrade the whole OS properly... How do you upgrade from 13.1 to 13.37?

Code:
slackpkg upgrade all
?
 
Old 07-08-2011, 03:19 PM   #9
yuuko
Member
 
Registered: May 2011
Distribution: Slackware-current
Posts: 42

Rep: Reputation: 21
Did you try pmount? You can find it here.

Last edited by yuuko; 07-08-2011 at 03:19 PM. Reason: typo
 
Old 07-08-2011, 03:25 PM   #10
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Mh, the official way to upgrade from an earlier version to 13.37 is described here: ftp://ftp.gwdg.de/pub/linux/slackwar...37/UPGRADE.TXTI have three computers running Slackware, with one of them (which is my server) I used slackpkg to upgrade it. At first edit the /etc/slackpkg/mirrors file and change the mirrors path to 13.37, then
Code:
slackpkg update
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system
worked for me.

On the other two machines I performed a complete reinstall. I use to download the packages with wget and create a minimal-install-CD like described here: ftp://ftp.gwdg.de/pub/linux/slackwar...nux/README.TXT which means a bootable install-CD without any packages. And then I chose to install from premounted partition. My /home is a separate partition and is not reformatted. This installation is done within about 10 minutes.

Note that some of the configuration has changed from 13.1 to 13.37, for example referring to HAL, HAL does no longer manage the keybindings for the X-server.

Note as well, if you follow the manuals, most important this one ftp://ftp.gwdg.de/pub/linux/slackwar..._AND_HINTS.TXT you will not run into difficulties. And if something goes wrong, come here to ask.

Good luck.

Markus
 
1 members found this post helpful.
Old 07-08-2011, 03:39 PM   #11
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
Again, thanks for replying!

I am just about to start using the readme from Pat you pointed out to me.

Before I start, I'd like to download (or mirror locally) the slackware 13.37 tree. What command you use?

Before I used rsync but I imagine there must be better than that. Also what I have done in the past is to download the ISO of the DVD, mount it locally and copy everything to my Slackware server (yes I too have a slackware server ! )
 
Old 07-08-2011, 03:49 PM   #12
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
I've once written a short downloadscript, it is here: http://www.linuxquestions.org/questi...ckages-877572/ but the easiest method (with an ftp-mirror is
Code:
for i in a ap d e f k kde l n t tcl x xap y; do mkdir $i; cd $i; wget ftp://yourmirrorpathhere/slackware/$i/*; cd ..; done
If you want to create a minimal install-CD you'll have to download the directories "Kernels" and "isolinux", which can be done with wget with the -r option.

Faster is creating a bootable installer on an USB-memory-stick which is explained here: ftp://ftp.gwdg.de/pub/linux/slackwar...README_USB.TXT

Note if you use my downloadscript, change the mirror in the configurationfile to an ftp-mirror near your home-location, it works only with ftp. And if you need the localization from the kdei-series you'll have to download it manually.

Markus

Last edited by markush; 07-08-2011 at 03:50 PM.
 
1 members found this post helpful.
Old 07-08-2011, 11:40 PM   #13
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
Hey markush,

Everything went well except a problem with the new generic kernel 2.6.37.6-smp...

Basically my machine won't boot. I get a kernel panic saying cannot mount root fs invalid filesystem or something like that....

I am pretty sure it's because the generic kernel does not have support for reiserfs out of the box. I looked in the config file of this kernel and reiserfs seems to be modular (I.e. A module)

CONFIG_REISERFS_FS=m

My setup is as simple as it can be. One hdd with /boot on sda1 and root (/) on sda5.... All reiserfs partitions.

What can I do to boot?
 
Old 07-09-2011, 12:25 AM   #14
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Try these two commands.
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh |sh
Code:
lilo -v
(This assumes you have an "initrd = /boot/initrd.gz" line in lilo.conf already)
 
Old 07-09-2011, 01:47 AM   #15
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hi lpallard,

I'm happy to read that you've got it working (so far). I don't use the generic kernel but the "huge" one. You didn't tell us anything about the hardware of your computer, what processor and what amount of Ram do you have?

Markus
 
  


Reply



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
HAL automount permissions differs between USB HD and USB memory stick Olaus Slackware 5 06-28-2010 06:34 PM
How to fix USB Pen Drive unmount problems with slack 9.1? asowani Linux - Software 4 04-24-2008 03:16 AM
Unable to unmount HAL-mounted device dunric Slackware 4 08-24-2006 08:21 AM
Unmount USB Drive stevsom Linux - General 2 05-15-2005 12:21 AM
Mandrake 10 problems...all USB related steelerguy Mandriva 6 07-02-2004 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration