Gentoo Archives: gentoo-user

From: Stephen Liu <satimis@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Auto-mount USB device
Date: Thu, 12 Oct 2006 02:29:05
Message-Id: 20061012022437.58488.qmail@web35212.mail.mud.yahoo.com
1 Hi Iain,
2
3 Sorry, previously I made a mistake running;
4 # mount /dev/sdb1 /media/disk
5
6 It should be
7 # mount /dev/sda1 /media/
8
9 The USB enclosure can still be mounted. They are there.
10
11
12 - snip -
13
14 > Now that you kind-of have things happening, what does /var/log/messages
15 > show when you plug in a usb disk?
16
17 After plugin the device,
18
19 # cat /var/log/messages
20 ...
21 Oct 12 17:58:03 localhost dhcpcd[5297]: timed out waiting for a valid DHCP server response
22 Oct 12 17:58:03 localhost cron[5468]: (CRON) STARTUP (V5.0)
23 Oct 12 17:59:27 localhost (root-5389): GConf server is not in use, shutting down.
24 Oct 12 17:59:27 localhost (root-5389): Exiting
25 Oct 12 17:59:56 localhost usb 1-4: new high speed USB device using ehci_hcd and address 3
26 Oct 12 17:59:56 localhost usb 1-4: configuration #1 chosen from 1 choice
27 Oct 12 17:59:56 localhost scsi2 : SCSI emulation for USB Mass Storage devices
28 Oct 12 17:59:56 localhost usb-storage: device found at 3
29 Oct 12 17:59:56 localhost usb-storage: waiting for device to settle before scanning
30 Oct 12 18:00:01 localhost cron[5628]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons )
31 Oct 12 18:00:01 localhost cron[5629]: (root) CMD (rm -f /var/spool/cron/lastrun/cron.hourly)
32 Oct 12 18:00:02 localhost Vendor: Maxtor 9 Model: HAQA Rev: 5215
33 Oct 12 18:00:02 localhost Type: Direct-Access ANSI SCSI revision: 02
34 Oct 12 18:00:02 localhost SCSI device sda: 13281408 512-byte hdwr sectors (6800 MB)
35 Oct 12 18:00:02 localhost sda: Write Protect is off
36 Oct 12 18:00:02 localhost sda: Mode Sense: 00 38 00 00
37 Oct 12 18:00:02 localhost sda: assuming drive cache: write through
38 Oct 12 18:00:02 localhost SCSI device sda: 13281408 512-byte hdwr sectors (6800 MB)
39 Oct 12 18:00:02 localhost sda: Write Protect is off
40 Oct 12 18:00:02 localhost sda: Mode Sense: 00 38 00 00
41 Oct 12 18:00:02 localhost sda: assuming drive cache: write through
42 Oct 12 18:00:02 localhost sda: sda1 sda2
43 Oct 12 18:00:02 localhost sd 2:0:0:0: Attached scsi disk sda
44 Oct 12 18:00:02 localhost usb-storage: device scan complete
45 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
46 Oct 12 18:00:16 localhost (root-5710): starting (version 2.14.0), pid 5710 user 'root'
47 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
48 Oct 12 18:00:16 localhost (root-5710): Resolved address "xml:readwrite:/root/.gconf" to a writable configuration source at position 1
49 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
50 * end *
51
52
53 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.
54
55
56 # mount /dev/sda1 /media/
57 # df -h /media/
58 Filesystem Size Used Avail Use% Mounted on
59 /dev/sda1 3.7G 72M 3.5G 3% /media/disk
60 * end *
61
62 # umount /media/
63
64 # mount /dev/sda2 /media/
65 # df -h /media/
66 Filesystem Size Used Avail Use% Mounted on
67 /dev/sda2 2.6G 68M 2.4G 3% /media/disk
68 * end *
69
70
71 Unplug the device
72
73 # cat /var/log/messages
74 ....
75 ....
76 Oct 12 18:05:35 localhost usb 1-4: USB disconnect, address 3
77 *end *
78
79
80 B.R.
81 SL
82
83
84
85
86
87 --
88 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Auto-mount USB device Neil Bothwick <neil@××××××××××.uk>