LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-14-2006, 08:04 PM   #1
fannymites
Member
 
Registered: Nov 2004
Posts: 242

Rep: Reputation: 30
usb device on desktop?


I'm running gnome on debian sid and I can't get usb removable storage devices to autorun or an icon appear on the desktop.
It's the one remaining thing I haven't managed to get working.
The devices are a usb digital camera and mp3 player. In other distros they automatically appear on the desktop when plugged in which is mainly what I'm after and are mounted as removable storage devices but it's no go on debian.
I can manually mount both devices and browse, copy from and copy to them as a regular user but just can't get this automount thing working.
I'm setting debian up as an ubuntu replacement but the missus won't use it if she has to type commands to get things working.
 
Old 03-14-2006, 08:41 PM   #2
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
apt-get install pmount gnome-volume-manager
restart X
 
Old 03-15-2006, 12:29 AM   #3
fannymites
Member
 
Registered: Nov 2004
Posts: 242

Original Poster
Rep: Reputation: 30
Both already installed. Tried dpkg-reconfigure-ing them tried removing them as well as hal and other related stuff then re-installing them all but still not getting anywhere.
 
Old 03-15-2006, 12:36 AM   #4
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
Do you have it enabled?
Desktop->Preferences->Removable Drives and Media
 
Old 03-15-2006, 01:33 AM   #5
fannymites
Member
 
Registered: Nov 2004
Posts: 242

Original Poster
Rep: Reputation: 30
Yes but I've noticed that if I check auto-run programs on new drives and media, it won't stay checked. However, if I mount the mp3 player manually, nautilus automatically opens and if I mount the camera, gthumb automatically opens and I get icons on the desktop so it knows what to do with the devices when they are mounted, it's just getting them to automatically mount when plugged in without any user input.
Also, everything is checked in Gconf-editor>desktop>gnome>volume_manager and gconf-editor>apps>nautilus>desktop>volumes_visible is checked
 
Old 03-15-2006, 08:35 AM   #6
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
Are you running Sid current? I had this issue a month or so ago, but it has been fixed in an apt-get upgrade
 
Old 03-15-2006, 10:10 AM   #7
fannymites
Member
 
Registered: Nov 2004
Posts: 242

Original Poster
Rep: Reputation: 30
Yes I have updated today and no change, though I did notice that udev and initramfs-tools (I think it was called) gave an error during the update. I can't remember exactly what it was but it was something like "initrd has been changed - unable to update"
I'll try to provide more info when I get back to my comp.

I forgot to mention that both devices automount/autorun and put an icon on the desktop in kde, the problem is only with gnome.
 
Old 03-15-2006, 10:25 AM   #8
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
Unless you have some done something special to it, rename it and run dpkg-reconfigure linux-image-`uname -r`
 
Old 03-15-2006, 02:45 PM   #9
fannymites
Member
 
Registered: Nov 2004
Posts: 242

Original Poster
Rep: Reputation: 30
I have tried that and get no errors at all but if I do dpkg-reconfigure udev or initramfs-tools I get the same message.
Other than this problem everything is running very well, no problems at all so I don't know what this error could mean.

I booted into ubuntu dapper to try comparing what was and wasn't installed and the only things I've noticed that are different is that on dapper, my user is added to the plugdev group (I haven't touched groups at all so this is how it was setup during install) but it isn't in debian. Also, under Menubar>System>Preferences>Sessions>startup programs dapper has the entry "gnome-volume-manager --sm-disable" which isn't in debian. Should I be manually running gnome-volume-manager and what does the "--sm disable" switch do? It never crossed my mind to actually try running it manually.
I'm not gonna get the chance to try these out til later but maybe it'll get sorted.
 
Old 03-15-2006, 02:55 PM   #10
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
You renamed you initrd and ran dpkg-reconfigure linux-image-`uname -r`?
 
Old 03-15-2006, 04:11 PM   #11
fannymites
Member
 
Registered: Nov 2004
Posts: 242

Original Poster
Rep: Reputation: 30
Sorry, I didn't read your last post properly.
So I renamed the initrd and ran dpkg-reconfigure linux-image-2.6.15-1-k7 and this is the output -
Code:
Running depmod.
Finding valid ramdisk creators.
Using /usr/sbin/mkinitrd.yaird to build the ramdisk.
Running postinst hook /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.list file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.15-1-k7
Updating /boot/grub/menu.lst ... done
I then did dpkg-reconfigure udev and this is the error I mentioned -
Code:
/boot/initrd.img-2.6.15-1-k7 has been altered.  Cannot update.
I then renamed it again and did dpkg-reconfigure linux-image-'uname -r' and got this
Code:
Running depmod.
Finding valid ramdisk creators.
Using /usr/sbin/mkinitrd.yaird to build the ramdisk.
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.15-8 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.15-8 was configured last, according to dpkg)
Running postinst hook /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.list file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.15-1-k7
Updating /boot/grub/menu.lst ... done
So there's something wrong but I don't know what.

Regarding my usb devices - adding my user to plugdev results in all my partitions being automatically mounted, which I don't want so I removed my user and added hal to plugdev instead. Now, the devices auto mount and an icon appears on the desktop but when I try to unmount them it says /dev/sda is not in fstab but if I add it to fstab the it says /dev/sda is already mounted.

Last edited by fannymites; 03-15-2006 at 04:14 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
Failed to open device /dev/usb/ttyUSB0: No such device efm Linux - Newbie 2 04-04-2005 08:46 PM
Assign one USB-storage device to one device file Misel Linux - Hardware 1 08-28-2004 03:52 AM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 03:22 PM
how can I mount this device: da0: <USB 2.0 Storage Device alkad_mzu *BSD 2 11-15-2003 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration