You are not logged in.

#1 2008-05-07 23:18:07

Bapman
Member
From: Ottawa, Canada
Registered: 2007-09-02
Posts: 140

[solved] Yet Another Automounting Problem (Sony Walkman)

Hi,

I have a problem with my Sony Walkman USB device. It doesn't automount anymore whereas it could before. I suspect the upgrade of gnome-mount to be responsible for that, but downgrade would force me to downgrade many dependencies...
So I first tried the solutions given in the HAL page of the wiki, none helped. I also tried to deactive Gnome Volume Manager in System->Sessions, no result...

I also noticed errors with dmesg, making me wonder that gnome-mount is maybe not guilty :

usb 4-1: new high speed USB device using ehci_hcd and address 7
usb 4-1: configuration #1 chosen from 1 choice
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
scsi 7:0:0:0: Direct-Access     SONY     WALKMAN          1.10 PQ: 0 ANSI: 0 CCS
ready
sd 7:0:0:0: [sdb] 3829760 2048-byte hardware sectors (7843 MB)
sd 7:0:0:0: [sdb] Write Protect is off
sd 7:0:0:0: [sdb] Mode Sense: 00 2a 00 00
sd 7:0:0:0: [sdb] Assuming drive cache: write through
sd 7:0:0:0: [sdb] 3829760 2048-byte hardware sectors (7843 MB)
sd 7:0:0:0: [sdb] Write Protect is off
sd 7:0:0:0: [sdb] Mode Sense: 00 2a 00 00
sd 7:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
 sdb: p1 exceeds device capacity
sd 7:0:0:0: [sdb] Attached SCSI removable disk
sd 7:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
attempt to access beyond end of device
sdb: rw=0, want=4294967044, limit=15319040
printk: 11 messages suppressed.
Buffer I/O error on device sdb1, logical block 1073741760
attempt to access beyond end of device
sdb: rw=0, want=4294967048, limit=15319040
Buffer I/O error on device sdb1, logical block 1073741761
attempt to access beyond end of device
sdb: rw=0, want=4294967044, limit=15319040
Buffer I/O error on device sdb1, logical block 1073741760
attempt to access beyond end of device
sdb: rw=0, want=4294967048, limit=15319040
Buffer I/O error on device sdb1, logical block 1073741761
attempt to access beyond end of device
sdb: rw=0, want=4294967276, limit=15319040
Buffer I/O error on device sdb1, logical block 1073741818
attempt to access beyond end of device
sdb: rw=0, want=4294967280, limit=15319040
Buffer I/O error on device sdb1, logical block 1073741819
attempt to access beyond end of device
sdb: rw=0, want=4294967276, limit=15319040
Buffer I/O error on device sdb1, logical block 1073741818
attempt to access beyond end of device
sdb: rw=0, want=4294967280, limit=15319040
Buffer I/O error on device sdb1, logical block 1073741819
attempt to access beyond end of device
sdb: rw=0, want=4294967292, limit=15319040
Buffer I/O error on device sdb1, logical block 1073741822
attempt to access beyond end of device
sdb: rw=0, want=4294967292, limit=15319040
Buffer I/O error on device sdb1, logical block 1073741822
attempt to access beyond end of device
sdb: rw=0, want=4294967292, limit=15319040
attempt to access beyond end of device
sdb: rw=0, want=4294967292, limit=15319040
attempt to access beyond end of device
sdb: rw=0, want=4294967292, limit=15319040
attempt to access beyond end of device
sdb: rw=0, want=4294967292, limit=15319040
attempt to access beyond end of device
sdb: rw=0, want=4294967292, limit=15319040
attempt to access beyond end of device
sdb: rw=0, want=4294967228, limit=15319040
attempt to access beyond end of device
sdb: rw=0, want=4294967232, limit=15319040
attempt to access beyond end of device
sdb: rw=0, want=4294967284, limit=15319040
attempt to access beyond end of device
sdb: rw=0, want=4294967288, limit=15319040
attempt to access beyond end of device
sdb: rw=0, want=4294967292, limit=15319040
attempt to access beyond end of device
sdb: rw=0, want=4294967292, limit=15319040

Manual mounting still works though...

Last edited by Bapman (2008-06-11 16:49:50)

Offline

#2 2008-05-08 19:04:07

Bapman
Member
From: Ottawa, Canada
Registered: 2007-09-02
Posts: 140

Re: [solved] Yet Another Automounting Problem (Sony Walkman)

Seeing the output of dmesg, I decided to perform a fsck check (BTW I had to install dosfstools to get fsck.vfat, it is not installed by default).
I get no error so I definitely not understand those errors...

Offline

#3 2008-05-09 00:59:58

koch
Member
From: Germany
Registered: 2008-01-26
Posts: 369

Re: [solved] Yet Another Automounting Problem (Sony Walkman)

hi, i also have problems with my sony walkman.
manual mounting works.

usb 1-8: new high speed USB device using ehci_hcd and address 5
usb 1-8: configuration #1 chosen from 1 choice
scsi5 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
scsi 5:0:0:0: Direct-Access     SONY     WALKMAN          1.00 PQ: 0 ANSI: 0 CCS
ready
sd 5:0:0:0: [sdd] 899072 2048-byte hardware sectors (1841 MB)
sd 5:0:0:0: [sdd] Write Protect is off
sd 5:0:0:0: [sdd] Mode Sense: 00 2a 00 00
sd 5:0:0:0: [sdd] Assuming drive cache: write through
sd 5:0:0:0: [sdd] 899072 2048-byte hardware sectors (1841 MB)
sd 5:0:0:0: [sdd] Write Protect is off
sd 5:0:0:0: [sdd] Mode Sense: 00 2a 00 00
sd 5:0:0:0: [sdd] Assuming drive cache: write through
 sdd: sdd1
 sdd: p1 exceeds device capacity
sd 5:0:0:0: [sdd] Attached SCSI removable disk
sd 5:0:0:0: Attached scsi generic sg5 type 0
usb-storage: device scan complete
attempt to access beyond end of device
sdd: rw=0, want=4294967044, limit=3596288
Buffer I/O error on device sdd1, logical block 1073741760
attempt to access beyond end of device
sdd: rw=0, want=4294967048, limit=3596288
Buffer I/O error on device sdd1, logical block 1073741761
attempt to access beyond end of device
sdd: rw=0, want=4294967044, limit=3596288
Buffer I/O error on device sdd1, logical block 1073741760
attempt to access beyond end of device
sdd: rw=0, want=4294967048, limit=3596288
Buffer I/O error on device sdd1, logical block 1073741761
attempt to access beyond end of device
sdd: rw=0, want=4294967276, limit=3596288
Buffer I/O error on device sdd1, logical block 1073741818
attempt to access beyond end of device
sdd: rw=0, want=4294967280, limit=3596288
Buffer I/O error on device sdd1, logical block 1073741819
attempt to access beyond end of device
sdd: rw=0, want=4294967276, limit=3596288
Buffer I/O error on device sdd1, logical block 1073741818
attempt to access beyond end of device
sdd: rw=0, want=4294967280, limit=3596288
Buffer I/O error on device sdd1, logical block 1073741819
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
Buffer I/O error on device sdd1, logical block 1073741822
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
Buffer I/O error on device sdd1, logical block 1073741822
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967228, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967232, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967284, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967288, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967044, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967048, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967044, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967048, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967276, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967280, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967276, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967280, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967228, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967232, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967284, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967288, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288
attempt to access beyond end of device
sdd: rw=0, want=4294967292, limit=3596288

Offline

#4 2008-05-09 01:47:28

Bapman
Member
From: Ottawa, Canada
Registered: 2007-09-02
Posts: 140

Re: [solved] Yet Another Automounting Problem (Sony Walkman)

What is surprising is that I am sure it was working 2 weeks ago... Has it worked for you ?

Last edited by Bapman (2008-05-09 16:22:51)

Offline

#5 2008-05-09 11:24:43

koch
Member
From: Germany
Registered: 2008-01-26
Posts: 369

Re: [solved] Yet Another Automounting Problem (Sony Walkman)

yes, it did but i can't say when it stopped exactly because the last time i wanted to put some new music on it it didn't work and before that i didn't change the music for quiet a while.
as far as i remember the first time i had to  mount it manually could be slightly more than 2 weeks ago and the last working automount...ermmm, i can't say if it were 6 or 8 weeks.
i didn't use it very much in this time.
i also changed some stuff in this time. i used to use kde and compiz but changed to openbox and some gnome/gtk-stuff.
i am still a noob so first i thought it could be related to this changes in one way or another. hmm

Offline

#6 2008-05-09 16:24:28

Bapman
Member
From: Ottawa, Canada
Registered: 2007-09-02
Posts: 140

Re: [solved] Yet Another Automounting Problem (Sony Walkman)

I haven't made any change except for new upgrades (still running Gnome). I will try to see if gnome-mount is playing a role in this...

Offline

#7 2008-05-09 17:40:31

koch
Member
From: Germany
Registered: 2008-01-26
Posts: 369

Re: [solved] Yet Another Automounting Problem (Sony Walkman)

here it is not only gnome. it also doesn't work in kde anymore.
konqueror showed the icon with correct name (sony walkman) but now...nothing, no mounting, no icon.

what does your walkman show in its display? mine tells me "connecting".

Last edited by koch (2008-05-09 17:41:05)

Offline

#8 2008-05-09 21:21:21

Bapman
Member
From: Ottawa, Canada
Registered: 2007-09-02
Posts: 140

Re: [solved] Yet Another Automounting Problem (Sony Walkman)

Yep it just tells "connecting" but I think it was like this even when it worked. Walkmans don't talk much... hmm

Indeed, if it has worked with KDE and now it doesn't, it's not Gnome's fault ! But I don't see which upgrade could have affected us...

Last edited by Bapman (2008-05-09 21:23:18)

Offline

#9 2008-05-09 22:11:55

koch
Member
From: Germany
Registered: 2008-01-26
Posts: 369

Re: [solved] Yet Another Automounting Problem (Sony Walkman)

http://ubuntuforums.org/showthread.php?t=763748

https://bugs.launchpad.net/ubuntu/+sour … bug/209483

http://www.google.de/search?q=sony+walk … =firefox-a

did you try the pmount-solution? i think i forgot to try it, oops...

EDIT:

i can mount it with pmount as user big_smile but i can't unmount it (device busy), also root can't but i just unplugged it and everything was fine.
yeah, it is the hard way but it worked.

Last edited by koch (2008-05-09 22:26:44)

Offline

#10 2008-05-09 22:38:47

Bapman
Member
From: Ottawa, Canada
Registered: 2007-09-02
Posts: 140

Re: [solved] Yet Another Automounting Problem (Sony Walkman)

Good job, I will look into that ! I was pretty sure it was Arch related... so wrong !

edit : pumount works for me !

edit2 : manual mounting was already working but now we know it is a bug that is going to be fixed. That's what is really good wink.

Last edited by Bapman (2008-05-09 22:54:41)

Offline

#11 2008-05-09 22:54:03

koch
Member
From: Germany
Registered: 2008-01-26
Posts: 369

Re: [solved] Yet Another Automounting Problem (Sony Walkman)

the pmount-stuff is here...

http://wiki.archlinux.org/index.php/HAL

but as i said after i tried the rest some time ago i was tired and went to bed. i wanted to try pmount the next day and forgot, damn.
when i saw it in the link i remembered that i installed it but didn't try it.

so the first part is done, the rest will follow big_smile

edit: it works? great!

edit2: now it works for me too! yeahhhh!

edit3: think i have a beer now tongue

Last edited by koch (2008-05-09 23:03:59)

Offline

#12 2008-05-10 00:48:20

Bapman
Member
From: Ottawa, Canada
Registered: 2007-09-02
Posts: 140

Re: [solved] Yet Another Automounting Problem (Sony Walkman)

Yeah me too, cheers ! wink

Offline

#13 2008-06-08 22:44:00

Bapman
Member
From: Ottawa, Canada
Registered: 2007-09-02
Posts: 140

Re: [solved] Yet Another Automounting Problem (Sony Walkman)

There is information to recompile hal package and make it work with Sony Walkman in the link that koch gave : https://bugs.launchpad.net/ubuntu/+sour … bug/209483

According to the comment by Gordon Mckeown, I successfully made it work with this PKGBUILD :

# $Id: PKGBUILD 2155 2008-05-27 14:47:46Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Link Dupont <link@subpop.net>

pkgname=hal
pkgver=0.5.11
pkgrel=1
pkgdesc="Hardware Abstraction Layer"
arch=(i686 x86_64)
license=('GPL' 'custom')
url="http://www.freedesktop.org/wiki/Software/hal"
depends=('dbus-glib>=0.74' 'dbus>=1.2.1' 'libusb>=0.1.12' 'udev>=118' 'filesystem>=0.7.1-5' 'hal-info>=0.20080508' 'eject' 'libsmbios>=2.0.2' 'dmidecode' 'pciutils>=2.2.8-3' 'usbutils>=0.73-5' 'pm-utils>=1.1.2')
makedepends=('pkgconfig' 'gperf')
options=('!libtool')
install=hal.install
source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.bz2
    hal
    hal-policy.patch
    cryptsetup_location.patch
    hal-0.5.9-hide-diagnostic.patch
    ntfs3g-valid-options.patch)
md5sums=('5e8935ab61bcb14afd2d4548084aace0'
         '277e96ac130d7bfce0b30f0b80db8782'
         '18dcdaa79952e2057c2e4745fbc8ad52'
         'c688a3c6574699365926f4fef7441545'
         '4d4b6801a1cedca22b8bdd9db73b16fb'
         '4242a2c78885e396f639d0cd5e33218c')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}
  patch -Np1 -i ${startdir}/src/hal-policy.patch || return 1
  patch -Np1 -i ${startdir}/src/cryptsetup_location.patch || return 1
  patch -Np1 -i ${startdir}/src/hal-0.5.9-hide-diagnostic.patch || return 1
  patch -Np0 -i ${startdir}/src/ntfs3g-valid-options.patch || return 1

# modifications to get Sony Walkman working
  sed -i '255s/strtoll/strtoul/' hald/util.c
  sed -i '1439s/_set_int_/_set_uint64_/' hald/linux/blockdev.c

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
              --libexecdir=/usr/lib/hal --enable-static=no \
          --enable-acpi-ibm --enable-acpi-toshiba \
              --disable-docbook-docs --disable-doxygen-docs \
          --with-hal-user=hal --with-hal-group=hal \
          --with-pid-file=/var/run/hald.pid \
          --enable-policy-kit=no || return 1
  sed -e 's/device-manager//' -i tools/Makefile || return 1
  make || return 1
  make DESTDIR=${startdir}/pkg install || return 1
  install -m755 -d ${startdir}/pkg/etc/rc.d
  install -m755 -d ${startdir}/pkg/media || return 1
  install -m 755 ${startdir}/src/hal ${startdir}/pkg/etc/rc.d/hal || return 1

  install -m755 -d ${startdir}/pkg/usr/share/licenses/${pkgname}
  install -m644 COPYING ${startdir}/pkg/usr/share/licenses/${pkgname}/ || return 1
}

If you don't want to build it, here is the package for i686. Install it with "pacman -U the_package.pkg.tar.gz".
Remember you install it at your own risks !!! Those changes in source code have not been submitted by HAL programmers.

Finally, if you want it to work under Rythmbox or others, you need to provide a description file. Here is an example for A728 :

<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">
  <device>
    <match key="info.category" string="storage">
      <!-- USB Mass Storage devices that are music players -->     
      <match key="@storage.originating_device:info.subsystem" string="usb">
        <!-- Sony -->
        <match key="@storage.originating_device:usb.vendor_id" int="0x54c"> 
          <!-- Sony Network Walkman NWZ-A728 -->
          <match key="@storage.originating_device:usb.product_id" int="0x35c">
            <addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
            <append key="portable_audio_player.output_formats" type="strlist">audio/mpeg</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/aac</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
            <append key="portable_audio_player.audio_folders" type="strlist">MUSIC/</append>
            <merge key="portable_audio_player.access_method" type="string">storage</merge>
            <merge key="portable_audio_player.type" type="string">generic</merge>
            <merge key="portable_audio_player.storage_device" type="copy_property">info.udi</merge>
            <append key="info.capabilities" type="strlist">portable_audio_player</append>
            <merge key="info.category" type="string">portable_audio_player</merge>
          </match>
        </match>
      </match>
    </match>
  </device>
</deviceinfo>

You may want to change product_id and vendor_id to fit your Sony product, you can find it with "lsusb" (vendor_id:product_id).

Change the name of the file according to your Sony product. For example the file described above should be named 20-sony-a728.fdi

Then put it in /etc/hal/fdi/information.

Restart HAL.

Have a beer or two to celebrate.

Last edited by Bapman (2008-06-08 22:53:59)

Offline

#14 2008-06-09 00:17:58

koch
Member
From: Germany
Registered: 2008-01-26
Posts: 369

Re: [solved] Yet Another Automounting Problem (Sony Walkman)

thanks for the email. will check it on tuesday.

Offline

Board footer

Powered by FluxBB