Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to let users mount usb?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Black Imp
Apprentice
Apprentice


Joined: 09 Oct 2004
Posts: 168

PostPosted: Sat Sep 06, 2008 12:05 pm    Post subject: How to let users mount usb? Reply with quote

I've just installed Gentoo on a Gigabyte x38 ds5.
First of all it's weird what happened to hd 's names: installation cd recognized sata discs as sda and sdb while installed system assigned them hda and hdc, while sdb it's the usb hub.
By the way to mount a usb key I have to type
Code:
mount /dev/sdb1 /usb"
and it works as root.
I created a user with groups plugdev, usb... and so on but he's not allowed to mount usb as well. what did I miss?
thank you
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 866

PostPosted: Sat Sep 06, 2008 1:45 pm    Post subject: Reply with quote

Quote:
installation cd recognized sata discs as sda and sdb while installed system assigned them hda and hdc

it depends on how you configure the kernel, someplace among the blockdev/ata-options.
mine looks like this:
Code:
CONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_ATA_ACPI=y
CONFIG_SATA_AHCI=y
# CONFIG_SATA_SVW is not set
CONFIG_ATA_PIIX=y

(be sure you got the right and complete settings for your box)

Quote:
I created a user with groups plugdev, usb... and so on but he's not allowed to mount usb as well. what did I miss?

putting the right options int /etc/fstab, you can find them with
Code:
man fstab
man mount

you could also set up automounting with udev or sth. else.
GOOD LUCK!
_________________
DUMM KLICKT GUT.
Back to top
View user's profile Send private message
SiberianSniper
Guru
Guru


Joined: 06 Apr 2006
Posts: 378
Location: Dayton, OH, USA

PostPosted: Sat Sep 06, 2008 2:15 pm    Post subject: Reply with quote

as for the permissions, try a line in /etc/fstab like this:
/etc/fstab:
/dev/sdb1   /usb   auto   noauto,users,umask=000   0   0
Back to top
View user's profile Send private message
Black Imp
Apprentice
Apprentice


Joined: 09 Oct 2004
Posts: 168

PostPosted: Sat Sep 06, 2008 8:41 pm    Post subject: Reply with quote

thanks to both of you but something still doesn't work:
i've started up again and found out that this time usb is seen as /dev/sda1 instead of /dev/sdb1.
then I've modified fstab consequently to see what would happen adding "users" . If was sufficient to add "user" to fourth column ad it worked but now the issue is to have it assign the sata disc the correct name - that is /dev/sd* and not /dev/hd*... or is it a kernel new feature? - and most of all to have it assign to usb ports tha same device from a session to another - why it doesn't assign usb ports to /dev/usb?.

those kernel option are already set, otherwise I guess I couldn't access to sata hd's at all.

should I post .config file here?

thank you
Back to top
View user's profile Send private message
whig
l33t
l33t


Joined: 27 Nov 2004
Posts: 973
Location: New Zealand

PostPosted: Sat Sep 06, 2008 9:24 pm    Post subject: Reply with quote

Create a udev (man udev) rule (/etc/udev/rules.d/10-local.rules) like
Code:
BUS=="usb", KERNEL=="sd*", SYSFS{manufacturer}=="USB*", NAME="usb/usb%n"

But you'll have to modify it after looking at /proc/bus/usb/devices. This will result in a /dev/usb/usb1 device.
Back to top
View user's profile Send private message
Black Imp
Apprentice
Apprentice


Joined: 09 Oct 2004
Posts: 168

PostPosted: Sun Sep 07, 2008 1:28 am    Post subject: Reply with quote

COOOOOOOOOL!!!! :D
i'm trying immediately.
maybe I can rearrange discs too:
the first sata hd is seen as hda, the second as hdc, sata dvd as hdd, pata plextor 760 as dvdrw1 :roll:

my last question is: have I done something wrong with kernel options or is it normal to have /dev that way unless you create some udev rules? how installation cd can assign devices their 'traditional' names - sd* for sata units, hd* for pata units, and so on - ?

at bootstrap i got a strange message i think it concerns the issue - highlighted in red -. here is dmesg output. the last rows come out from the plugging in of my usbkey.


Linux version 2.6.25-gentoo-r7 (root@blackquad) (gcc version 4.1.2 (Gentoo 4.1.2 p1.1)) #6 SMP PREEMPT Sun Sep 7 02:53:32 CEST 2008
Command line: root/dev/hda7 video=vesafb:mttr:3,ywrap vga=0x317
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000007fee0000 (usable)
BIOS-e820: 000000007fee0000 - 000000007fee3000 (ACPI NVS)
BIOS-e820: 000000007fee3000 - 000000007fef0000 (ACPI data)
BIOS-e820: 000000007fef0000 - 000000007ff00000 (reserved)
BIOS-e820: 00000000f0000000 - 00000000f4000000 (reserved)
BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
Entering add_active_range(0, 0, 159) 0 entries of 3200 used
Entering add_active_range(0, 256, 524000) 1 entries of 3200 used
end_pfn_map = 1048576
DMI 2.4 present.
ACPI: RSDP 000F6BE0, 0014 (r0 GBT )
ACPI: RSDT 7FEE3040, 0034 (r1 GBT GBTUACPI 42302E31 GBTU 1010101)
ACPI: FACP 7FEE30C0, 0074 (r1 GBT GBTUACPI 42302E31 GBTU 1010101)
ACPI: DSDT 7FEE3180, 4B8C (r1 GBT GBTUACPI 1000 MSFT 100000C)
ACPI: FACS 7FEE0000, 0040
ACPI: HPET 7FEE7E80, 0038 (r1 GBT GBTUACPI 42302E31 GBTU 98)
ACPI: MCFG 7FEE7F00, 003C (r1 GBT GBTUACPI 42302E31 GBTU 1010101)
ACPI: APIC 7FEE7D80, 0084 (r1 GBT GBTUACPI 42302E31 GBTU 1010101)
No NUMA configuration found
Faking a node at 0000000000000000-000000007fee0000
Entering add_active_range(0, 0, 159) 0 entries of 3200 used
Entering add_active_range(0, 256, 524000) 1 entries of 3200 used
Bootmem setup node 0 0000000000000000-000000007fee0000
NODE_DATA [000000000000c000 - 0000000000012fff]
bootmap [0000000000013000 - 0000000000022fdf] pages 10
early res: 0 [0-fff] BIOS data page
early res: 1 [6000-7fff] SMP_TRAMPOLINE
early res: 2 [200000-9392cb] TEXT DATA BSS
early res: 3 [9f800-a07ff] EBDA
early res: 4 [8000-bfff] PGTABLE
[ffffe20000000000-ffffe200001fffff] PMD ->ffff810001200000 on node 0
[ffffe20000200000-ffffe200003fffff] PMD ->ffff810001600000 on node 0
[ffffe20000400000-ffffe200005fffff] PMD ->ffff810001a00000 on node 0
[ffffe20000600000-ffffe200007fffff] PMD ->ffff810001e00000 on node 0
[ffffe20000800000-ffffe200009fffff] PMD ->ffff810002200000 on node 0
[ffffe20000a00000-ffffe20000bfffff] PMD ->ffff810002600000 on node 0
[ffffe20000c00000-ffffe20000dfffff] PMD ->ffff810002a00000 on node 0
[ffffe20000e00000-ffffe20000ffffff] PMD ->ffff810002e00000 on node 0
[ffffe20001000000-ffffe200011fffff] PMD ->ffff810003200000 on node 0
[ffffe20001200000-ffffe200013fffff] PMD ->ffff810003600000 on node 0
[ffffe20001400000-ffffe200015fffff] PMD ->ffff810003a00000 on node 0
[ffffe20001600000-ffffe200017fffff] PMD ->ffff810003e00000 on node 0
[ffffe20001800000-ffffe200019fffff] PMD ->ffff810004200000 on node 0
[ffffe20001a00000-ffffe20001bfffff] PMD ->ffff810004600000 on node 0
Zone PFN ranges:
DMA 0 -> 4096
DMA32 4096 -> 1048576
Normal 1048576 -> 1048576
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0 -> 159
0: 256 -> 524000
On node 0 totalpages: 523903
DMA zone: 56 pages used for memmap
DMA zone: 1859 pages reserved
DMA zone: 2084 pages, LIFO batch:0
DMA32 zone: 7108 pages used for memmap
DMA32 zone: 512796 pages, LIFO batch:31
Normal zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
ACPI: PM-Timer IO Port: 0x408
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 (Bootup-CPU)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x03] enabled)
Processor #3
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
Processor #1
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x02] enabled)
Processor #2
ACPI: LAPIC_NMI (acpi_id[0x00] dfl dfl lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] dfl dfl lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x03] dfl dfl lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Setting APIC routing to flat
ACPI: HPET id: 0x8086a201 base: 0xfed00000
Using ACPI (MADT) for SMP configuration information
PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 7ff00000:70100000)
SMP: Allowing 4 CPUs, 0 hotplug CPUs
PERCPU: Allocating 34712 bytes of per cpu data
Built 1 zonelists in Node order, mobility grouping on. Total pages: 514880
Policy zone: DMA32
Kernel command line: root/dev/hda7 video=vesafb:mttr:3,ywrap vga=0x317
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
TSC calibrated against PM_TIMER
time.c: Detected 3789.084 MHz processor.
Console: colour dummy device 80x25
console [tty0] enabled
Checking aperture...
Memory: 2059164k/2096000k available (3743k kernel code, 36448k reserved, 2303k data, 368k init)
CPA: page pool initialized 1 of 1 pages preallocated
hpet clockevent registered
Calibrating delay using timer specific routine.. 7583.10 BogoMIPS (lpj=15166200)
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU 0/0 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
CPU0: Thermal monitoring enabled (TM2)
using mwait in idle threads.
ACPI: Core revision 20070126
Using local APIC timer interrupts.
APIC timer calibration result 26313062
Detected 26.313 MHz APIC timer.
Booting processor 1/4 APIC 0x3
Initializing CPU#1
Calibrating delay using timer specific routine.. 7578.27 BogoMIPS (lpj=15156544)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU 1/3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
CPU1: Thermal monitoring enabled (TM2)
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b
checking TSC synchronization [CPU#0 -> CPU#1]: passed.
Booting processor 2/4 APIC 0x1
Initializing CPU#2
Calibrating delay using timer specific routine.. 7578.23 BogoMIPS (lpj=15156466)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU 2/1 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
CPU2: Thermal monitoring enabled (TM2)
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b
checking TSC synchronization [CPU#0 -> CPU#2]: passed.
Booting processor 3/4 APIC 0x2
Initializing CPU#3
Calibrating delay using timer specific routine.. 7578.26 BogoMIPS (lpj=15156539)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 4096K
CPU 3/2 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
CPU3: Thermal monitoring enabled (TM2)
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz stepping 0b
checking TSC synchronization [CPU#0 -> CPU#3]: passed.
Brought up 4 CPUs
net_namespace: 408 bytes
NET: Registered protocol family 16
No dock devices found.
ACPI: bus type pci registered
PCI: Using MMCONFIG at f0000000 - f3ffffff
PCI: Using configuration type 1
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:1f.0: quirk: region 0400-047f claimed by ICH6 ACPI/GPIO/TCO
pci 0000:00:1f.0: quirk: region 0480-04bf claimed by ICH6 GPIO
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX3._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX5._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 *12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 *9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNK0] (IRQs *3 4 5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 15 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
PCI-GART: No AMD northbridge found.
hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0
hpet0: 4 64-bit timers, 14318180 Hz
system 00:01: ioport range 0x4d0-0x4d1 has been reserved
system 00:01: ioport range 0x290-0x29f has been reserved
system 00:01: ioport range 0x800-0x87f has been reserved
system 00:01: ioport range 0x290-0x294 has been reserved
system 00:01: ioport range 0x880-0x88f has been reserved
system 00:0b: ioport range 0x400-0x4bf could not be reserved
system 00:0c: iomem range 0xf0000000-0xf3ffffff could not be reserved
system 00:0d: iomem range 0xcce00-0xcffff has been reserved
system 00:0d: iomem range 0xf0000-0xf7fff could not be reserved
system 00:0d: iomem range 0xf8000-0xfbfff could not be reserved
system 00:0d: iomem range 0xfc000-0xfffff could not be reserved
system 00:0d: iomem range 0x7fee0000-0x7fefffff could not be reserved
system 00:0d: iomem range 0x0-0x9ffff could not be reserved
system 00:0d: iomem range 0x100000-0x7fedffff could not be reserved
system 00:0d: iomem range 0xfec00000-0xfec00fff has been reserved
system 00:0d: iomem range 0xfed10000-0xfed1dfff has been reserved
system 00:0d: iomem range 0xfed20000-0xfed8ffff has been reserved
system 00:0d: iomem range 0xfee00000-0xfee00fff could not be reserved
system 00:0d: iomem range 0xffb00000-0xffb7ffff has been reserved
system 00:0d: iomem range 0xfff00000-0xffffffff has been reserved
system 00:0d: iomem range 0xe0000-0xeffff has been reserved
PCI: Bridge: 0000:00:01.0
IO window: b000-bfff
MEM window: 0xf4000000-0xf7ffffff
PREFETCH window: 0x00000000e0000000-0x00000000efffffff
PCI: Bridge: 0000:00:06.0
IO window: a000-afff
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.0
IO window: 9000-9fff
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.3
IO window: c000-cfff
MEM window: 0xfa000000-0xfa0fffff
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.5
IO window: d000-dfff
MEM window: 0xf8000000-0xf9ffffff
PREFETCH window: 0x0000000080000000-0x00000000800fffff
PCI: Bridge: 0000:00:1e.0
IO window: disabled.
MEM window: 0xfa100000-0xfa1fffff
PREFETCH window: disabled.
ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:01.0 to 64
ACPI: PCI Interrupt 0000:00:06.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:06.0 to 64
ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:1c.0 to 64
ACPI: PCI Interrupt 0000:00:1c.3[D] -> GSI 19 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:00:1c.3 to 64
ACPI: PCI Interrupt 0000:00:1c.5[B] -> GSI 17 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1c.5 to 64
PCI: Setting latency timer of device 0000:00:1e.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
DLM (built Sep 7 2008 02:50:38) installed
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NTFS driver 2.1.29 [Flags: R/W].
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci 0000:01:00.0: Boot video device
PCI: Setting latency timer of device 0000:00:01.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:01.0:pcie00]
Allocate Port Service[0000:00:01.0:pcie03]
PCI: Setting latency timer of device 0000:00:06.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:06.0:pcie00]
Allocate Port Service[0000:00:06.0:pcie03]
PCI: Setting latency timer of device 0000:00:1c.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:1c.0:pcie00]
Allocate Port Service[0000:00:1c.0:pcie02]
Allocate Port Service[0000:00:1c.0:pcie03]
PCI: Setting latency timer of device 0000:00:1c.3 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:1c.3:pcie00]
Allocate Port Service[0000:00:1c.3:pcie02]
Allocate Port Service[0000:00:1c.3:pcie03]
PCI: Setting latency timer of device 0000:00:1c.5 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[0000:00:1c.5:pcie00]
Allocate Port Service[0000:00:1c.5:pcie02]
Allocate Port Service[0000:00:1c.5:pcie03]
Real Time Clock Driver v1.12ac
hpet_resources: 0xfed00000 is busy
Linux agpgart interface v0.103
vesafb: framebuffer at 0xf5000000, mapped to 0xffffc20004980000, using 3072k, total 14336k
vesafb: mode is 1024x768x16, linelength=2048, pages=1
vesafb: scrolling: redraw
vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
input: Power Button (FF) as /class/input/input0
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /class/input/input1
ACPI: Power Button (CM) [PWRB]
ACPI: ACPI0007:00 is registered as cooling_device0
ACPI: Processor [CPU0] (supports 8 throttling states)
ACPI: ACPI0007:01 is registered as cooling_device1
ACPI: Processor [CPU1] (supports 8 throttling states)
ACPI: ACPI0007:02 is registered as cooling_device2
ACPI: Processor [CPU2] (supports 8 throttling states)
ACPI: ACPI0007:03 is registered as cooling_device3
ACPI: Processor [CPU3] (supports 8 throttling states)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
loop: module loaded
Intel(R) PRO/1000 Network Driver - version 7.3.20-k2
Copyright (c) 1999-2006 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.23-k4-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
r8169 Gigabit Ethernet driver 2.2LK loaded
ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 17 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:05:00.0 to 64
eth0: RTL8168b/8111b at 0xffffc2000031a000, 00:1a:4d:59:fb:9a, XID 38000000 IRQ 1274
Uniform Multi-Platform E-IDE driver
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
hda: WDC WD1600JD-00HBB0, ATA DISK drive
Probing IDE interface ide1...
hdc: ST3500630AS, ATA DISK drive
hdd: TSSTcorpDVD-ROM SH-D163B, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 512KiB
hda: Host Protected Area detected.
current capacity is 312579695 sectors (160040 MB)
native capacity is 312581808 sectors (160041 MB)
hda: Host Protected Area disabled.
hda: 312581808 sectors (160041 MB) w/8192KiB Cache, CHS=19457/255/63
hda: cache flushes supported
hda: hda1 hda2 < hda5 hda6 hda7 >
hdc: max request size: 512KiB
hdc: 976773168 sectors (500107 MB) w/16384KiB Cache, CHS=60801/255/63
hdc: cache flushes supported
hdc: hdc1
hdd: ATAPI 48X DVD-ROM drive, 198kB Cache
Uniform CD-ROM driver Revision: 3.20
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods

ahci 0000:04:00.0: version 3.0
ACPI: PCI Interrupt 0000:04:00.0[A] -> GSI 19 (level, low) -> IRQ 19
ahci 0000:04:00.0: AHCI 0001.0000 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
ahci 0000:04:00.0: flags: 64bit ncq pm led clo pmp pio slum part
PCI: Setting latency timer of device 0000:04:00.0 to 64
scsi0 : ahci
scsi1 : ahci
ata1: SATA max UDMA/133 abar m8192@0xfa000000 port 0xfa000100 irq 19
ata2: SATA max UDMA/133 abar m8192@0xfa000000 port 0xfa000180 irq 19
ata1: SATA link down (SStatus 0 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
ata_piix 0000:00:1f.2: version 2.12
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 19
ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
PCI: Unable to reserve I/O region #1:8@1f0 for device 0000:00:1f.2
ata_piix 0000:00:1f.2: failed to request/iomap BARs for port 0 (errno=-16)
PCI: Unable to reserve I/O region #3:8@170 for device 0000:00:1f.2
ata_piix 0000:00:1f.2: failed to request/iomap BARs for port 1 (errno=-16)
ata_piix 0000:00:1f.2: no available native port
ACPI: PCI Interrupt 0000:00:1f.5[B] -> GSI 19 (level, low) -> IRQ 19
ata_piix 0000:00:1f.5: MAP [ P0 -- P1 -- ]
PCI: Setting latency timer of device 0000:00:1f.5 to 64
scsi2 : ata_piix
scsi3 : ata_piix
ata3: SATA max UDMA/133 cmd 0xe700 ctl 0xe800 bmdma 0xeb00 irq 19
ata4: SATA max UDMA/133 cmd 0xe900 ctl 0xea00 bmdma 0xeb08 irq 19
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
PCI: Enabling device 0000:04:00.1 (0000 -> 0001)
ACPI: PCI Interrupt 0000:04:00.1[B] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:04:00.1 to 64
scsi4 : pata_jmicron
scsi5 : pata_jmicron
ata5: PATA max UDMA/100 cmd 0xc000 ctl 0xc100 bmdma 0xc400 irq 16
ata6: PATA max UDMA/100 cmd 0xc200 ctl 0xc300 bmdma 0xc408 irq 16
ata5.00: ATAPI: PLEXTOR DVDR PX-760A, 1.00, max UDMA/66
ata5.00: configured for UDMA/66
scsi 4:0:0:0: CD-ROM PLEXTOR DVDR PX-760A 1.00 PQ: 0 ANSI: 5
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
sr 4:0:0:0: Attached scsi CD-ROM sr0
sr 4:0:0:0: Attached scsi generic sg0 type 5
Fusion MPT base driver 3.04.06
Copyright (c) 1999-2007 LSI Corporation
Fusion MPT SPI Host driver 3.04.06
ACPI: PCI Interrupt 0000:06:06.0[A] -> GSI 18 (level, low) -> IRQ 18
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[18] MMIO=[fa114000-fa1147ff] Max Packet=[2048] IR/IT contexts=[4/8]
ieee1394: raw1394: /dev/raw1394 device initialized
ACPI: PCI Interrupt 0000:00:1a.7[C] -> GSI 18 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:00:1a.7 to 64
ehci_hcd 0000:00:1a.7: EHCI Host Controller
ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 1
PCI: cache line size of 32 is not supported by device 0000:00:1a.7
ehci_hcd 0000:00:1a.7: irq 18, io mem 0xfa205000
ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 23 (level, low) -> IRQ 23
PCI: Setting latency timer of device 0000:00:1d.7 to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 2
PCI: cache line size of 32 is not supported by device 0000:00:1d.7
ehci_hcd 0000:00:1d.7: irq 23, io mem 0xfa204000
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 6 ports detected
USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt 0000:00:1a.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:1a.0 to 64
uhci_hcd 0000:00:1a.0: UHCI Host Controller
uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1a.0: irq 16, io base 0x0000e100
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
usb 1-1: new high speed USB device using ehci_hcd and address 2
ACPI: PCI Interrupt 0000:00:1a.1[B] -> GSI 21 (level, low) -> IRQ 21
PCI: Setting latency timer of device 0000:00:1a.1 to 64
uhci_hcd 0000:00:1a.1: UHCI Host Controller
uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1a.1: irq 21, io base 0x0000e200
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
ACPI: PCI Interrupt 0000:00:1a.2[C] -> GSI 18 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:00:1a.2 to 64
uhci_hcd 0000:00:1a.2: UHCI Host Controller
uhci_hcd 0000:00:1a.2: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1a.2: irq 18, io base 0x0000e000
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 23 (level, low) -> IRQ 23
PCI: Setting latency timer of device 0000:00:1d.0 to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 6
uhci_hcd 0000:00:1d.0: irq 23, io base 0x0000e300
usb usb6: configuration #1 chosen from 1 choice
hub 6-0:1.0: USB hub found
hub 6-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:00:1d.1 to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 7
uhci_hcd 0000:00:1d.1: irq 19, io base 0x0000e400
usb usb7: configuration #1 chosen from 1 choice
hub 7-0:1.0: USB hub found
hub 7-0:1.0: 2 ports detected
usb 2-1: new high speed USB device using ehci_hcd and address 2
ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:00:1d.2 to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 8
uhci_hcd 0000:00:1d.2: irq 18, io base 0x0000e500
usb usb8: configuration #1 chosen from 1 choice
hub 8-0:1.0: USB hub found
hub 8-0:1.0: 2 ports detected
usb 2-1: configuration #1 chosen from 1 choice
usb 2-3: new high speed USB device using ehci_hcd and address 3
ieee1394: Host added: ID:BUS[0-00:1023] GUID[00cbbb0b00001a4d]
usb 2-3: configuration #1 chosen from 1 choice
usb 1-1.4: new low speed USB device using ehci_hcd and address 3
usb 1-1.4: configuration #1 chosen from 1 choice
usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04E8 pid 0x328D
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
scsi6 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /class/input/input2
device-mapper: ioctl: 4.13.0-ioctl (2007-10-18) initialised: dm-devel@redhat.com
cpuidle: using governor ladder
input: Logitech USB-PS/2 Optical Mouse as /class/input/input3
input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:1a.7-1.4
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.16rc2 (Thu Jan 31 16:40:16 2008 UTC).
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 22 (level, low) -> IRQ 22
PCI: Setting latency timer of device 0000:00:1b.0 to 64
hda_codec: Unknown model for ALC882, trying auto-probe from BIOS...
ALSA device list:
#0: HDA Intel at 0xfa200000 irq 22
oprofile: using NMI interrupt.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
SCTP: Hash tables configured (established 65536 bind 65536)
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 368k freed
scsi 6:0:0:0: Direct-Access OTi CF CARD Reader 2.00 PQ: 0 ANSI: 0 CCS
sd 6:0:0:0: [sda] Attached SCSI removable disk
sd 6:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
nvidia: module license 'NVIDIA' taints kernel.
ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:01:00.0 to 64
NVRM: loading NVIDIA UNIX x86_64 Kernel Module 173.14.09 Wed Jun 4 23:40:50 PDT 2008
EXT3 FS on hda7, internal journal
NTFS volume version 3.1.
Adding 1959888k swap on /dev/hda6. Priority:-1 extents:1 across:1959888k
r8169: eth0: link up
r8169: eth0: link up
eth0: no IPv6 routers present
usb 2-4: new high speed USB device using ehci_hcd and address 4
usb 2-4: configuration #1 chosen from 1 choice
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
scsi 7:0:0:0: Direct-Access USB 2.0 Flash Disk 0.00 PQ: 0 ANSI: 2
sd 7:0:0:0: [sdb] 4030463 512-byte hardware sectors (2064 MB)
sd 7:0:0:0: [sdb] Write Protect is off
sd 7:0:0:0: [sdb] Mode Sense: 00 00 00 00
sd 7:0:0:0: [sdb] Assuming drive cache: write through
sd 7:0:0:0: [sdb] 4030463 512-byte hardware sectors (2064 MB)
sd 7:0:0:0: [sdb] Write Protect is off
sd 7:0:0:0: [sdb] Mode Sense: 00 00 00 00
sd 7:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 7:0:0:0: [sdb] Attached SCSI removable disk
sd 7:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
Back to top
View user's profile Send private message
whig
l33t
l33t


Joined: 27 Nov 2004
Posts: 973
Location: New Zealand

PostPosted: Sun Sep 07, 2008 7:13 am    Post subject: Reply with quote

Don't worry too much about the warnings in red - I get them too :)

The kernel hard disk driver I use is the SATA one. Here all sata/ide/usb disks are counted up from sda, with sata devices first. Optical drives go from sr0. As usb pen drives can be plugged into any available port, plugged in an any arbitrary order, their assignment as device nodes is going to be pretty random too. Udev and volume IDs/labels come to the rescue.
Back to top
View user's profile Send private message
Black Imp
Apprentice
Apprentice


Joined: 09 Oct 2004
Posts: 168

PostPosted: Sun Sep 07, 2008 10:58 am    Post subject: Reply with quote

whig wrote:
Don't worry too much about the warnings in red - I get them too :)

The kernel hard disk driver I use is the SATA one.


ehm... what have I used instead? what should I deselect?

Quote:

Here all sata/ide/usb disks are counted up from sda, with sata devices first. Optical drives go from sr0. As usb pen drives can be plugged into any available port, plugged in an any arbitrary order, their assignment as device nodes is going to be pretty random too. Udev and volume IDs/labels come to the rescue.


OK thank you
:)

It's clear to me what I have to do with USB and udev rule file but I would like to know now if It's convenient to write similar rules to have sata hd's named sd* instead of hd* and optical disc consequently.

what do you suggest then? changing drivers - could you cite me the menu config line to deselect and the one to selct in its place? - or writing rules for all discs?
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Sun Sep 07, 2008 2:56 pm    Post subject: Re: How to let users mount usb? Reply with quote

Black Imp wrote:
I've just installed Gentoo on a Gigabyte x38 ds5.
First of all it's weird what happened to hd 's names: installation cd recognized sata discs as sda and sdb while installed system assigned them hda and hdc, while sdb it's the usb hub.
By the way to mount a usb key I have to type
Code:
mount /dev/sdb1 /usb"
and it works as root.
I created a user with groups plugdev, usb... and so on but he's not allowed to mount usb as well. what did I miss?
thank you
Provided you have set up your system properly, using pmount or pmount-hal instead of just mount should enable a user to mount usb disks/drives. (You don't need to install ivman, but you will need pmount.)
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
whig
l33t
l33t


Joined: 27 Nov 2004
Posts: 973
Location: New Zealand

PostPosted: Mon Sep 08, 2008 6:20 am    Post subject: Reply with quote

Black Imp wrote:
ehm... what have I used instead? what should I deselect?

I got rid of the old ATA driver, it created performance problems when used with the SATA one at the same time. Note that modules may be preferable in your situation.
Code:
-*- Plug and Play support  --->
[*] Block devices  --->
[*] Misc devices  --->
< > ATA/ATAPI/MFM/RLL support  --->
    SCSI device support  --->
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers --->
[ ] Multiple devices driver support (RAID and LVM)  --->
[ ] Fusion MPT device support  --->
Back to top
View user's profile Send private message
Black Imp
Apprentice
Apprentice


Joined: 09 Oct 2004
Posts: 168

PostPosted: Mon Sep 08, 2008 11:23 pm    Post subject: Reply with quote

GREAT! deselected the old ata drivers and disk naming is as usual: sd* for sata disks.

there still one issue with usb: from
Code:
ls /dev/sd*
I get my sata discs and many sd* one for each slot of the card reader more one - i don't know what it is -
If I boot with a memory card inserted in one slot it's seen as sde1. if i insert it after booting it's not seen at all.
beside if i boot with a pendrive plugged it's seen as sdc1

/dev/sda /dev/sda1 /dev/sda2 /dev/sda5 /dev/sda6 /dev/sda7 /dev/sdb /dev/sdb1 /dev/sdc /dev/sdc1 /dev/sdd /dev/sde /dev/sdf /dev/sdg

but i plug it only after booting it's seen as sdg1

actually they are 2 different issues and the bothering one is the memory cards not readable if not already inserted when booting.
Back to top
View user's profile Send private message
whig
l33t
l33t


Joined: 27 Nov 2004
Posts: 973
Location: New Zealand

PostPosted: Tue Sep 09, 2008 5:43 am    Post subject: Reply with quote

I can't help much re memory cards as I don't have one. Nevertheless running "udevadm info --export-db | less" should give data for you to write your own udev rule just like pen drives. Not seeing the card at all is indeed a bigger issue. Did you watch logs as well as looking for devices nodes?
Back to top
View user's profile Send private message
Black Imp
Apprentice
Apprentice


Joined: 09 Oct 2004
Posts: 168

PostPosted: Tue Sep 09, 2008 9:37 am    Post subject: Reply with quote

you mean by dmesg?
Back to top
View user's profile Send private message
whig
l33t
l33t


Joined: 27 Nov 2004
Posts: 973
Location: New Zealand

PostPosted: Wed Sep 10, 2008 4:38 am    Post subject: Reply with quote

Yes, and udev debug mode triggered entries.
Back to top
View user's profile Send private message
Black Imp
Apprentice
Apprentice


Joined: 09 Oct 2004
Posts: 168

PostPosted: Wed Sep 10, 2008 11:28 am    Post subject: Reply with quote

well the reader is seen as Oti card reader. I think I'll study how udev works and its files for what concerining usb pendrive and I'll get some information later about the card reader. I 'm not sure what kernel flags to select
thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum