You are not logged in.

#1 2006-03-10 12:40:51

rztka
Member
From: Czech Republic
Registered: 2006-03-10
Posts: 37

gnome-volume-manager won't mount usb flash drive

When I plug my usb flash drive in, I would like to have it mounted automatically in gnome.
I searched forums and google but I'm not able to find solution sad

When I plug it in, mounting applet icon appears in panel, but if I choose "mount sony storage media" I get this error:

--
Cannot mount...
mount: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or other error
In some cases useful info is found in syslog - try dmesg | tail or so
error: cannot run pmount (guess it's something like this in english, my system speaks in czech  wink )
--

I guess I should specify the filesystem somewhere - but which file should I change?
I don't have /dev/sda1 entry in fstab because according to my friend it is not necessary - he uses the same usb drive on his computer without any problem now (BUT he had the same problem, he found some simple solution and then he completely forgot it, aaaargh  roll )
Anyway, I tried to add /dev/sda1 entry to my fstab. Another button appeared in the panel and I'm able to mount the usb drive with this one, but only manually. Moreover there are then two buttons for the same usb device which is not very ellegant...

Any idea please? I wish my friend would have a better memory wink
Thanks in advance,
Tereza

Offline

#2 2006-03-10 12:47:59

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

Re: gnome-volume-manager won't mount usb flash drive

Do you have pmount installed?

pacman -S pmount

Also hal and dbus need to be installed and running:

/etc/rc.d/dbus start
/etc/rc.d/hal start

Offline

#3 2006-03-10 12:56:22

rztka
Member
From: Czech Republic
Registered: 2006-03-10
Posts: 37

Re: gnome-volume-manager won't mount usb flash drive

hi, yes pmount installed, hal and dbus installed and running.... Sorry I forgot to say that gnome automounts CDs ok (without /dev/hdb/ being in fstab)

Offline

#4 2006-03-10 13:07:56

rztka
Member
From: Czech Republic
Registered: 2006-03-10
Posts: 37

Re: gnome-volume-manager won't mount usb flash drive

my friend remembers he had to add "auto" somewhere, specifying the filesystem... according to syslog:

[terezka@kamarad ~]$ dmesg | tail
NTFS-fs warning (device sda): is_boot_sector_ntfs(): Invalid boot sector checksum.
NTFS-fs error (device sda): read_ntfs_boot_sector(): Primary boot sector is invalid.
NTFS-fs error (device sda): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
NTFS-fs error (device sda): ntfs_fill_super(): Not an NTFS volume.
HFS+-fs: unable to find HFS+ superblock
VFS: Can't find ext3 filesystem on dev sda.
VFS: Can't find an ext2 filesystem on dev sda.
ReiserFS: sda: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on sda
XFS: bad magic number
XFS: SB validate failed
[terezka@kamarad ~]$

as I understand it can't recognize the filesystem on usb, right?

Offline

#5 2006-03-10 15:42:06

maxter
Member
Registered: 2006-03-10
Posts: 6

Re: gnome-volume-manager won't mount usb flash drive

i've got the same error.

if inserted before booting the system the usb key is mounted, but removing it and then reinserting it leads to the problem stated by rztka.

another strange thing is that gnome-volume-manager is not running...
but inserting (and removing) a cd or a usb stick shows (or remove)  the icon for the drives in the 'computer' nautilus window.
manually starting the gnome-volume-manager don't solve the problem.

further problem is that the drives icons are not showned on the desktop until a nautilus windows showing the drives content is opened.
this happened both for cd/dvd and usb stik icons

all those things let me think that could be some other software other than gnome-volume-manager managing the drives mount/umount

Offline

#6 2006-03-10 16:14:58

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

Re: gnome-volume-manager won't mount usb flash drive

Can you post a bit more output from dmesg? mine gives this when I insert my usb stick:

usb 1-5: new high speed USB device using ehci_hcd and address 3
Initializing USB Mass Storage driver...
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
  Vendor: 256MB     Model: USB2.0FlashDrive  Rev:
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sdc: 507904 512-byte hdwr sectors (260 MB)
sdc: Write Protect is off
sdc: Mode Sense: 03 00 00 00
sdc: assuming drive cache: write through
SCSI device sdc: 507904 512-byte hdwr sectors (260 MB)
sdc: Write Protect is off
sdc: Mode Sense: 03 00 00 00
sdc: assuming drive cache: write through
 sdc: sdc1
sd 3:0:0:0: Attached scsi removable disk sdc
usb-storage: device scan complete
Buffer I/O error on device sdc1, logical block 63487
Buffer I/O error on device sdc1, logical block 63487
Buffer I/O error on device sdc1, logical block 63487
Buffer I/O error on device sdc1, logical block 63487
Buffer I/O error on device sdc1, logical block 63487
Buffer I/O error on device sdc1, logical block 63487
Buffer I/O error on device sdc1, logical block 63486
Buffer I/O error on device sdc1, logical block 63486
Buffer I/O error on device sdc1, logical block 63486

(yeah, I think there are some errors on my stick, but I don't know how to correct them)

so it needs ehci_hcd for loading:
can you post "lsmod | grep usbcore" ?
mine is:

usbcore               121604  5 usb_storage,usbhid,ohci_hcd,ehci_hcd

Offline

#7 2006-03-10 16:17:09

rztka
Member
From: Czech Republic
Registered: 2006-03-10
Posts: 37

Re: gnome-volume-manager won't mount usb flash drive

I think gnome-volume-manager is the thing which manage automounting of devices in gnome.
Strange thing is that with cd/dvd drive it works for me (icon appears on desktop), but with usb drive it doesn't.
I tried to run g-v-s in terminal and then plug the usb drive. this is what i got:

[terezka@kamarad ~]$ gnome-volume-manager
manager.c/432: setting[0]: bool: autobrowse = 0
manager.c/432: setting[1]: bool: autoburn = 0
manager.c/427: setting[2]: string: autoburn_audio_cd_command = nautilus --no-des ktop burn:
manager.c/427: setting[3]: string: autoburn_photo_cd_command = nautilus --no-des ktop burn:
manager.c/427: setting[4]: string: autoburn_data_cd_command = nautilus --no-desk top burn:
manager.c/432: setting[5]: bool: autoipod = 0
manager.c/427: setting[6]: string: autoipod_command =
manager.c/432: setting[7]: bool: automount_drives = 0
manager.c/432: setting[8]: bool: automount_media = 0
manager.c/432: setting[9]: bool: autophoto = 0
manager.c/427: setting[10]: string: autophoto_command =
manager.c/432: setting[11]: bool: autoplay_cda = 1
manager.c/427: setting[12]: string: autoplay_cda_command = totem %d
manager.c/432: setting[13]: bool: autoplay_dvd = 1
manager.c/427: setting[14]: string: autoplay_dvd_command = totem %d
manager.c/432: setting[15]: bool: autoplay_vcd = 1
manager.c/427: setting[16]: string: autoplay_vcd_command = totem %d
manager.c/432: setting[17]: bool: autoprinter = 1
manager.c/427: setting[18]: string: autoprinter_command = gnome-printer-add hal: //%h
manager.c/432: setting[19]: bool: autorun = 0
manager.c/427: setting[20]: string: autorun_path = .autorun:autorun:autorun.sh
manager.c/427: setting[21]: string: eject_command = /usr/bin/eject
manager.c/1290: New Device: /org/freedesktop/Hal/devices/usb_device_54c_19d_B804081100084
manager.c/1290: New Device: /org/freedesktop/Hal/devices/usb_device_54c_19d_B804081100084_if0
manager.c/1290: New Device: /org/freedesktop/Hal/devices/usb_device_54c_19d_B804081100084_if0_scsi_host
manager.c/1290: New Device: /org/freedesktop/Hal/devices/usb_device_54c_19d_B804081100084_usbraw
manager.c/1290: New Device: /org/freedesktop/Hal/devices/usb_device_54c_19d_B804081100084_if0_scsi_host_scsi_device_lun0
manager.c/1290: New Device: /org/freedesktop/Hal/devices/storage_model_Storage_Media
manager.c/1296: not a mountable volume: /org/freedesktop/Hal/devices/storage_model_Storage_Media
manager.c/1326: Changed: /dev/sda
manager.c/1290: New Device: /org/freedesktop/Hal/devices/usb_device_54c_19d_B804081100084_if0_scsi_host_scsi_device_lun0_scsi_generic

It won't say much to me.. but maybe someone more experienced could tell where the problem is wink

cheers
tereza

Offline

#8 2006-03-10 16:19:20

rztka
Member
From: Czech Republic
Registered: 2006-03-10
Posts: 37

Re: gnome-volume-manager won't mount usb flash drive

usbcore               100484  5 usb_storage,usbhid,ehci_hcd,uhci_hcd

Offline

#9 2006-03-10 16:26:27

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

Re: gnome-volume-manager won't mount usb flash drive

hmm, can't help you anymore rztka, I have no idea sad
I also think gnome-volume-manager isn't that good, it gives me an error when I unmount my usb stick (that he can't eject it, seems quite logical to me), and k3b can't get a dvd+rw unmounted when I want to write on it, and using gnome-volume-manager I can only eject it, not unmount. So I have to change to root to umount my cd to burn on it sad

Maybe anyone knows a replacement?

Offline

#10 2006-03-10 17:01:55

maxter
Member
Registered: 2006-03-10
Posts: 6

Re: gnome-volume-manager won't mount usb flash drive

gnome-volume-manager is a great piece of software..

it works really fine on debian, with no problem (at least in stable and testing... using unstable, obviously can raise some problems ;-) )

furthermore it is really strange that gnome-volume-manager is not loaded at gnome startup

anyway... this bug seems very common..

i found this report on the bug traker:

http://bugs.archlinux.org/task/3336

anyway... we can manually mount the drives with pmount, waiting for a solution :-)

Offline

#11 2006-03-10 21:30:46

rztka
Member
From: Czech Republic
Registered: 2006-03-10
Posts: 37

Re: gnome-volume-manager won't mount usb flash drive

so finally I upgraded pmount and udev from testing and some progress can be seen... thus it seems g-v-m was not the cause (I agree it is a very useful software, I got used to it while I was using suse and I don't want to lose it)

now when I plug usb drive in, usb icon shows on the desktop and i can browse the files. great!

only a small problem persists (which shows that not everything might be set up right): the icon says "removable volume" first it is mounted. then when I unmount it, the icon disappears from the desktop, naturally, but applet button stays in the panel saying "Sony storage media" now and I can't mount by clicking on it. I have to unplug/plug the stick and then it's "removable volume" again, with the icon on desktop... I don't know why... but it's not very important issue since I ussualy unmount the usb stick because I want to pull it out wink

I don't know which of those two upgades has caused the change, give it a try. I hope it will help you.

cheers and thanks for help,
t.

Offline

Board footer

Powered by FluxBB