Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting with udev
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
beaker222
n00b
n00b


Joined: 15 Aug 2004
Posts: 52

PostPosted: Fri Dec 30, 2005 11:29 am    Post subject: Mounting with udev Reply with quote

Hello,

I installed a new Gentoo 2005.1 (stage3 with GRP Packages) and KDE 3.4.3. Now I have two problems concerning mounting with KDE:

1) When I usually click on the System Icon on the Desktop and go to Storage Media, my hard discs and cd/dvd drives are shown. Then the hard discs have their "normal" names as hda1 hdc3 and something like this. And mounting and unmouting works fine. But sometimes when I go to Storage Media, the devices look different. Then, the hard discs aren't named as usual, but they have names like 47GMedia and the CD/DVD Devices are only shown when there's a CD/DVD inserted. So what can I do, that the devices are always shown with their normal names and that the CD/DVD devices are always shown, even if there's no disc inserted?

2) The second problem is about using udev rules. I tried to write some udev rules for mounting a mobile usb hard disc and my camera. These are the rules that I have written for this:

Code:
BUS="scsi",SYSFS{vendor}="HDS72808",KERNEL="sd?1",NAME="%k",SYMLINK="mobilehd"
BUS="scsi",SYSFS{vendor}="FUJIFILM",KERNEL="sd?1",NAME="%k",SYMLINK="camera"


Then I added two lines to my fstab:

Code:
/dev/mobilehd          /mnt/mobilehd   ext3            users,noatime,noauto 0 1
/dev/camera            /mnt/camera     vfat            users,noatime,noauto 0 1


This way, I could mount the two devices just by typing e.g.:

Code:
mount /mnt/mobilehd


This worked fine. But when I reboot with these lines in my fstab the system crashed when booting, because it tries checking the mobilehd that isn't connected to the computer.

What can I do to comfortably mount these devices without having any problems when booting?

What can I do that an Icon appears in Storage Media or on my Desktop whenever the mobilehd or the camera is connected to the computer, so that I just have to click on this icon to get to the device?

Bye,
beaker
Back to top
View user's profile Send private message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 753
Location: Glasgow, UK

PostPosted: Fri Dec 30, 2005 11:35 am    Post subject: Reply with quote

The booting problem is that you have set the fsck setting to yes on your two devices in fstab, so although it doesn't mount them it still tries to do an integrity check and crashes since they aren't there, set the two fsck bits to 0 and you should have no boot problems.
_________________
The Geek formerly known as -Freestyling-
When you feel your problem has been solved please add [Solved] to the topic title.
Please adopt an unanswered post
Back to top
View user's profile Send private message
beaker222
n00b
n00b


Joined: 15 Aug 2004
Posts: 52

PostPosted: Fri Dec 30, 2005 1:56 pm    Post subject: Reply with quote

Thanks, changing the 1 to 0 helped for the boot problem! :D

Now, can I somehow make KDE mount these drives automatically when they are connected and make an icon appear somewhere, so that I can access the devices?

And any ideas for my first problems with the strange device names?

Bye,
Beaker
Back to top
View user's profile Send private message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 753
Location: Glasgow, UK

PostPosted: Fri Dec 30, 2005 3:40 pm    Post subject: Reply with quote

KDE autmounting can be done with ivman. it's in portage.

and as for the wierd names i'm not sure, all i can see from my own kde is that it seems to read the info out of fstab, since it gives me two references to the same device in mine, one through the normal node, and one through the packet writing node, exactly as i put it in my fstab.

Which version of kde are you using?
_________________
The Geek formerly known as -Freestyling-
When you feel your problem has been solved please add [Solved] to the topic title.
Please adopt an unanswered post
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Thu Jan 05, 2006 12:03 am    Post subject: Reply with quote

KDE version 3.5 includes automounting built-in. (All options can be set in kcontrol)

For versions < KDE 3.5 look here:http://gentoo-wiki.com/HOWTO_D-BUS,_HAL,_KDE_media:/
Back to top
View user's profile Send private message
ziggysquatch
Apprentice
Apprentice


Joined: 16 Nov 2004
Posts: 172
Location: /USA/Minnesota

PostPosted: Thu Jan 05, 2006 12:40 am    Post subject: Reply with quote

not sure if I fully understand the problem that remains but I had an issue that sounds similar.

I had my dvd/cd drives listed two times in the computer area in Nautilus they were listed once with the hdc or "normal" name and listed again with a differant name like DVD Drive or CD Drive

I found out that if you have an automounting program running you have to add managed in /etc/fstab on the device's line.
This is what mine looks like:

Code:

/dev/hdc                /media/cdrecorder       auto    exec,user,noauto,managed 0 0


After I added managed the Drives show up only with the human name like DVD Drive or CD Drive.

Hope this helps
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum