public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] Auto-mount USB device
@ 2006-10-12  2:24 Stephen Liu
  2006-10-12  8:04 ` Neil Bothwick
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Liu @ 2006-10-12  2:24 UTC (permalink / raw
  To: gentoo-user

Hi Iain,

Sorry, previously I made a mistake running;
# mount /dev/sdb1 /media/disk

It should be 
 # mount /dev/sda1 /media/

The USB enclosure can still be mounted.  They are there.


- snip -

> Now that you kind-of have things happening, what does /var/log/messages
> show when you plug in a usb disk?

After plugin the device,

# cat /var/log/messages
...
Oct 12 17:58:03 localhost dhcpcd[5297]: timed out waiting for a valid DHCP server response
Oct 12 17:58:03 localhost cron[5468]: (CRON) STARTUP (V5.0)
Oct 12 17:59:27 localhost (root-5389): GConf server is not in use, shutting down.
Oct 12 17:59:27 localhost (root-5389): Exiting
Oct 12 17:59:56 localhost usb 1-4: new high speed USB device using ehci_hcd and address 3
Oct 12 17:59:56 localhost usb 1-4: configuration #1 chosen from 1 choice
Oct 12 17:59:56 localhost scsi2 : SCSI emulation for USB Mass Storage devices
Oct 12 17:59:56 localhost usb-storage: device found at 3
Oct 12 17:59:56 localhost usb-storage: waiting for device to settle before scanning
Oct 12 18:00:01 localhost cron[5628]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
Oct 12 18:00:01 localhost cron[5629]: (root) CMD (rm -f /var/spool/cron/lastrun/cron.hourly)
Oct 12 18:00:02 localhost Vendor: Maxtor 9  Model: HAQA              Rev: 5215
Oct 12 18:00:02 localhost Type:   Direct-Access                      ANSI SCSI revision: 02
Oct 12 18:00:02 localhost SCSI device sda: 13281408 512-byte hdwr sectors (6800 MB)
Oct 12 18:00:02 localhost sda: Write Protect is off
Oct 12 18:00:02 localhost sda: Mode Sense: 00 38 00 00
Oct 12 18:00:02 localhost sda: assuming drive cache: write through
Oct 12 18:00:02 localhost SCSI device sda: 13281408 512-byte hdwr sectors (6800 MB)
Oct 12 18:00:02 localhost sda: Write Protect is off
Oct 12 18:00:02 localhost sda: Mode Sense: 00 38 00 00
Oct 12 18:00:02 localhost sda: assuming drive cache: write through
Oct 12 18:00:02 localhost sda: sda1 sda2
Oct 12 18:00:02 localhost sd 2:0:0:0: Attached scsi disk sda
Oct 12 18:00:02 localhost usb-storage: device scan complete
Oct 12 18:00:02 localhost scsi.agent[5643]: disk at /devices/pci0000:00/0000:00:0b.1/usb1/1-4/1-4:1.0/host2/target2:0:0/2:0:0:0
Oct 12 18:00:16 localhost (root-5710): starting (version 2.14.0), pid 5710 user 'root'
Oct 12 18:00:16 localhost (root-5710): Resolved address "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0
Oct 12 18:00:16 localhost (root-5710): Resolved address "xml:readwrite:/root/.gconf" to a writable configuration source at position 1
Oct 12 18:00:16 localhost (root-5710): Resolved address "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 2
* end *


But there was no icon displayed on gnome desktop.  Last time following your advice running `gnome-volume-manager &` 2 icons popup on desktop and the partitions of the device mounted automatically.  It only happens once.


# mount /dev/sda1 /media/
# df -h /media/
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             3.7G   72M  3.5G   3% /media/disk
* end *

# umount /media/

# mount /dev/sda2 /media/
# df -h /media/
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             2.6G   68M  2.4G   3% /media/disk
* end *


Unplug the device

# cat /var/log/messages
....
....
Oct 12 18:05:35 localhost usb 1-4: USB disconnect, address 3
*end *


B.R.
SL





-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [gentoo-user] Auto-mount USB device
@ 2006-10-11 13:51 Stephen Liu
  2006-10-11 23:20 ` Iain Buchanan
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Liu @ 2006-10-11 13:51 UTC (permalink / raw
  To: gentoo-user

Hi Iain,

>> Yes, it worked, no icons on gnome desktop.
>> 
>> $ ls -al /media/disk
>> $ ls -al /media/disk-l
>> showed 2 partitions of the USB enclosure.

>> # gnome-volume-propertie
>> ...
>> Mount removable drives when hot-plugged
>> Mount removable media when inserted
>> Browse removable media when inserted
>> all checked

> OK, we're getting somewhere!!

Something strange happened here.  After serveral boots the trick did not work any more.

Login as "user"

# `gnome-volume-manager &`
(gnome-volume-manager:6102): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
* end *

However
# ls /media
disk

still showing one mount point of the partitions (the HD on USB enclosure has 2 partitions, both on ext3).  Another disk-1 disappeared.  But it has not mounted.  I have to run;
# mount /dev/sdb1 /media/disk

I haven't figured out the cause.  I made several tests with the same result.


> I used to have this issue (drives would mount, but not show up on the
> desktop). I fixed it by upgrading.

> Have you considered gnome 2.14? 

I'm running gnome-light of version 2.14.2.  I'm prepared to install the full gnome.  But I haven't figured out whether just run;

# emerge -av gnome

OR

# emerge --unmerge gnome-light && emerge gnome

I have installed some packages on gnome-light

> Did you try the gconf key:
> gconftool-2 --type bool --set /system/storage/display_internal_hard_drives true

No.

> How did your versions of software compare with those listed in comment
> #68 in http://bugs.gentoo.org/show_bug.cgi?id=107784 ?

I read this thread before on sorting out the problem of the mobo (ASUS A8N-VM) on this Gentoo box.  The mouse pointer always hangs if without adding "noapic" on the line on "grub.conf" booting the kernel

I also came across another thread;
http://www.nvnews.net/vbulletin/showthread.php?t=57791&page=6

At this juncture I can't ascertain whether my problems encountered coming from the software or the mobo.

Tks.

B.R.
SL








-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [gentoo-user] Auto-mount USB device
@ 2006-10-10 11:16 Stephen Liu
  2006-10-11  7:28 ` Iain Buchanan
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Liu @ 2006-10-10 11:16 UTC (permalink / raw
  To: gentoo-user

Hi Iain, 

> I actually meant brand & chipset if you know it :) But nevermind, your 
Oh Sorry misunderstood your question

Brand - Nil
Chipset JM20337
0615 LGEZ1 86
11097027

There are dozens of these devices in the market.  I just selected an economic one.

> AFAIK this seems to be OK.  There were problems with various versions of
> udev, & gvm, but you seem to have avoided those...

> Read here for some more info if you're feeling adventurous:
http://bugs.gentoo.org/show_bug.cgi?id=107784

Noted with tks.

OK just for curiosity.  I found automount worked on this USB enclose when installed on FC5_64 on this PC (on another HD) and also on FC5_32 on another PC, both with icons displayed on gnome desktop.

> Of course! well spotted Andrew! you need to start gvm - run
> `gnome-volume-manager &` from a terminal, then logout and back in again,
> and see if it works.

Yes, it worked, no icons on gnome desktop.

$ ls -al /media/disk
$ ls -al /media/disk-l
showed 2 partitions of the USB enclosure.

> After that, you could try the preferences for gvm, (in preferences >
> removable drives and media) and make sure automounting and such is
> checked.

On console
# /etc/init.d/hald start
 * Starting D-BUS system messagebus ...                                   
[ ok ] * Starting Hardware Abstraction Layer daemon ...                         
[ ok ]localhost satimis 

# gnome-volume-propertie
...
Mount removable drives when hot-plugged
Mount removable media when inserted
Browse removable media when inserted
all checked

Tks.

B.R.
SL



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [gentoo-user] Auto-mount USB device
@ 2006-10-09 14:54 Stephen Liu
  0 siblings, 0 replies; 14+ messages in thread
From: Stephen Liu @ 2006-10-09 14:54 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2979 bytes --]

Hi Andrew, 
Still failed.

# cat /etc/group | grep plugdev
plugdev:x:1004:haldaemon,satimis


  
  
    if the logout-login doesn't work, then post the relevant part
of /var/log/messages when plugging in the usb device.
    
  
  /var/log/message
......
Oct 10 02:53:09 localhost usb 1-3: configuration #1 chosen from 1 choice
Oct 10 02:53:09 localhost scsi2 : SCSI emulation for USB Mass Storage devices
Oct 10 02:53:09 localhost usb-storage: device found at 3
Oct 10 02:53:09 localhost usb-storage: waiting for device to settle before scanning
Oct 10 02:53:14 localhost Vendor: Maxtor 9  Model: HAQA              Rev: 5215
Oct 10 02:53:14 localhost Type:   Direct-Access  ANSI SCSI revision: 02
Oct 10 02:53:14 localhost SCSI device sda: 13281408 512-byte hdwr sectors (6800 MB)
Oct 10 02:53:14 localhost sda: Write Protect is off
Oct 10 02:53:14 localhost sda: Mode Sense: 00 38 00 00
Oct 10 02:53:14 localhost sda: assuming drive cache: write through
Oct 10 02:53:14 localhost SCSI device sda: 13281408 512-byte hdwr sectors (6800 MB)
Oct 10 02:53:14 localhost sda: Write Protect is off
Oct 10 02:53:14 localhost sda: Mode Sense: 00 38 00 00
Oct 10 02:53:14 localhost sda: assuming drive cache: write through
Oct 10 02:53:14 localhost sda: Write Protect is off
Oct 10 02:53:14 localhost sda: Mode Sense: 00 38 00 00
Oct 10 02:53:14 localhost sda: assuming drive cache: write through
Oct 10 02:53:14 localhost sda: unknown partition table
Oct 10 02:53:14 localhost sd 2:0:0:0: Attached scsi disk sda
Oct 10 02:53:14 localhost usb-storage: device scan complete
Oct 10 02:53:14 localhost scsi.agent[7446]: disk at /devices/pci0000:00/0000:00:0b.1/usb1/1-3/1-3:1.0
Oct 10 02:53:45 localhost kjournald starting.  Commit interval 5 seconds
Oct 10 02:53:45 localhost EXT3 FS on sda, internal journal
Oct 10 02:53:45 localhost EXT3-fs: mounted filesystem with ordered data mode.
* end *


  
  
    Also, post details of the usb thing that you're trying to use - what is
it? 
    
  
  USB enclosure is a box for mounting a HD inside to be used for external storage.  It is connected to USB port.


  
  
    and the gnome, udev and kernel version.
    
  
  # equery l gnome-light
[ Searching for package 'gnome-light' in all categories among: ]
 * installed packages
[I--] [  ] gnome-base/gnome-light-2.12.0 (2.0)

# equery l udev
[ Searching for package 'udev' in all categories among: ]
 * installed packages
[I--] [  ] sys-fs/udev-087-r1 (0)

# cat /proc/version
Linux version 2.6.17-gentoo-r7 (root@localhost) (gcc version 4.1.1 (Gentoo 4.1.1)) #5 SMP Mon Sep 25 18:27:54 HKT 2006

> Do you have gnome-volume-manager installed and in your session(not sure
if thats needed).


Yes.

# equery l gnome-volume-manager
[ Searching for package 'gnome-volume-manager' in all categories among: ]
 * installed packages
[I--] [  ] gnome-base/gnome-volume-manager-1.5.15-r2 (0)
* end *

B.R.
SL






[-- Attachment #2: Type: text/html, Size: 3692 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [gentoo-user] Auto-mount USB device
@ 2006-10-09 11:16 Stephen Liu
  2006-10-09 13:37 ` Andrew Frink
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Liu @ 2006-10-09 11:16 UTC (permalink / raw
  To: gentoo-user

Hi Iain,

Still failed.

# cat /etc/group | grep plugdev
plugdev:x:1004:haldaemon,satimis


> if the logout-login doesn't work, then post the relevant part
> of /var/log/messages when plugging in the usb device.

/var/log/message
......
Oct 10 02:53:09 localhost usb 1-3: configuration #1 chosen from 1 choice
Oct 10 02:53:09 localhost scsi2 : SCSI emulation for USB Mass Storage devices
Oct 10 02:53:09 localhost usb-storage: device found at 3
Oct 10 02:53:09 localhost usb-storage: waiting for device to settle before scanning
Oct 10 02:53:14 localhost Vendor: Maxtor 9  Model: HAQA              Rev: 5215
Oct 10 02:53:14 localhost Type:   Direct-Access  ANSI SCSI revision: 02
Oct 10 02:53:14 localhost SCSI device sda: 13281408 512-byte hdwr sectors (6800 MB)
Oct 10 02:53:14 localhost sda: Write Protect is off
Oct 10 02:53:14 localhost sda: Mode Sense: 00 38 00 00
Oct 10 02:53:14 localhost sda: assuming drive cache: write through
Oct 10 02:53:14 localhost SCSI device sda: 13281408 512-byte hdwr sectors (6800 MB)
Oct 10 02:53:14 localhost sda: Write Protect is off
Oct 10 02:53:14 localhost sda: Mode Sense: 00 38 00 00
Oct 10 02:53:14 localhost sda: assuming drive cache: write through
Oct 10 02:53:14 localhost sda: Write Protect is off
Oct 10 02:53:14 localhost sda: Mode Sense: 00 38 00 00
Oct 10 02:53:14 localhost sda: assuming drive cache: write through
Oct 10 02:53:14 localhost sda: unknown partition table
Oct 10 02:53:14 localhost sd 2:0:0:0: Attached scsi disk sda
Oct 10 02:53:14 localhost usb-storage: device scan complete
Oct 10 02:53:14 localhost scsi.agent[7446]: disk at /devices/pci0000:00/0000:00:0b.1/usb1/1-3/1-3:1.0
Oct 10 02:53:45 localhost kjournald starting.  Commit interval 5 seconds
Oct 10 02:53:45 localhost EXT3 FS on sda, internal journal
Oct 10 02:53:45 localhost EXT3-fs: mounted filesystem with ordered data mode.
* end *


> Also, post details of the usb thing that you're trying to use - what is
> it? 
USB enclosure is a box for mounting a HD inside to be used for external storage.  It is connected to USB port.


> and the gnome, udev and kernel version.

# equery l gnome-light
[ Searching for package 'gnome-light' in all categories among: ]
 * installed packages
[I--] [  ] gnome-base/gnome-light-2.12.0 (2.0)

# equery l udev
[ Searching for package 'udev' in all categories among: ]
 * installed packages
[I--] [  ] sys-fs/udev-087-r1 (0)

# cat /proc/version
Linux version 2.6.17-gentoo-r7 (root@localhost) (gcc version 4.1.1 (Gentoo 4.1.1)) #5 SMP Mon Sep 25 18:27:54 HKT 2006


Tks


B.R.
SL




-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: [gentoo-user] Auto-mount USB device
@ 2006-10-09  4:37 Stephen Liu
  2006-10-09  5:00 ` Iain Buchanan
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Liu @ 2006-10-09  4:37 UTC (permalink / raw
  To: gentoo-user

Hi Iain,

Tks for your advice.

> 2. add yourself to the plugdev group
> 3. remove any lines in /etc/fstab for the same device you want to
> automount

# nano /etc/group
adding "satimis" on;
plugdev:x:1004:haldaemon;satimis
(remark:- also tried "plugdev:x:1004:haldaemon,satimis")


# cat /etc/fstab
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
devpts                  /dev/pts        devpts          rw      0 0
/dev/hda2               /               ext3            rw,data=ordered         0 1
/dev/hda1               /boot           ext2            rw,nogrpid              0 2
/dev/vg/usr             /usr            ext3            rw,data=ordered         0 3
/dev/vg/home            /home           ext3            rw,data=ordered         0 4
/dev/vg/var             /var            ext3            rw,data=ordered         0 5
/dev/vg/opt             /opt            ext3            rw,data=ordered         0 6
/dev/vg/tmp             /tmp            ext3            rw,data=ordered         0 7
none                    /proc           proc            rw,nodiratime           0 0
udev                    /dev            tmpfs           rw,nosuid               0 0
* end *


USB enclosure still could not be mounted automatically on plugging in


B.R.
satimis




-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread
* [gentoo-user] Auto-mount USB device
@ 2006-10-06 16:05 Stephen Liu
  2006-10-08 23:09 ` Iain Buchanan
  0 siblings, 1 reply; 14+ messages in thread
From: Stephen Liu @ 2006-10-06 16:05 UTC (permalink / raw
  To: gentoo-user

Hi folks,





Gentoo_64


gnome-light





When the USB enclosure is plugin hotplug detects it. But it won't mount
it automatically showing it as an icon on desktop. I have to mount it
manually on console. Please advise which file I have to edit enabling
auto-mount when the USB enclosure is plugged. TIA





B.R.

SL



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-10-12  8:11 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-12  2:24 [gentoo-user] Auto-mount USB device Stephen Liu
2006-10-12  8:04 ` Neil Bothwick
  -- strict thread matches above, loose matches on Subject: below --
2006-10-11 13:51 Stephen Liu
2006-10-11 23:20 ` Iain Buchanan
2006-10-10 11:16 Stephen Liu
2006-10-11  7:28 ` Iain Buchanan
2006-10-09 14:54 Stephen Liu
2006-10-09 11:16 Stephen Liu
2006-10-09 13:37 ` Andrew Frink
2006-10-09 23:32   ` Iain Buchanan
2006-10-09  4:37 Stephen Liu
2006-10-09  5:00 ` Iain Buchanan
2006-10-06 16:05 Stephen Liu
2006-10-08 23:09 ` Iain Buchanan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox