1 |
On Tue, Dec 31, 2013 at 09:06:38AM -0700, Joseph wrote: |
2 |
> |
3 |
> Thank you for the hints, here is the output of: tail -f /var/log/messages |
4 |
> My line if fstab is: |
5 |
> /dev/sdb1 /media/stick auto noauto,rw,user |
6 |
> and this USB below file are mounted as root:root (not joseph:users) |
7 |
> |
8 |
> Dec 31 09:02:16 syscon7 kernel: [231771.029376] usb 8-1: new high-speed USB device number 33 using xhci_hcd |
9 |
> Dec 31 09:02:16 syscon7 kernel: [231771.042189] usb 8-1: default language 0x0409 |
10 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043442] usb 8-1: udev 33, busnum 8, minor = 928 |
11 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043445] usb 8-1: New USB device found, idVendor=058f, idProduct=6366 |
12 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043447] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 |
13 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043448] usb 8-1: Product: Mass Storage Device |
14 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043450] usb 8-1: Manufacturer: Generic |
15 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043451] usb 8-1: SerialNumber: 058F63666433 |
16 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043515] usb 8-1: usb_probe_device |
17 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043517] usb 8-1: configuration #1 chosen from 1 choice |
18 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043614] usb 8-1: Successful Endpoint Configure command |
19 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043689] usb 8-1: adding 8-1:1.0 (config #1, interface 0) |
20 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043722] usb-storage 8-1:1.0: usb_probe_interface |
21 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043726] usb-storage 8-1:1.0: usb_probe_interface - got id |
22 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043728] usb-storage 8-1:1.0: USB Mass Storage device detected |
23 |
> Dec 31 09:02:16 syscon7 kernel: [231771.043787] scsi41 : usb-storage 8-1:1.0 |
24 |
> Dec 31 09:02:17 syscon7 kernel: [231772.175846] scsi 41:0:0:0: Direct-Access Multiple Card Reader 1.00 PQ: 0 ANSI: 0 |
25 |
> Dec 31 09:02:17 syscon7 kernel: [231772.176055] sd 41:0:0:0: Attached scsi generic sg2 type 0 |
26 |
> Dec 31 09:02:18 syscon7 kernel: [231772.836523] sd 41:0:0:0: [sdb] 62333952 512-byte logical blocks: (31.9 GB/29.7 GiB) |
27 |
> Dec 31 09:02:18 syscon7 kernel: [231772.836932] sd 41:0:0:0: [sdb] Write Protect is off |
28 |
> Dec 31 09:02:18 syscon7 kernel: [231772.836934] sd 41:0:0:0: [sdb] Mode Sense: 03 00 00 00 |
29 |
> Dec 31 09:02:18 syscon7 kernel: [231772.837316] sd 41:0:0:0: [sdb] No Caching mode page present |
30 |
> Dec 31 09:02:18 syscon7 kernel: [231772.837318] sd 41:0:0:0: [sdb] Assuming drive cache: write through |
31 |
> Dec 31 09:02:18 syscon7 kernel: [231772.838812] sd 41:0:0:0: [sdb] No Caching mode page present |
32 |
> Dec 31 09:02:18 syscon7 kernel: [231772.838815] sd 41:0:0:0: [sdb] Assuming drive cache: write through |
33 |
> Dec 31 09:02:18 syscon7 kernel: [231772.846512] sdb: sdb1 |
34 |
> Dec 31 09:02:18 syscon7 kernel: [231772.848062] sd 41:0:0:0: [sdb] No Caching mode page present |
35 |
> Dec 31 09:02:18 syscon7 kernel: [231772.848065] sd 41:0:0:0: [sdb] Assuming drive cache: write through |
36 |
> Dec 31 09:02:18 syscon7 kernel: [231772.848067] sd 41:0:0:0: [sdb] Attached SCSI removable disk |
37 |
> Dec 31 09:02:25 syscon7 udisksd[3624]: Mounted /dev/sdb1 (system) at /media/stick on behalf of uid 1000 |
38 |
> |
39 |
> -- |
40 |
> Joseph |
41 |
|
42 |
The blkid output would have shown this device, it's UUID, and filesystem. |
43 |
|
44 |
At any rate, for my flash drives I want them mounted with perms for rw for |
45 |
user mingdao, so I put something like this in /etc/fstab: |
46 |
|
47 |
baruch ~ # blkid /dev/sdc1 |
48 |
/dev/sdc1: LABEL="AMD" UUID="CA00-9136" TYPE="vfat" |
49 |
baruch ~ # grep CA00-9136 /etc/fstab |
50 |
UUID=CA00-9136 /AMD vfat noauto,users,rw,gid=1000,dmask=0002,fmask=0113 0 0 |
51 |
|
52 |
Different for NTFS, of course. And btw, I don't automount anything anything |
53 |
that is plugged in. Just my preference. |
54 |
|
55 |
As Alan mentioned, "man mount" would be a good read; as well as "man fstab". |
56 |
And, did I give you a link to an article on file permissions? |
57 |
|
58 |
The difference between user and users mean simply that with "user" only the |
59 |
user who mounted the device can unmount it; with "users" any user can unmount |
60 |
it, not just the user who mounted it. |
61 |
|
62 |
Cheers, |
63 |
Bruce |
64 |
-- |
65 |
List replies preferred. |
66 |
|
67 |
A: Because it messes up the order in which people normally read text. |
68 |
Q: Why is top-posting such a bad thing? |
69 |
A: Top-posting. |
70 |
Q: What is the most annoying thing in e-mail? |
71 |
|
72 |
Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting |