Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel initramfs does not detect usb harddrive
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
d.bahrt
n00b
n00b


Joined: 13 Dec 2007
Posts: 23
Location: Germany

PostPosted: Thu Oct 15, 2009 9:01 am    Post subject: genkernel initramfs does not detect usb harddrive Reply with quote

Hello,
I'm trying to install gentoo on an external usb harddrive. I have compiled the system in a chroot environment and copied it to the drive.
Booting into the initramfs works but then it doesn't find my external drive though usb-massstorage works as it detects my usb flash drive.

dmesg:
Code:

x4000-0x4fff
pci 0000:00:1e.0:   MEM window: 0xb8000000-0xb80fffff
pci 0000:00:1e.0:   PREFETCH window: 0x00000088000000-0x0000008dffffff
  alloc irq_desc for 17 on cpu 0 node 0
  alloc kstat_irqs on cpu 0 node 0
pci 0000:00:1c.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
pci 0000:00:1c.0: setting latency timer to 64
pci 0000:00:1e.0: setting latency timer to 64
pci 0000:02:09.0: power state changed by ACPI to D0
  alloc irq_desc for 16 on cpu 0 node 0
  alloc kstat_irqs on cpu 0 node 0
pci 0000:02:09.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffff]
pci_bus 0000:01: resource 0 io:  [0x3000-0x3fff]
pci_bus 0000:01: resource 1 mem: [0xb4000000-0xb7ffffff]
pci_bus 0000:01: resource 2 pref mem [0xd0000000-0xd3ffffff]
pci_bus 0000:02: resource 0 io:  [0x4000-0x4fff]
pci_bus 0000:02: resource 1 mem: [0xb8000000-0xb80fffff]
pci_bus 0000:02: resource 2 pref mem [0x88000000-0x8dffffff]
pci_bus 0000:02: resource 3 io:  [0x00-0xffff]
pci_bus 0000:02: resource 4 mem: [0x000000-0xffffffff]
pci_bus 0000:03: resource 0 io:  [0x4000-0x40ff]
pci_bus 0000:03: resource 1 io:  [0x4400-0x44ff]
pci_bus 0000:03: resource 2 pref mem [0x88000000-0x8bffffff]
pci_bus 0000:03: resource 3 mem: [0x90000000-0x93ffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 1383k freed
Simple Boot Flag at 0x36 set to 0x1
Machine check exception polling timer started.
Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
Scanning for low memory corruption every 60 seconds
audit: initializing netlink socket (disabled)
type=2000 audit(1255603528.276:1): initialized
highmem bounce pool size: 64 pages
HugeTLB registered 4 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Loading Reiser4. See www.namesys.com for a description of Reiser4.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NTFS driver 2.1.29 [Flags: R/W].
fuse init (API version 7.11)
JFS: nTxBlock = 8192, nTxLock = 65536
SGI XFS with ACLs, security attributes, no debug enabled
Btrfs loaded
aufs 2-30
msgmni has been set to 1722
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler fifo registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
io scheduler bfq registered
io scheduler vr registered
pci 0000:00:02.0: Boot video device
  alloc irq_desc for 24 on cpu 0 node 0
  alloc kstat_irqs on cpu 0 node 0
pcieport-driver 0000:00:1c.0: irq 24 for MSI/MSI-X
pcieport-driver 0000:00:1c.0: setting latency timer to 64
Non-volatile memory driver v1.3
intel_rng: FWH not detected
Linux agpgart interface v0.103
ACPI: AC Adapter [ADP1] (off-line)
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
input: Lid Switch as /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input1
ACPI: Lid Switch [LID0]
input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input2
ACPI: Power Button [PWRB]
input: Sleep Button as /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input3
ACPI: Sleep Button [SLPB]
fan PNP0C0B:00: registered as cooling_device0
ACPI: Fan [FAN1] (on)
Marking TSC unstable due to TSC halts in idle
Switched to high resolution mode on CPU 0
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3] C4[C3])
processor ACPI_CPU:00: registered as cooling_device1
ACPI: Processor [CPU0] (supports 2 throttling states)
thermal LNXTHERM:01: registered as thermal_zone0
ACPI: Thermal Zone [THRM] (26 C)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
  alloc irq_desc for 20 on cpu 0 node 0
  alloc kstat_irqs on cpu 0 node 0
serial 0000:00:1e.3: PCI INT B -> GSI 20 (level, low) -> IRQ 20
serial 0000:00:1e.3: PCI INT B disabled
ACPI: Battery Slot [BAT1] (battery present)
brd: module loaded
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide_generic: please use "probe_mask=0x3f" module parameter for probing all legacy ISA IDE ports
ide-gd driver 1.18
Driver 'sd' needs updating - please use bus_type methods
ata_piix 0000:00:1f.1: version 2.13
  alloc irq_desc for 18 on cpu 0 node 0
  alloc kstat_irqs on cpu 0 node 0
ata_piix 0000:00:1f.1: PCI INT A -> GSI 18 (level, low) -> IRQ 18
ata_piix 0000:00:1f.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x1810 irq 14
ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x1818 irq 15
Intel(R) PRO/1000 Network Driver - version 7.3.21-k3-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e1000e: Intel(R) PRO/1000 Network Driver - 0.3.3.4-k4
e1000e: Copyright (c) 1999-2008 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
sky2 driver version 1.22
Fixed MDIO Bus: probed
yenta_cardbus 0000:02:09.0: CardBus bridge found [144d:c01a]
ata1.00: HPA detected: current 155556817, native 156368016
ata1.00: ATA-7: SAMSUNG MP0804H, YS200-04, max UDMA/100
ata1.00: 155556817 sectors, multi 16: LBA48
ata1.01: ATAPI: TSSTcorpCD/DVDW TS-L632B, TM32, max UDMA/33
ata1.00: configured for UDMA/100
ata1.01: configured for UDMA/33
scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG MP0804H  YS20 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 155556817 512-byte hardware sectors: (79.6 GB/74.1 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda:<5>sd 0:0:0:0: Attached scsi generic sg0 type 0
 sda1 sda2 < sda5<5>scsi 0:0:1:0: CD-ROM            TSSTcorp CD/DVDW TS-L632B TM32 PQ: 0 ANSI: 5
scsi 0:0:1:0: Attached scsi generic sg1 type 5
ata2: port disabled. ignoring.
 sda6 sda7 sda8 sda9 sda10 >
sd 0:0:0:0: [sda] Attached SCSI disk
yenta_cardbus 0000:02:09.0: ISA IRQ mask 0x0cb8, PCI irq 16
yenta_cardbus 0000:02:09.0: Socket status: 30000006
yenta_cardbus 0000:02:09.0: pcmcia: parent PCI bridge I/O window: 0x4000 - 0x4fff
yenta_cardbus 0000:02:09.0: pcmcia: parent PCI bridge Memory window: 0xb8000000 - 0xb80fffff
yenta_cardbus 0000:02:09.0: pcmcia: parent PCI bridge Memory window: 0x88000000 - 0x8dffffff
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  alloc irq_desc for 23 on cpu 0 node 0
  alloc kstat_irqs on cpu 0 node 0
ehci_hcd 0000:00:1d.7: PCI INT A -> GSI 23 (level, low) -> IRQ 23
ehci_hcd 0000:00:1d.7: setting latency timer to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1d.7: debug port 1
ehci_hcd 0000:00:1d.7: cache line size of 32 is not supported
ehci_hcd 0000:00:1d.7: irq 23, io mem 0xb0040000
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.30-zen6 ehci_hcd
usb usb1: SerialNumber: 0000:00:1d.7
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
uhci_hcd 0000:00:1d.0: setting latency timer to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1d.0: irq 23, io base 0x00001820
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: UHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.30-zen6 uhci_hcd
usb usb2: SerialNumber: 0000:00:1d.0
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
  alloc irq_desc for 19 on cpu 0 node 0
  alloc kstat_irqs on cpu 0 node 0
uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 19 (level, low) -> IRQ 19
uhci_hcd 0000:00:1d.1: setting latency timer to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1d.1: irq 19, io base 0x00001840
usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: UHCI Host Controller
usb usb3: Manufacturer: Linux 2.6.30-zen6 uhci_hcd
usb usb3: SerialNumber: 0000:00:1d.1
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
uhci_hcd 0000:00:1d.2: setting latency timer to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1d.2: irq 18, io base 0x00001860
usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb4: Product: UHCI Host Controller
usb usb4: Manufacturer: Linux 2.6.30-zen6 uhci_hcd
usb usb4: SerialNumber: 0000:00:1d.2
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.3: PCI INT D -> GSI 16 (level, low) -> IRQ 16
uhci_hcd 0000:00:1d.3: setting latency timer to 64
uhci_hcd 0000:00:1d.3: UHCI Host Controller
uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1d.3: irq 16, io base 0x00001880
usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb5: Product: UHCI Host Controller
usb usb5: Manufacturer: Linux 2.6.30-zen6 uhci_hcd
usb usb5: SerialNumber: 0000:00:1d.3
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
i8042.c: Detected active multiplexing controller, rev 1.1.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX0 port at 0x60,0x64 irq 12
serio: i8042 AUX1 port at 0x60,0x64 irq 12
serio: i8042 AUX2 port at 0x60,0x64 irq 12
serio: i8042 AUX3 port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:07: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
i801_smbus 0000:00:1f.3: PCI INT B -> GSI 19 (level, low) -> IRQ 19
device-mapper: ioctl: 4.14.0-ioctl (2008-04-23) initialised: dm-devel@redhat.com
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.20.
ALSA device list:
  No soundcards found.
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
ctnetlink v0.93: registering with nfnetlink.
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
ip6_tables: (C) 2000-2006 Netfilter Core Team
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
Using IPI No-Shortcut mode
registered taskstats version 1
  Magic number: 13:446:780
Freeing unused kernel memory: 456k freed
Write protecting the kernel text: 5760k
Write protecting the kernel read-only data: 2264k
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
usb 1-2: new high speed USB device using ehci_hcd and address 2
usb 1-2: New USB device found, idVendor=04b4, idProduct=6830
usb 1-2: New USB device strings: Mfr=56, Product=78, SerialNumber=100
usb 1-2: Product: USB2.0 Storage Device
usb 1-2: Manufacturer: Cypress Semiconductor
usb 1-2: SerialNumber: DEF107679C83
usb 1-2: configuration #1 chosen from 1 choice
Synaptics Touchpad, model: 1, fw: 6.1, id: 0x2580b1, caps: 0xa04713/0x200000
input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio4/input/input5
Driver 'sr' needs updating - please use bus_type methods
sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 0:0:1:0: Attached scsi CD-ROM sr0
sl811: driver sl811-hcd, 19 May 2005
ohci1394 0000:02:09.1: power state changed by ACPI to D0
ohci1394 0000:02:09.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[17]  MMIO=[b8003000-b80037ff]  Max Packet=[2048]  IR/IT contexts=[4/4]
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
raid6: int32x1    277 MB/s
raid6: int32x2    316 MB/s
raid6: int32x4    250 MB/s
raid6: int32x8    214 MB/s
raid6: mmxx1      789 MB/s
raid6: mmxx2      929 MB/s
raid6: sse1x1     648 MB/s
raid6: sse1x2     925 MB/s
raid6: sse2x1    1042 MB/s
raid6: sse2x2    1183 MB/s
raid6: using algorithm sse2x2 (1183 MB/s)
async_tx: api initialized (sync-only)
xor: automatically using best checksumming function: pIII_sse
   pIII_sse  :  2112.000 MB/sec
xor: using function: pIII_sse (2112.000 MB/sec)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
md: raid10 personality registered for level 10
Clocksource tsc unstable (delta = -345928757 ns)
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[0000f041200ed8e0]
usb 1-3: new high speed USB device using ehci_hcd and address 3
usb 1-3: New USB device found, idVendor=04e8, idProduct=1a23
usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-3: Product: Mighty Drive   
usb 1-3: Manufacturer: Samsung
usb 1-3: SerialNumber: 076B1180002A
usb 1-3: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 2:0:0:0: Direct-Access     Samsung  Mighty Drive     PMAP PQ: 0 ANSI: 0 CCS
sd 2:0:0:0: Attached scsi generic sg2 type 0
sd 2:0:0:0: [sdb] 4029440 512-byte hardware sectors: (2.06 GB/1.92 GiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 23 00 00 00
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] Attached SCSI removable disk
usb 1-2: USB disconnect, address 2
usb 1-2: new high speed USB device using ehci_hcd and address 4
usb 1-2: New USB device found, idVendor=04b4, idProduct=6830
usb 1-2: New USB device strings: Mfr=56, Product=78, SerialNumber=100
usb 1-2: Product: USB2.0 Storage Device
usb 1-2: Manufacturer: Cypress Semiconductor
usb 1-2: SerialNumber: DEF107679C83
usb 1-2: configuration #1 chosen from 1 choice


I have tried it with 2.6.30-zen6 and 2.6.30-gentoo-r6.
I have played around with the kernel-config and googled for more than 4 hours without success.
The exernal harddrive is detect as mass-storage device by my gentoo on my internal hd.
I'd appreciate any help you can give me.
Back to top
View user's profile Send private message
ExZombie
Apprentice
Apprentice


Joined: 29 May 2004
Posts: 164

PostPosted: Thu Oct 15, 2009 2:56 pm    Post subject: Reply with quote

Works for me. I'm using
Code:
genkernel --oldconfig --disklabel initramfs

because I need it only for initramfs, I install the kernel manually. And for GRUB:
Code:
kernel /boot/kernel-2.6.31-gentoo-r1 root=/dev/ram0 real_root=UUID=c91b23cd-d4b8-49ca-9e2c-cbcb1e8b3fe3 scandelay=3

Plus the initrd line, of course. You might need to increase scandelay.

The only reason I use an initramfs is that I want to boot using UUIDs. If you are sure that your drive will always be on /dev/sda, you don't need an initramfs. Just boot to /dev/sda, but use the 'rootwait' kernel parameter. You need it because USB drives take a while to appear and the kernel panics without it.
Back to top
View user's profile Send private message
d.bahrt
n00b
n00b


Joined: 13 Dec 2007
Posts: 23
Location: Germany

PostPosted: Thu Oct 15, 2009 3:22 pm    Post subject: Reply with quote

I tried it with scandelay=10 without any change.
But as you can see in the dmesg log I have unplugged/plugged the external harddrive after plugging in my flash drive and the kernel didn't add it as massstorage device
Back to top
View user's profile Send private message
d.bahrt
n00b
n00b


Joined: 13 Dec 2007
Posts: 23
Location: Germany

PostPosted: Fri Oct 16, 2009 6:21 am    Post subject: Reply with quote

I got it working with my standard kernel config. Now I'll add more modules and see what happens.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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