PDA

View Full Version : Hard drives in dmesg, but cannot access with fdisk



britthouser
12-16-2003, 01:46 PM
I am trying to setup a fileserver to run from Customized Knoppix CD. I have four 80GB ide drives attached to two Promise Ultra100TX2 controllers in the system. When the system boots, I see all four drives detected in dmesg, but when I do fdisk, I can only access the first two. I tried with Standard Knoppix 3.3-11/19 and 3.3-11/14 and neither let me fdisk the second two drives. The drives do show up n /proc/ide though. The following is output:

root@ttyS1[root]# dmesg
Linux version 2.4.22-xfs (root@Knoppix) (gcc version 2.95.4 20011002 (Debian pre
release)) #1 SMP Fr Okt 3 20:36:25 CEST 2003
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000020000000 (usable)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fffe0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
512MB LOWMEM available.
found SMP MP-table at 000fba50
hm, page 000fb000 reserved twice.
hm, page 000fc000 reserved twice.
hm, page 000f7000 reserved twice.
hm, page 000f8000 reserved twice.
On node 0 totalpages: 131072
zone(0): 4096 pages.
zone(1): 126976 pages.
zone(2): 0 pages.
DMI not present.
Intel MultiProcessor Specification v1.1
Virtual Wire compatibility mode.
OEM ID: INTEL Product ID: 440FX APIC at: 0xFEE00000
Processor #1 Pentium(tm) Pro APIC version 17
Processor #0 Pentium(tm) Pro APIC version 17
I/O APIC #2 Version 17 at 0xFEC00000.
Enabling APIC mode: Flat. Using 1 I/O APICs
Processors: 2
Kernel command line: ramdisk_size=100000 init=/etc/init lang=us apm=power-off hd
a=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 in
itrd=miniroot.gz nomce quiet BOOT_IMAGE=knoppix console=tty0 console=ttyS1,9600n
8 BOOT_IMAGE=vmlinuz
ide_setup: hda=scsi
ide_setup: hdb=scsi
ide_setup: hdc=scsi
ide_setup: hdd=scsi
ide_setup: hde=scsi
ide_setup: hdf=scsi
ide_setup: hdg=scsi
ide_setup: hdh=scsi
Initializing CPU#0
Detected 299.150 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 596.37 BogoMIPS
Memory: 514832k/524288k available (1262k kernel code, 9068k reserved, 534k data,
132k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU: After generic, caps: 0080fbff 00000000 00000000 00000000
CPU: Common caps: 0080fbff 00000000 00000000 00000000
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU: After generic, caps: 0080fbff 00000000 00000000 00000000
CPU: Common caps: 0080fbff 00000000 00000000 00000000
CPU0: Intel Pentium II (Klamath) stepping 04
per-CPU timeslice cutoff: 1462.89 usecs.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000004
ESR value after enabling vector: 00000000
Booting processor 1/0 eip 2000
Initializing CPU#1
masked ExtINT on CPU#1
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Calibrating delay loop... 598.01 BogoMIPS
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
CPU: After generic, caps: 0080fbff 00000000 00000000 00000000
CPU: Common caps: 0080fbff 00000000 00000000 00000000
CPU1: Intel Pentium II (Klamath) stepping 03
Total of 2 processors activated (1194.39 BogoMIPS).
ENABLING IO-APIC IRQs
Setting 2 in the phys_id_present_map
...changing IO-APIC physical APIC ID to 2 ... ok.
init IO_APIC IRQs
IO-APIC (apicid-pin) 2-0, 2-20, 2-21, 2-22, 2-23 not connected.
..TIMER: vector=0x31 pin1=2 pin2=0
number of MP IRQ sources: 25.
number of IO-APIC #2 registers: 24.
testing the IO APIC.......................

IO APIC #2......
.... register #00: 02000000
....... : physical APIC id: 02
....... : Delivery Type: 0
....... : LTS : 0
.... register #01: 00170011
....... : max redirection entries: 0017
....... : PRQ implemented: 0
....... : IO APIC version: 0011
.... register #02: 00000000
....... : arbitration: 00
.... IRQ redirection table:
NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:
00 000 00 1 0 0 0 0 0 0 00
01 003 03 0 0 0 0 0 1 1 39
02 003 03 0 0 0 0 0 1 1 31
03 003 03 0 0 0 0 0 1 1 41
04 003 03 0 0 0 0 0 1 1 49
05 003 03 0 0 0 0 0 1 1 51
06 003 03 0 0 0 0 0 1 1 59
07 003 03 0 0 0 0 0 1 1 61
08 003 03 0 0 0 0 0 1 1 69
09 003 03 0 0 0 0 0 1 1 71
0a 003 03 0 0 0 0 0 1 1 79
0b 003 03 0 0 0 0 0 1 1 81
0c 003 03 0 0 0 0 0 1 1 89
0d 003 03 0 0 0 0 0 1 1 91
0e 003 03 0 0 0 0 0 1 1 99
0f 003 03 0 0 0 0 0 1 1 A1
10 003 03 1 1 0 1 0 1 1 A9
11 003 03 1 1 0 1 0 1 1 B1
12 003 03 1 1 0 1 0 1 1 B9
13 003 03 1 1 0 1 0 1 1 C1
14 000 00 1 0 0 0 0 0 0 00
15 000 00 1 0 0 0 0 0 0 00
16 000 00 1 0 0 0 0 0 0 00
17 000 00 1 0 0 0 0 0 0 00
IRQ to pin mappings:
IRQ0 -> 0:2
IRQ1 -> 0:1
IRQ3 -> 0:3
IRQ4 -> 0:4
IRQ5 -> 0:5
IRQ6 -> 0:6IRQ7 -> 0:7
IRQ8 -> 0:8
IRQ9 -> 0:9
IRQ10 -> 0:10
IRQ11 -> 0:11
IRQ12 -> 0:12
IRQ13 -> 0:13
IRQ14 -> 0:14
IRQ15 -> 0:15
IRQ16 -> 0:16
IRQ17 -> 0:17
IRQ18 -> 0:18
IRQ19 -> 0:19
.................................... done.
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 299.1362 MHz.
..... host bus clock speed is 66.4745 MHz.
cpu: 0, clocks: 664745, slice: 221581
CPU0<T0:664736,T1:443152,D:3,S:221581,C:664745>
cpu: 1, clocks: 664745, slice: 221581
CPU1<T0:664736,T1:221568,D:6,S:221581,C:664745>
checking TSC synchronization across CPUs: passed.
Waiting on wait_init_idle (map = 0x2)
All processors have done init_idle
PCI: PCI BIOS revision 2.10 entry at 0xfdba1, last bus=0
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI->APIC IRQ transform: (B0,I10,P0) -> 16
PCI->APIC IRQ transform: (B0,I11,P0) -> 16
PCI->APIC IRQ transform: (B0,I12,P0) -> 18
PCI->APIC IRQ transform: (B0,I13,P0) -> 17
PCI->APIC IRQ transform: (B0,I14,P0) -> 16
Limiting direct PCI/PCI transfers.
Activating ISA DMA hang workarounds.
isapnp: Scanning for PnP cards...
isapnp: Card 'iomega 4Mb/S PNP tape controller'
isapnp: 1 Plug & Play card detected total
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
vesafb: framebuffer at 0xf8000000, mapped to 0xe080d000, size 3072k
vesafb: mode is 1024x768x16, linelength=2048, pages=1
vesafb: protected mode interface info at c000:5993
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
Console: switching to colour frame buffer device 128x48
fb0: VESA VGA frame buffer device
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 100000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX3: IDE controller at PCI slot 00:07.1
PIIX3: chipset revision 0
PIIX3: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:pio, hdd:pio
PDC20268: IDE controller at PCI slot 00:0e.0
PDC20268: chipset revision 2
PDC20268: not 100% native mode: will probe irqs later
PDC20268: ROM enabled at 0xfebe8000
ide2: BM-DMA at 0xef90-0xef97, BIOS settings: hde:pio, hdf:pio
ide3: BM-DMA at 0xef98-0xef9f, BIOS settings: hdg:pio, hdh:pio
PDC20268: IDE controller at PCI slot 00:0d.0
PDC20268: chipset revision 2
PDC20268: not 100% native mode: will probe irqs later
PDC20268: ROM enabled at 0xfebe0000
ide4: BM-DMA at 0xef60-0xef67, BIOS settings: hdi:pio, hdj:pio
ide5: BM-DMA at 0xef68-0xef6f, BIOS settings: hdk:pio, hdl:pio
hda: MATSHITA CR-583, ATAPI CD/DVD-ROM drive
hde: WDC WD800JB-00CRA1, ATA DISK drive
hdg: WDC WD800JB-00CRA1, ATA DISK drive
hdi: WDC WD800JB-00ETA0, ATA DISK drive
hdk: WDC WD800JB-00CRA1, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide2 at 0xeff0-0xeff7,0xefe6 on irq 16
ide3 at 0xefa8-0xefaf,0xefe2 on irq 16
ide4 at 0xefa0-0xefa7,0xef8e on irq 17
ide5 at 0xef80-0xef87,0xef8a on irq 17
hde: attached ide-disk driver.
hde: host protected area => 1
hde: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=155061/16/63
hdg: attached ide-disk driver.
hdg: host protected area => 1
hdg: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=155061/16/63
hdi: attached ide-disk driver.
hdi: host protected area => 1
hdi: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=9729/255/63
hdk: attached ide-disk driver.
hdk: host protected area => 1
hdk: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=155061/16/63
ide-cd: passing drive hda to ide-scsi emulation.
hda: attached ide-scsi driver.
Partition check:
hde: hde1
hdg: hdg1
hdi: hdi1 hdi2 < hdi5 hdi6 hdi7 hdi8 hdi9 hdi10 hdi11 hdi12 hdi13 >
hdk: hdk1
ide: late registration of driver.
Promise Fasttrak(tm) Softwareraid driver 0.03beta: No raid array found
Highpoint HPT370 Softwareraid driver for linux version 0.02
Guestimating sector 156300463 for superblock
Guestimating sector 156300463 for superblock
Guestimating sector 156280064 for superblock
Guestimating sector 156300463 for superblock
driver for Silicon Image(tm) Medley(tm) hardware version 0.0.1: No raid array fo
und
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: MATSHITA Model: CD-ROM CR-583 Rev: BE34
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 8x/8x xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 131072 bind 65536)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 478k freed
VFS: Mounted root (ext2 filesystem).
NCR53c406a: no available ports found
aec671x_detect:
scsi: <fdomain> Detection failed (no card)
GDT: Storage RAID Controller Driver. Version: 2.05
GDT: Found 0 PCI Storage RAID Controllers
megaraid: v1.18f (Release Date: Tue Dec 10 09:54:39 EST 2002)
megaraid: no BIOS enabled.
DC390: 0 adapters found
Failed initialization of WD-7000 SCSI card!
ISO 9660 Extensions: Microsoft Joliet Level 3
kmod: failed to exec /sbin/modprobe -s -k nls_iso8859-1, errno = 2
kmod: failed to exec /sbin/modprobe -s -k nls_iso8859-1, errno = 2
ISO 9660 Extensions: RRIP_1991A
cloop: Initializing cloop v2.00
cloop: /cdrom/KNOPPIX/KNOPPIX: 26052 blocks, 65536 bytes/block, largest block is
65562 bytes.
cloop: loaded (max 8 devices)
ISO 9660 Extensions: RRIP_1991A
Freeing unused kernel memory: 132k freed
Real Time Clock Driver v1.10e
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
apm: disabled - APM is not SMP safe (power off active).
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
Intel PCIC probe: not found.
Databook TCIC-2 PCMCIA probe: not found.
unloading Kernel Card Services
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 20:50:29 Oct 3 2003
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: deregistering driver usbdevfs
usb.c: deregistering driver hub
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI IS
APNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
parport0: PC-style at 0x378 [PCSPP,TRISTATE,EPP]
parport0: irq 7 detected
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
See Documentation/networking/vortex.txt
00:0c.0: 3Com PCI 3c905 Boomerang 100baseTx at 0xef00. Vers LK1.1.18-ac
00:10:4b:1f:6f:fb, IRQ 18
product code 4d4e rev 00.0 date 12-27-97
Internal config register is 16302d8, transceivers 0xe040.
8K word-wide RAM 3:5 Rx:Tx split, autoselect/MII interface.
MII transceiver found at address 24, status 786f.
Enabling bus-master transmits and whole-frame receives.
00:0c.0: scatter/gather enabled. h/w checksums disabled
eth0: Dropping NETIF_F_SG since no checksum feature.
See Documentation/networking/vortex.txt
00:0b.0: 3Com PCI 3c905 Boomerang 100baseTx at 0xee80. Vers LK1.1.18-ac
00:60:97:c9:d0:5e, IRQ 16
product code 4848 rev 00.0 date 04-15-97
Internal config register is 16302d8, transceivers 0xe040.
8K word-wide RAM 3:5 Rx:Tx split, autoselect/MII interface.
MII transceiver found at address 24, status 7849.
Enabling bus-master transmits and whole-frame receives.
00:0b.0: scatter/gather enabled. h/w checksums disabled
eth1: Dropping NETIF_F_SG since no checksum feature.
Journalled Block Device driver loaded
VFS: Can't find ext3 filesystem on dev ide3(34,1).
VFS: Can't find ext2 filesystem on dev ide3(34,1).
Unable to identify CD-ROM format.
sh-2021: reiserfs_read_super: can not find reiserfs on ide3(34,1)
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 22:01.
SGI XFS snapshot 2.4.22-2003-09-03_04:09_UTC with ACLs, realtime, no debug enabl
ed
SGI XFS Quota Management subsystem
XFS: bad magic number
XFS: SB validate failed
NTFS driver v1.1.22 [Flags: R/W MODULE]
VFS: Can't find a Minix or Minix V2 filesystem on device 22:01.
VFS: Can't find a HFS filesystem on dev 22:01.
EFS: 1.0a - http://aeschi.ch.eu.org/efs/
root@ttyS1[root]# fdisk -l

Disk /dev/hdg: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hdg1 * 1 155061 78150712+ fd Linux raid autodetect

Disk /dev/hde: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hde1 * 1 155061 78150712+ fd Linux raid autodetect
root@ttyS1[root]# fdisk -l /dev/hdi
root@ttyS1[root]# fdisk -l /dev/hdk
root@ttyS1[root]# ls /proc/ide
drivers hda hde hdg hdi hdk ide0 ide2 ide3 ide4 ide5 pdcnew piix
root@ttyS1[root]# cat /proc/ide/ide2/hde/model
WDC WD800JB-00CRA1
root@ttyS1[root]# cat /proc/ide/ide3/hdg/model
WDC WD800JB-00CRA1
root@ttyS1[root]# cat /proc/ide/ide4/hdi/model
WDC WD800JB-00ETA0
root@ttyS1[root]# cat /proc/ide/ide5/hdk/model
WDC WD800JB-00CRA1
root@ttyS1[root]# lspci
00:00.0 Host bridge: Intel Corp. 440FX - 82441FX PMC [Natoma] (rev 02)
00:07.0 ISA bridge: Intel Corp. 82371SB PIIX3 ISA [Natoma/Triton II] (rev 01)
00:07.1 IDE interface: Intel Corp. 82371SB PIIX3 IDE [Natoma/Triton II]
00:0a.0 VGA compatible controller: S3 Inc. ViRGE/DX or /GX (rev 01)
00:0b.0 Ethernet controller: 3Com Corporation 3c905 100BaseTX [Boomerang]
00:0c.0 Ethernet controller: 3Com Corporation 3c905 100BaseTX [Boomerang]
00:0d.0 Unknown mass storage controller: Promise Technology, Inc. 20268 (rev 02)
00:0e.0 Unknown mass storage controller: Promise Technology, Inc. 20268 (rev 02)
root@ttyS1[root]#


So you can see the drives are there in the dmesg and in the /proc filesystem. But I can't seem to fdisk or mount them.

thx,
britt

britthouser
12-28-2003, 03:35 PM
Anyone have a clue what's going on here? Do I need to post more info?

thx,
britt

tearinghairout
12-28-2003, 03:49 PM
What happens if you just do fdisk /dev/hdi, without the -l option?
Do you get any error messages?

Also, what happens if you try to mount them? I couldn't see in your listing where you actually tried that.

natenotgr8
12-29-2003, 07:23 PM
Just had the same problem today, very similar setup. I have two Promise controllers (although not identical models), 5 hard drives - hdb, hde, hdg, hdi, hdk. I could see hdi and hdk in /proc/ide and /proc/partitions but could not mount or fdisk them.

Turns out I had to use mknod to create the block devices /dev/hdi* and /dev/hdk*, using the major/minor numbers that were already listed in /proc/partitions... not sure why I had to do this manually, maybe Knoppix by default only creates through /dev/hdh.

For example:
cd /dev
mknod hdi b 56 0
mknod hdi1 b 56 1

Again, the two magic numbers at the end of the mknod line can be obtained by using 'cat /proc/partition'.

I am using Knoppix because Redhat 8.0 cfdisk didn't like my partition tables even though fdisk was OK... I figured I would check them out with the newer kernel and tools in Knoppix 3.3, and after I created the /dev entries they looked OK.

Not sure what to tell you as far as fixing this permanently... on a whim I tried adding "hdi=scsi hdk=scsi" to the Knoppix bootline (default bootline has hda-hdh), but that didn't seem to affect anything. Need somebody with a little more Knoppix or kernel expertise than me (shouldn't be difficult... I've got very little expertise) to help us out here.

alex52
02-04-2004, 08:27 AM
It's looks like general problem for Knoppix-3.3. I have only one IDE HDD.

Peanut-9.5, Fedora, and Knoppix-3.2 have no such problems, but Knoppix-3.3 refuses to recognize HD during booting, and next, mount, remount, do not see HD either. fdisk and cfdisk says: no partition table

Only in Knoppix-3.3 /proc/kmsg

<4>hda: host protected area => 1
<3>hda: drive not ready for command
<6>VFS: can’t find ext2 filesystem on dev ide0(3,1,2,3)

As only Knoppix-3.3 has this problem, its looks like that vmlinuz-2.4.22-xfs causes it. I never set any passwords or any in this PC.
What is a problem? How to overwrite it?? If I'll find I'll post it here
Best, Alex

hitcher
02-14-2004, 08:05 AM
For Knoppix 3.3

I had similar problems with acessing my 4 40 GB IBM 60 GXP HD on the Promise Fasttrack 100 TX2 RAID controller.
I downloaded the fasttrack partial source 1.03.0.2 from www.promise.com
and compiled it as described in the readme. It works fine.

But for compiling the source you need also the kernel sources, etc.
Since the compiled module for Knoppix 3.3 is zipped only about 56KB I can e-mail it to everyone interested.

With the module 'FastTrack.o' available, copy it to a floppy disk
and reboot.
boot knoppix with following parameters:
knoppix dma modules-disk ide2=0 ide3=0 ide4=0 ide5=0 ide6=0 ide7=0 ide8=0 ide9=0
the kernel will ask you later for the modules-disk and the driver to load.

if you have a hd-installation of knoppix you should add the module to your initrd and add the boot parameters ide2=0 ide3=0 ide4=0 ide5=0 ide6=0 ide7=0 ide8=0 ide9=0 to your lilo.conf