You are not logged in.

#1 2012-02-02 15:37:54

pYrO1v1aniac
Member
Registered: 2011-11-03
Posts: 51

[SOLVED] Removable devices and media will not automatically mount

Hi all

I've been wrestling with this issue for months now, and nothing in the wiki seems to help.

I'm running arch with a Gnome 3 desktop environment. According to the wiki, with Udev up and running, Gnome should automatically detect and mount removable media, but the only entry under 'computer' is the filesystem.

I am a member of 'storage'
I've tried udisks, udiskie, devmon all to no avail

The ONLY way anything shows up is to mount manually (in which case, it appears in nautilus, but can't be 'ejected' and when unmounted, doesn't disappear), or else have it plugged in during boot. No devices will hotplug, no disks are being recognized, and I'm at my wits end reading man pages and wiki pages, when absolutely nothing seems to work.

Does anybody have any suggestions?

Dmesg shows this when I plug in a removable device.

[ 4380.592312] usb 2-1.2: new high-speed USB device number 4 using ehci_hcd
[ 4380.680437] usb-storage 2-1.2:1.0: Quirks match for vid 152d pid 2329: 8020
[ 4380.680499] scsi7 : usb-storage 2-1.2:1.0
[ 4381.679075] scsi 7:0:0:0: Direct-Access     SAMSUNG  HM320HJ               PQ: 0 ANSI: 2 CCS
[ 4381.680032] sd 7:0:0:0: [sdb] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[ 4381.681911] sd 7:0:0:0: [sdb] Write Protect is off
[ 4381.681921] sd 7:0:0:0: [sdb] Mode Sense: 28 00 00 00
[ 4381.682764] sd 7:0:0:0: [sdb] No Caching mode page present
[ 4381.682774] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 4381.685263] sd 7:0:0:0: [sdb] No Caching mode page present
[ 4381.685272] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 4381.703286]  sdb: sdb1
[ 4381.706169] sd 7:0:0:0: [sdb] No Caching mode page present
[ 4381.706177] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 4381.706183] sd 7:0:0:0: [sdb] Attached SCSI disk

Last edited by pYrO1v1aniac (2012-02-09 13:40:20)

Offline

#2 2012-02-02 16:37:37

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: [SOLVED] Removable devices and media will not automatically mount

Do you log in to sessions with gdm? What filesystem is on the removable media?

Offline

#3 2012-02-02 17:44:07

pYrO1v1aniac
Member
Registered: 2011-11-03
Posts: 51

Re: [SOLVED] Removable devices and media will not automatically mount

I have it set to automatically log in, but GDM is the login option if I log out.

Also, no removable media, regardless of type (even optical media) will mount.

Offline

#4 2012-02-02 22:57:53

williamkray
Member
Registered: 2010-11-06
Posts: 64

Re: [SOLVED] Removable devices and media will not automatically mount

i had issues like this before, but i wasn't using gdm, i started x with xinit.

try reinstalling GDM, or keep the system from starting x automatically, and start it using the following command:

[user@computer ~] $ xinit /usr/bin/ck-launch-session /usr/bin/gnome-session

if that works, then your issues are that console-kit was not loading properly.  i'm not sure if you can launch console-kit before GDM or not, but you might have to find a workaround or something.  if that doesn't help, then i don't have the answer.

Offline

#5 2012-02-02 23:09:23

defears
Member
Registered: 2010-07-26
Posts: 218

Re: [SOLVED] Removable devices and media will not automatically mount

What does this say?

ck-list-sessions

Offline

#6 2012-02-04 12:53:41

pYrO1v1aniac
Member
Registered: 2011-11-03
Posts: 51

Re: [SOLVED] Removable devices and media will not automatically mount

Session1:
    unix-user = '1000'
    realname = 'MY NAME'
    seat = 'Seat1'
    session-type = ''
    active = TRUE
    x11-display = ':0'
    x11-display-device = '/dev/tty7'
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2012-02-04T10:08:53.380255Z'
    login-session-id = '1'

Offline

#7 2012-02-06 21:44:15

pYrO1v1aniac
Member
Registered: 2011-11-03
Posts: 51

Re: [SOLVED] Removable devices and media will not automatically mount

Bump, can anybody else help?

Offline

#8 2012-02-06 22:20:22

defears
Member
Registered: 2010-07-26
Posts: 218

Re: [SOLVED] Removable devices and media will not automatically mount

I don't know if this is relevant or not but, you don't have anything for a "display device" like a tty. I'm thinking consolekit is starting from something before gdm and then breaking consolekit. Ironically, gnome with gdm has never given me any issues which makes me believe you should uninstall all the helpers like devmon and udiskie because they are not needed for gnome. Just make sure you still have consolekit, polkit-gnome and udev installed or just install all of "gnome" again just to make sure and reboot. And undo whatever way you auto login.

I have one computer I try new programs with and I always have this problem trying diffrent DE and such going from xinitrc to gdm to kdm to slim.

Offline

#9 2012-02-07 12:39:52

pYrO1v1aniac
Member
Registered: 2011-11-03
Posts: 51

Re: [SOLVED] Removable devices and media will not automatically mount

Ok, I'll give that a shot! Thanks

Offline

#10 2012-02-07 17:18:34

pYrO1v1aniac
Member
Registered: 2011-11-03
Posts: 51

Re: [SOLVED] Removable devices and media will not automatically mount

OK, I messed around with /etc/inittab (I had it going straight to runlevel 5 to start X straight away, set it back to 3, added GDM to daemons).

Removable drive seems to be recognized and is at least mounting. But optical media isn't happening, nor can I eject the drive in Gnome (X is not in Fstab (and you are not root)), and it's not giving me the correct notifications (drive detected, etc), so something is still wrong.

Offline

#11 2012-02-07 22:03:21

defears
Member
Registered: 2010-07-26
Posts: 218

Re: [SOLVED] Removable devices and media will not automatically mount

Are you in the optical group? Or maybe https://wiki.archlinux.org/index.php/Ud … ve_support.

Offline

#12 2012-02-08 11:43:58

pYrO1v1aniac
Member
Registered: 2011-11-03
Posts: 51

Re: [SOLVED] Removable devices and media will not automatically mount

I am, yes.

It turns out the USB drive mounting was the result of an old stray Udev rule I tried from a while back. Having made some changes, that rule worked, but this is not a solution, as I can't unmount the drive from within gnome, and Optical media doesn't work, so we're back to square 1 (except at least now udev rules will work).

The goal here is to get gnome to automatically recognize removable media and CD drives, as it ought to.

I've done some tinkering, and I'm apparently automatically logging into the system through GDM in the daemons list in rc.conf . I've removed .xinitrc files from anywhere they were present.

All in all I'd say we're back to square 1.

Offline

#13 2012-02-09 13:39:09

pYrO1v1aniac
Member
Registered: 2011-11-03
Posts: 51

Re: [SOLVED] Removable devices and media will not automatically mount

I fixed it, this was a real tough one.

Turns out it was due to a bug in libgdu

Gnome disk utility wasn't launching due to the same bug, and when I searched for that, I found this.

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

Which led me to this

http://leisurehours.wordpress.com/2010/ … r-problem/

Libgdu doesn't work properly if your partition table entries are different than the order they appear on the disk, which causes removable drives not to mount properly, in addition to a host of other problems. I followed the instructions on that page, and sure enough it re-ordered my disk definitions.

WARNING**** If you follow these instructions, grub's menu.lst will break. Have a liveCD handy to repair it.

Offline

Board footer

Powered by FluxBB