You are not logged in.

#1 2006-03-10 19:16:33

sinisterguy
Member
Registered: 2004-10-17
Posts: 42

mounting usb devices

I recently decided to try out arch again and I was trying to set up automounting on KDE. I am using the HAL and DBUS daemon and the kde automount thing. I then decided to try to mount my usb stick and ipod manually and neither of them worked. I tryed mount /dev/sda1  and various other variations and then i checked my /dev directory and found that there was no sd anything entry there at all. any help at all would be greatly appreciated

Offline

#2 2006-03-10 19:20:05

Ethilien
Member
From: Parker, CO
Registered: 2005-09-21
Posts: 36
Website

Re: mounting usb devices

Could you post what is in dev?

ls /dev

Then we can try to find the right device smile


-Connor McKay

"He is no fool who gives what he cannot keep to gain what he cannot lose" - Jim Elliot

Offline

#3 2006-03-10 20:15:26

sinisterguy
Member
Registered: 2004-10-17
Posts: 42

Re: mounting usb devices

here's my /dev directory:

adsp
agpgart
audio
cdroms
console
discs
dsp
fb
fd
fd0
fd0u1040
fd0u1120
fd0u1440
fd0u1600
fd0u1680
fd0u1722
fd0u1743
fd0u1760
fd0u1840
fd0u1920
fd0u360
fd0u720
fd0u800
fd0u820
fd0u830
floppy
full
hda
hda1
hda2
hda3
hdc
ide
initctl
input
kmem
kmsg
log
loop
loop0
loop1
loop2
loop3
loop4
loop5
loop6
loop7
mapper
md
md0
md1
md10
md100
md101
md102
md103
md104
md105
md106
md107
md108
md109
md11
md110
md111
md112
md113
md114
md115
md116
md117
md118
md119
md12
md120
md121
md122
md123
md124
md125
md126
md127
md128
md129
md13
md130
md131
md132
md133
md134
md135
md136
md137
md138
md139
md14
md140
md141
md142
md143
md144
md145
md146
md147
md148
md149
md15
md150
md151
md152
md153
md154
md155
md156
md157
md158
md159
md16
md160
md161
md162
md163
md164
md165
md166
md167
md168
md169
md17
md170
md171
md172
md173
md174
md175
md176
md177
md178
md179
md18
md180
md181
md182
md183
md184
md185
md186
md187
md188
md189
md19
md190
md191
md192
md193
md194
md195
md196
md197
md198
md199
md2
md20
md200
md201
md202
md203
md204
md205
md206
md207
md208
md209
md21
md210
md211
md212
md213
md214
md215
md216
md217
md218
md219
md22
md220
md221
md222
md223
md224
md225
md226
md227
md228
md229
md23
md230
md231
md232
md233
md234
md235
md236
md237
md238
md239
md24
md240
md241
md242
md243
md244
md245
md246
md247
md248
md249
md25
md250
md251
md252
md253
md254
md255
md26
md27
md28
md29
md3
md30
md31
md32
md33
md34
md35
md36
md37
md38
md39
md4
md40
md41
md42
md43
md44
md45
md46
md47
md48
md49
md5
md50
md51
md52
md53
md54
md55
md56
md57
md58
md59
md6
md60
md61
md62
md63
md64
md65
md66
md67
md68
md69
md7
md70
md71
md72
md73
md74
md75
md76
md77
md78
md79
md8
md80
md81
md82
md83
md84
md85
md86
md87
md88
md89
md9
md90
md91
md92
md93
md94
md95
md96
md97
md98
md99
mdd0
mdd1
mdd10
mdd100
mdd101
mdd102
mdd103
mdd104
mdd105
mdd106
mdd107
mdd108
mdd109
mdd11
mdd110
mdd111
mdd112
mdd113
mdd114
mdd115
mdd116
mdd117
mdd118
mdd119
mdd12
mdd120
mdd121
mdd122
mdd123
mdd124
mdd125
mdd126
mdd127
mdd128
mdd129
mdd13
mdd130
mdd131
mdd132
mdd133
mdd134
mdd135
mdd136
mdd137
mdd138
mdd139
mdd14
mdd140
mdd141
mdd142
mdd143
mdd144
mdd145
mdd146
mdd147
mdd148
mdd149
mdd15
mdd150
mdd151
mdd152
mdd153
mdd154
mdd155
mdd156
mdd157
mdd158
mdd159
mdd16
mdd160
mdd161
mdd162
mdd163
mdd164
mdd165
mdd166
mdd167
mdd168
mdd169
mdd17
mdd170
mdd171
mdd172
mdd173
mdd174
mdd175
mdd176
mdd177
mdd178
mdd179
mdd18
mdd180
mdd181
mdd182
mdd183
mdd184
mdd185
mdd186
mdd187
mdd188
mdd189
mdd19
mdd190
mdd191
mdd192
mdd193
mdd194
mdd195
mdd196
mdd197
mdd198
mdd199
mdd2
mdd20
mdd200
mdd201
mdd202
mdd203
mdd204
mdd205
mdd206
mdd207
mdd208
mdd209
mdd21
mdd210
mdd211
mdd212
mdd213
mdd214
mdd215
mdd216
mdd217
mdd218
mdd219
mdd22
mdd220
mdd221
mdd222
mdd223
mdd224
mdd225
mdd226
mdd227
mdd228
mdd229
mdd23
mdd230
mdd231
mdd232
mdd233
mdd234
mdd235
mdd236
mdd237
mdd238
mdd239
mdd24
mdd240
mdd241
mdd242
mdd243
mdd244
mdd245
mdd246
mdd247
mdd248
mdd249
mdd25
mdd250
mdd251
mdd252
mdd253
mdd254
mdd255
mdd26
mdd27
mdd28
mdd29
mdd3
mdd30
mdd31
mdd32
mdd33
mdd34
mdd35
mdd36
mdd37
mdd38
mdd39
mdd4
mdd40
mdd41
mdd42
mdd43
mdd44
mdd45
mdd46
mdd47
mdd48
mdd49
mdd5
mdd50
mdd51
mdd52
mdd53
mdd54
mdd55
mdd56
mdd57
mdd58
mdd59
mdd6
mdd60
mdd61
mdd62
mdd63
mdd64
mdd65
mdd66
mdd67
mdd68
mdd69
mdd7
mdd70
mdd71
mdd72
mdd73
mdd74
mdd75
mdd76
mdd77
mdd78
mdd79
mdd8
mdd80
mdd81
mdd82
mdd83
mdd84
mdd85
mdd86
mdd87
mdd88
mdd89
mdd9
mdd90
mdd91
mdd92
mdd93
mdd94
mdd95
mdd96
mdd97
mdd98
mdd99
mem
misc
mixer
null
port
psaux
ptmx
pts
pty
ptya0
ptya1
ptya2
ptya3
ptya4
ptya5
ptya6
ptya7
ptya8
ptya9
ptyaa
ptyab
ptyac
ptyad
ptyae
ptyaf
ptyb0
ptyb1
ptyb2
ptyb3
ptyb4
ptyb5
ptyb6
ptyb7
ptyb8
ptyb9
ptyba
ptybb
ptybc
ptybd
ptybe
ptybf
ptyc0
ptyc1
ptyc2
ptyc3
ptyc4
ptyc5
ptyc6
ptyc7
ptyc8
ptyc9
ptyca
ptycb
ptycc
ptycd
ptyce
ptycf
ptyd0
ptyd1
ptyd2
ptyd3
ptyd4
ptyd5
ptyd6
ptyd7
ptyd8
ptyd9
ptyda
ptydb
ptydc
ptydd
ptyde
ptydf
ptye0
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5
ptyz6
ptyz7
ptyz8
ptyz9
ptyza
ptyzb
ptyzc
ptyzd
ptyze
ptyzf
ram0
ram1
ram10
ram11
ram12
ram13
ram14
ram15
ram2
ram3
ram4
ram5
ram6
ram7
ram8
ram9
random
rd
root
rtc
scsi
shm
snd
sound
stderr
stdin
stdout
tts
tty
tty0
tty1
tty10
tty11
tty12
tty13
tty14
tty15
tty16
tty17
tty18
tty19
tty2
tty20
tty21
tty22
tty23
tty24
tty25
tty26
tty27
tty28
tty29
tty3
tty30
tty31
tty32
tty33
tty34
tty35
tty36
tty37
tty38
tty39
tty4
tty40
tty41
tty42
tty43
tty44
tty45
tty46
tty47
tty48
tty49
tty5
tty50
tty51
tty52
tty53
tty54
tty55
tty56
tty57
tty58
tty59
tty6
tty60
tty61
tty62
tty63
tty7
tty8
tty9
ttyS0
ttyS1
ttyS2
ttyS3
ttyS4
ttyS5
ttyS6
ttyS7
ttya0
ttya1
ttya2
ttya3
ttya4
ttya5
ttya6
ttya7
ttya8
ttya9
ttyaa
ttyab
ttyac
ttyad
ttyae
ttyaf
ttyb0
ttyb1
ttyb2
ttyb3
ttyb4
ttyb5
ttyb6
ttyb7
ttyb8
ttyb9
ttyba
ttybb
ttybc
ttybd
ttybe
ttybf
ttyc0
ttyc1
ttyc2
ttyc3
ttyc4
ttyc5
ttyc6
ttyc7
ttyc8
ttyc9
ttyca
ttycb
ttycc
ttycd
ttyce
ttycf
ttyd0
ttyd1
ttyd2
ttyd3
ttyd4
ttyd5
ttyd6
ttyd7
ttyd8
ttyd9
ttyda
ttydb
ttydc
ttydd
ttyde
ttydf
ttye0
ttye1
ttye2
ttye3
ttye4
ttye5
ttye6
ttye7
ttye8
ttye9
ttyea
ttyeb
ttyec
ttyed
ttyee
ttyef
ttyp0
ttyp1
ttyp2
ttyp3
ttyp4
ttyp5
ttyp6
ttyp7
ttyp8
ttyp9
ttypa
ttypb
ttypc
ttypd
ttype
ttypf
ttyq0
ttyq1
ttyq2
ttyq3
ttyq4
tt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Member
From: Parker, CO
Registered: 2005-09-21
Posts: 36
Website

Re: mounting usb devices

Huh, you have a TON of devices in there. Do you know what pty or mdd are?

Try posting the output of fdisk -l


-Connor McKay

"He is no fool who gives what he cannot keep to gain what he cannot lose" - Jim Elliot

Offline

#5 2006-03-10 20:36:47

rayjgu3
Member
From: Chicago IL usa
Registered: 2004-07-04
Posts: 692

Re: mounting usb devices

ipod should be /dev/sdX2 is where your music is , but you dont have one listed
do you auto load modules in /etc/rc.conf?

Offline

#6 2006-03-10 20:37:48

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: mounting usb devices

You are going to have to use pmount to mount your iPod as far as I can tell.  The recent udev upgrade broke automounting for me, and if I mount it under /mnt, transfers are slower than molasses running uphil on a cold day.  This is with either usb or firewire.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#7 2006-03-10 20:41:03

sinisterguy
Member
Registered: 2004-10-17
Posts: 42

Re: mounting usb devices

fdisk -l gives me this:

Disk /dev/hda: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       12263    98502516    7  HPFS/NTFS
/dev/hda2           24700       24792      747022+  82  Linux swap / Solaris
/dev/hda3           12264       24699    99892170   83  Linux

Partition table entries are not in disk order

as for the modules question, what modules must I load?

Offline

#8 2006-03-10 21:03:38

rayjgu3
Member
From: Chicago IL usa
Registered: 2004-07-04
Posts: 692

Re: mounting usb devices

lsmod see if you have (im sure you do)
ehci_hcd
usbcore

i dont believe you need any other for ipod
i dont have an ipod my nephew does ,im just going by what i remember which is /dev/sda2

Offline

#9 2006-03-10 21:18:24

sinisterguy
Member
Registered: 2004-10-17
Posts: 42

Re: mounting usb devices

i still can't mount any sdxy device it says that the device doesn't exist. if i plug in my ipod, it displays the do not disconnect logo, but it won't mount.

Offline

#10 2006-03-10 22:14:26

rayjgu3
Member
From: Chicago IL usa
Registered: 2004-07-04
Posts: 692

Re: mounting usb devices

try this post out put
udevinfo -a -p /sys/devices/pci0000:00/0000:00:10.4/usb1/1-X  <where X defines how many times you plugged & replugged device in


you may need to write a udev rule
heres what i had to do to get my mp3 player working
http://bbs.archlinux.org/viewtopic.php? … highlight=

Offline

#11 2006-03-12 02:57:50

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: mounting usb devices

Here is what I did: created a udev entry (stole one from the gentoo wiki actually) and banged together a perl script that deals with the issue.  My "coding" skills are weak at best, but it works for me - there are probably better ways to do this.  You will NOT get a nice icon on your desktop, but you'll be able to access your iPod.

Rule:

BUS=="scsi", SYSFS{vendor}=="Apple*", SYSFS{model}=="iPod*", NAME=="ipod"

Place this in a file called 00.udev.rules in /etc/udev/rules.d if you want to follow The Arch Way.

Perl Script:

#!/usr/bin/perl

if($ARGV[0] =~ /-m/){
   if(-e '/media/ipod'){die "Something is already mounted on ipodn";}
      print "Mounting iPod...n";
      system('pmount /dev/ipod ipod');
      if(-e '/media/ipod'){
         print "OK, it's mounted.n";
      }else{
         print "Uh oh, it didn't mount - something went wrong!n";
      }
}

if($ARGV[0] =~ /-u/){
   if(!-e '/media/ipod'){die "ipod isn't mountedn";}
      print "Unmounting iPod...n";
      system('pumount /media/ipod');
      if(!-e '/media/ipod'){
         print "OK, it's unmounted...n";
      }else{
         print "Uh oh, it didn't unmount - something went wrong!n";
      }
      system('eject /dev/ipod');
      print "OK, unless you see a bunch of errors, you can unplug the iPod now.n";
}

I have a much more polished version of this that includes a vCard creation tool if you have any interest.  This snippet will deal with the mounting, unmounting and ejecting though.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#12 2006-03-14 16:35:52

sinisterguy
Member
Registered: 2004-10-17
Posts: 42

Re: mounting usb devices

i ran the udevinfo command and got this:

  looking at device '/devices/pci0000:00/0000:00:10.3/usb1/1-1':
    KERNEL=="1-1"
    SUBSYSTEM==""
    SYSFS{configuration}==""
    SYSFS{serial}=="###"
    SYSFS{product}=="iPod"
    SYSFS{manufacturer}=="Apple"
    SYSFS{maxchild}=="0"
    SYSFS{version}==" 2.00"
    SYSFS{devnum}=="3"
    SYSFS{speed}=="480"
    SYSFS{bNumConfigurations}=="1"
    SYSFS{bDeviceProtocol}=="00"
    SYSFS{bDeviceSubClass}=="00"
    SYSFS{bDeviceClass}=="00"
    SYSFS{bcdDevice}=="0002"
    SYSFS{idProduct}=="1204"
    SYSFS{idVendor}=="05ac"
    SYSFS{bMaxPower}=="500mA"
    SYSFS{bmAttributes}=="c0"
    SYSFS{bConfigurationValue}=="1"
    SYSFS{bNumInterfaces}==" 1"
    SYSFS{detach_state}=="0"

  looking at device '/devices/pci0000:00/0000:00:10.3/usb1':
    ID=="usb1"
    BUS==""
    DRIVER=="usb"
    SYSFS{configuration}==""
    SYSFS{serial}=="0000:00:10.3"
    SYSFS{product}=="VIA Technologies_ Inc. USB 2.0"
    SYSFS{manufacturer}=="Linux 2.6.10-ARCH ehci_hcd"
    SYSFS{maxchild}=="6"
    SYSFS{version}==" 2.00"
    SYSFS{devnum}=="1"
    SYSFS{speed}=="480"
    SYSFS{bNumConfigurations}=="1"
    SYSFS{bDeviceProtocol}=="01"
    SYSFS{bDeviceSubClass}=="00"
    SYSFS{bDeviceClass}=="09"
    SYSFS{bcdDevice}=="0206"
    SYSFS{idProduct}=="0000"
    SYSFS{idVendor}=="0000"
    SYSFS{bMaxPower}=="  0mA"
    SYSFS{bmAttributes}=="e0"
    SYSFS{bConfigurationValue}=="1"
    SYSFS{bNumInterfaces}==" 1"
    SYSFS{detach_state}=="0"

  looking at device '/devices/pci0000:00/0000:00:10.3':
    ID=="0000:00:10.3"
    BUS==""
    DRIVER=="ehci_hcd"
    SYSFS{local_cpus}=="1"
    SYSFS{irq}=="3"
    SYSFS{class}=="0x0c0320"
    SYSFS{subsystem_device}=="0x80a1"
    SYSFS{subsystem_vendor}=="0x1043"
    SYSFS{device}=="0x3104"
    SYSFS{vendor}=="0x1106"
    SYSFS{detach_state}=="0"

  looking at device '/devices/pci0000:00':
    ID=="pci0000:00"
    BUS==""
    DRIVER==""
    SYSFS{detach_state}=="0"

i tried writing a udev rule like this for my iPod but it didn't work:

BUS=="usb", SYSFS{vendor}=="Apple*", SYSFS{serial}=="###", SYSFS{model}=="iPod*", NAME=="ipod"

Offline

#13 2006-03-14 17:01:44

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: mounting usb devices

sinisterguy wrote:

i tried writing a udev rule like this for my iPod but it didn't work:

BUS=="usb", SYSFS{vendor}=="Apple*", SYSFS{serial}=="###", SYSFS{model}=="iPod*", NAME=="ipod"

Replace the last == with =, the correct line must be

BUS=="usb", SYSFS{vendor}=="Apple*", SYSFS{serial}=="###", SYSFS{model}=="iPod*", NAME="ipod"

if it didn't work try removing the <code>SYSFS{serial}=="###",</code> section

Offline

#14 2006-03-15 02:52:07

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: mounting usb devices

Huh - that rule I posted works perfectly with "NAME=="ipod"" - I'm using a firewire port though.  However, on my Ubuntu lappy, that exact same rule works fine for its usb ports, too, though their udev is several versions behind arch's, and still (IIRC) uses usbdevfs.  I never could find a serial# on my ipod, and never had to use one anywhere - I imagine you'd only need to if you had more than one ipod, and needed each to mount differently.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#15 2006-03-15 13:59:09

sinisterguy
Member
Registered: 2004-10-17
Posts: 42

Re: mounting usb devices

I have  VIA KT400 chipset if that helps anyone. Perhaps someone with that same chipset could tell me how they got their system working?

Offline

Board footer

Powered by FluxBB