You are not logged in.

#26 2005-12-08 14:49:29

christianpurefoy
Member
Registered: 2005-10-16
Posts: 136

Re: ivman & mass storage

i did

pacman -S ivman

changed the .default.xml to just .xml

then i in /etc/rc.conf daemons, in this order, it's:

(syslog-ng hotplug !pmcia network netfs crond dbus hal ivman)

i then mkdir /media

but the device is not coming up in media (or anywhere else i can find...)... do i need to change a udev file or something?

thanks

Offline

#27 2005-12-08 15:56:07

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: ivman & mass storage

maybe look at lsusb?

what device you trying to mount ?


Mr Green

Offline

#28 2005-12-08 16:14:32

saintshakajin
Member
Registered: 2005-04-13
Posts: 32

Re: ivman & mass storage

I'm in the same case. When I plug my mp3 player or my camera (for pictures, I don't know the right word in English sad ), I see nothing in /media but pmount /dev/sda1 /blabla it works very well.
I was on KDE and Gnome last week and no problem, mounted before I say "cool" tongue

Offline

#29 2005-12-08 17:00:03

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: ivman & mass storage


Mr Green

Offline

#30 2005-12-09 10:29:13

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: ivman & mass storage

When you get tired of automounters take a look at pure udev/mount solution for automounting storage devices (sd*) in /mnt and /media :-)

Offline

#31 2005-12-09 14:22:32

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: ivman & mass storage

good call  lol


Mr Green

Offline

#32 2005-12-10 10:40:19

christianpurefoy
Member
Registered: 2005-10-16
Posts: 136

Re: ivman & mass storage

yeah- this looks perfect and easy to follow... except! when I type in

udevinfo -a -p `udevinfo -q path -n /dev/sda`

or

udevinfo -a -p `udevinfo -q path -n /dev/sda1' (just to be sure!)

it comes up with :

Couldn't find class device

... yet when i rummage around in /dev/disk/by-id I can see the device sitting there...

am i missing a step?
thanks!

EDIT: after fdisk -l , I find it's on /dev/sda1, but udevinfo still ain't working...

Offline

#33 2005-12-10 21:15:39

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: ivman & mass storage

I have not yet got udevinfo to work for me either so your not aone there ...

I'll give udev lines a go ... see what happens ... ;-)


Mr Green

Offline

#34 2005-12-11 00:32:44

christianpurefoy
Member
Registered: 2005-10-16
Posts: 136

Re: ivman & mass storage

any luck?! - more than interested to know how it turns out...

Offline

#35 2005-12-11 04:24:49

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: ivman & mass storage

Hmm. Looks like something is broken in udevinfo. But you can just use udevinfo -a -p /sys/block/sda and it will return the info. You can also just browse the /sys/block directory and view the files (every parameter is a file). udevinfo -q path -n /dev/sda just remaps /dev/sda to /sys subdirectory. BTW what do you need udevinfo for ?

Offline

#36 2005-12-11 09:11:01

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: ivman & mass storage

emmm something I read on wiki thats all ...

Using udev to map multiple entries to a device ...  :?


Mr Green

Offline

#37 2005-12-11 20:26:46

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: ivman & mass storage

Ok. Use udevinfo like I mentioned above (with /sys/block). The setup on wiki page is different than mine.

Offline

#38 2005-12-11 21:08:32

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: ivman & mass storage

yeah that works fine ...

/me reads up on rules creation

thanks for your help ;-)


Mr Green

Offline

#39 2005-12-13 13:05:25

christianpurefoy
Member
Registered: 2005-10-16
Posts: 136

Re: ivman & mass storage

sorry been away from me' computer... did you manage to get it working Mr Green? Please, If so, how?! why am I getting 'couldn't find device'?

thanks!

Offline

#40 2005-12-13 14:13:57

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: ivman & mass storage

Take a look at mounter (adesklet) ;-) or deskicon.....

Should show you on desktop if device is mounted or not ....

Not that up on xfce4 (may be a plugin you need!)

HTH


Mr Green

Offline

#41 2005-12-15 11:11:10

christianpurefoy
Member
Registered: 2005-10-16
Posts: 136

Re: ivman & mass storage

i need to be able to add the 'device' to some list somewhere... after trawling the forum, etc i couldn't find any clear path on how to do this...

basically, i want to be able to use udev to map multipe devices, but when i start this process by typing

udevinfo -a -p `udevinfo -q path -n /dev/sda`
or
udevinfo -a -p `udevinfo -q path -n /dev/sda2`

it comes up with:

'couldn't get the class device'

... how do i add the class device to the necessay list (whereever that is??)

thanks!

Offline

#42 2005-12-15 15:20:46

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: ivman & mass storage

udevinfo -a -p /sys/block/sda 

udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

device '/sys/block/sda' has major:minor 8:0
  looking at class device '/sys/block/sda':
    SUBSYSTEM=="block"
    SYSFS{dev}=="8:0"
    SYSFS{range}=="16"
    SYSFS{removable}=="1"
    SYSFS{size}=="511488"
    SYSFS{stat}=="      15      210      407       32        0        0        0                                         0        0       32       32"

follow the "device"-link to the physical device:
  looking at the device chain at '/sys/devices/pci0000:00/0000:00:02.2/usb1/1-8/                                 1-8:1.0/host4/target4:0:0/4:0:0:0':
    BUS=="scsi"
    ID=="4:0:0:0"
    DRIVER=="sd"
    SYSFS{device_blocked}=="0"
    SYSFS{iocounterbits}=="32"
    SYSFS{iodone_cnt}=="0x42"
    SYSFS{ioerr_cnt}=="0x4"
    SYSFS{iorequest_cnt}=="0x42"
    SYSFS{max_sectors}=="240"
    SYSFS{model}=="USB Flash Disk  "
    SYSFS{queue_depth}=="1"
    SYSFS{queue_type}=="none"
    SYSFS{rev}=="2.00"
    SYSFS{scsi_level}=="3"
    SYSFS{state}=="running"
    SYSFS{timeout}=="30"
    SYSFS{type}=="0"
    SYSFS{vendor}=="Generic "

gives you all you need ....

then look up making udev rules ....

its not as hard as it looks ....

hal dbus pmount ivman does what I need as for auto icon thing you need to check with xfce4 forums (if they have one) or repost ....

Cannot help more than that ...


Mr Green

Offline

#43 2005-12-15 16:57:33

christianpurefoy
Member
Registered: 2005-10-16
Posts: 136

Re: ivman & mass storage

AH-HA! it works - superb!

thanks Mr Green! it was the

udevinfo -a -p /sys/block/sda

that i was looking for... why's this one different from the one in the wiki? anyway after i got that the rest was a breeze! phew!

thanks all!

Offline

#44 2005-12-15 17:06:09

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: ivman & mass storage

o7 Welcome to Arch


Mr Green

Offline

Board footer

Powered by FluxBB