LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-22-2007, 10:39 AM   #1
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30
I need a better way to mount in KDE


Hi, I have been looking for awhile a better way to mount my removable media (cd's, usb sticks). The bad part about USB jump drives is that I can't really put it in fstab, it is not always the /dev/sd* I say it is.

I have not had any luck finding any programs to take care of this. Does anybody know of any thing that sounds like what I'm looking for? I'd prefer it to be GUI, and the program able to take care of itself without me telling it to manually mount it every time.

Thanks,
David
 
Old 05-22-2007, 12:00 PM   #2
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
Hi ive heard about a program called automount but ive never used it.
I think slack 12 will do a much better job at this so im just waiting paitiently ;-)
The problem lies in something called hal (I think) wich isnt compiled into kde on slac but im not 100% certain of this.

Well cheers
 
Old 05-22-2007, 01:05 PM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
HAL is hardware abstraction layer. It is used for automounting. It is included both in Gnome and Kde. You need 2.6 kernel for that. Check this link: http://wiki.kde.org/tiki-index.php?page=DBUS for KDE.
 
Old 05-22-2007, 01:24 PM   #4
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
udev

Can also create a udev rule for your drives giving them a persistent name. instruction in the /usr/docs/udev dir.
 
Old 05-22-2007, 01:30 PM   #5
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
Quote:
Originally Posted by davidguygc
Hi, I have been looking for awhile a better way to mount my removable media (cd's, usb sticks). The bad part about USB jump drives is that I can't really put it in fstab, it is not always the /dev/sd* I say it is.
Hi David,

if you are using a 2.6 kernel then it's possible to change the udev rules so that the same device will get a constant symlink (I have for example a symlink /dev/usbhd-trekstor, it doesn't matter if my device is connected as sda or sdb or sdc ...).
http://reactivated.net/writing_udev_rules.html is the point where you should look if you're interested in this solution.
 
Old 05-22-2007, 01:48 PM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
I forgot to say that if you use KDE automounting, your devices will show in media://. Don't use this link to play films with kplayer (no rewind, forward in my KDE version, maybe it was fixed), test java applets. Go directly to /mnt/hda and watch/start them there.
 
Old 05-22-2007, 01:52 PM   #7
Nem
Member
 
Registered: Mar 2007
Location: United States
Distribution: Slackware 11.0
Posts: 88

Rep: Reputation: 15
I don't really see the need for automount
in slackware. /etc/fstab is very easy to set up
so I never had any problems.

This is my fstab
Code:
$ cat /etc/fstab
/dev/hda2        swap             swap        defaults         0   0
/dev/hda3        /                reiserfs    defaults         1   1
/dev/hda4        /home            reiserfs    defaults         1   2
/dev/hda1        /mnt/windows     ntfs        ro               1   0
/dev/sda1        /mnt/memory      auto        users,rw         0   0
/dev/sda2        /mnt/memory      auto        users,rw         0   0
/dev/cdrom       /mnt/cdrom       auto        noauto,owner,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
tmpfs            /dev/shm         tmpfs       defaults         0   0
Just plug in your usb stick run dmesg and
find what your stick is called.It should be called
/dev/sda1.Then just add the line to fstab.
If you don't want to use cmd line to mount your
usb sticks, you can also use kdiskfree in KDE
if you want to. I don't really know about automount
but I have used it in vector linux before and it worked fine.
 
Old 05-22-2007, 01:54 PM   #8
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Creating udev rules is the nicest way to go for that. I had the same feelings recently so I took the time to add rules for all of my removable devices - mp3 player, cameras, SD cards, external hard drives, etc.
Now when I plug in, that device is automatically assigned to the /dev item I specified in my rule. Then my entry in fstab works.
But I agree, the default scheme is really annoying!
 
Old 05-22-2007, 01:58 PM   #9
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Quote:
Originally Posted by Nem
Just plug in your usb stick run dmesg and
find what your stick is called.It should be called
/dev/sda1.Then just add the line to fstab.
The problem with that is, as mentioned, each device won't necessarily be the same /dev/sd* each time you plug it in. As a matter of fact, it _definitely_ won't always get assigned the same /dev.
 
Old 05-22-2007, 04:08 PM   #10
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
If you're using a 2.6 kernel and udev on Slackware 11, these two links have everything you need to know to get started...
http://slackwiki.org/Udev
http://slackwiki.org/Windows_Partitions
 
Old 05-22-2007, 05:05 PM   #11
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
OK, I had heard about udev taking over hotplug, but I never really heard anybody talk about how they use it. I gotta say, I'm really suprised there aren't a lot of GUI programs out there to set it up, I know a few people one of the main reasons they don't use Linux is because it is such a pain for someone to access media if they are new to Linux.

Thanks for all the input, really appreciate it. BTW, any word on the ETA of Slack 12? Exciting stuff lol.

--David
 
Old 05-22-2007, 07:45 PM   #12
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Patience, grasshopper :-) As always, when it's ready.
 
Old 05-23-2007, 11:46 AM   #13
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Is Slack 12 approaching or was that just wishful thinking?
 
Old 05-23-2007, 11:55 AM   #14
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by Vincent_Vega
Is Slack 12 approaching or was that just wishful thinking?
It is approaching; how fast is anybody's guess. :-)
The only answer that anyone can honestly give is "When It's Ready"
 
Old 05-23-2007, 12:23 PM   #15
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Smile

Quote:
Originally Posted by rworkman
It is approaching; how fast is anybody's guess. :-)
The only answer that anyone can honestly give is "When It's Ready"
Great news, rworkman:-) I'm looking forward to Slack 12!
I'm enjoying using your site, rworkman:-) You have a great collection of build scripts. I compiled sylpheed 2.3.0 yesterday.

later,

hitest
 
  


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
Can only mount once in KDE slackware_newbie Slackware 26 01-28-2007 03:16 PM
Mount devices in KDE slackware_newbie Slackware 6 09-10-2006 04:14 PM
How does KDE mount my cdrom, any why can't I? EAD Linux - Newbie 9 03-11-2006 03:16 AM
mount cdrom under kde marekjs Slackware 11 05-02-2005 05:23 PM
Cannot mount the CD in KDE environment. lmworld Linux - General 5 04-02-2002 12:33 AM

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

All times are GMT -5. The time now is 08:27 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