Bug#543209: linux-image-2.6.30-1-686: sometimes /dev/hdX are remapped as /dev/sdX
Package: linux-image-2.6.30-1-686
Version: 2.6.30-5
Severity: normal
When I boot I can see my hard disk as /dev/hdX (this is the correct
device) or /dev/sdX. This problem come up with 2.6.30, previously, with
2.6.26 or lower, all have always worked correctly.
When my disks/partitions are /dev/sdX I need to mount the /dev/sdX
manually and only the root partition have associated the name of the
correct device (/dev/hde6) in the df command
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hde6 10080488 8855028 1123048 89% /
/dev/sda2 93339 48932 39590 56% /boot
[...]
$ ls /dev/hd*
/dev/hda /dev/hdb
Note: hda and hdb are CD-ROM device
$ ls /dev/sd*
/dev/sda /dev/sda10 /dev/sda2 /dev/sda5 /dev/sda7 /dev/sda9 /dev/sdb1
/dev/sda1 /dev/sda11 /dev/sda4 /dev/sda6 /dev/sda8 /dev/sdb
Note: sda must be hde and sdb must be hdg
I use readahead and insserv to speedup the booting and I see that
sequence of booting is different when I have /dev/hdX or /dev/sdX. I
have compiled a customized Linux for better performance and lower memory
usage.
Linux message are mixed so I have search and removed identical rows and
I found these differences:
1) this is very strange: it seem that the bad boot (/dev/sdX) log only
the end of the last line of the good boot (/dev/hdX). All the previous
lines are missing
--- good boot ---
kernel: FF uncachable
kernel: MTRR variable ranges enabled:
kernel: 0 base 000000000 mask FE0000000 write-back
kernel: 1 base 020000000 mask FF0000000 write-back
kernel: 2 base 0D8000000 mask FF8000000 write-combining
kernel: 3 disabled
kernel: 4 disabled
kernel: 5 disabled
kernel: 6 disabled
kernel: 7 base 0E4000000 mask FFC000000 write-combining
kernel: x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
kernel: init_memory_mapping: 0000000000000000-000000002ffec000
kernel: 0000000000 - 0000400000 page 4k
kernel: 0000400000 - 002fc00000 page 2M
kernel: 002fc00000 - 002ffec000 page 4k
kernel: kernel direct mapping tables up to 2ffec000 @ 7000-c000
kernel: RAMDISK: 23de1000 - 24030113
kernel: ACPI: RSDP 000f67c0 00014 (v00 ASUS )
kernel: ACPI: RSDT 2ffec000 0002C (v01 ASUS A7V-133 30303031 MSFT
31313031)
--- end good boot ---
--- bad boot ---
kernel: A7V-133 30303031 MSFT 31313031)
-- end bad boot ---
2) here there is some error in the bad boot. He don't find symbols for
the pdc202xx_old (this is for the my nearly news motherboard ;-)
--- good boot ---
kernel: pdc202xx_old 0000:00:11.0: IDE controller (0x105a:0x0d30 rev 0x02)
--- end good boot ---
--- bad boot ---
kernel: pdc202xx_old: Unknown symbol ide_pci_init_one
kernel: pdc202xx_old: Unknown symbol ide_dma_sff_timer_expiry
kernel: pdc202xx_old: Unknown symbol ide_dma_sff_read_status
kernel: pdc202xx_old: Unknown symbol ide_dma_lost_irq
kernel: pdc202xx_old: Unknown symbol ide_pci_remove
kernel: pdc202xx_old: Unknown symbol ide_dma_end
kernel: pdc202xx_old: Unknown symbol ide_dma_start
kernel: pdc202xx_old: Unknown symbol ide_pci_suspend
kernel: pdc202xx_old: Unknown symbol ide_dma_setup
kernel: pdc202xx_old: Unknown symbol ide_set_pio
kernel: pdc202xx_old: Unknown symbol ide_pci_resume
kernel: pdc202xx_old: Unknown symbol ide_dma_host_set
--- end bad boot ---
3) errors consequences
--- good boot ---
kernel: Promise_Old_IDE 0000:00:11.0: PCI INT A -> Link[LNKB] -> GSI 10
(level, low) -> IRQ 10
kernel: 0000:00:11.0: (U)DMA Burst Bit ENABLED Primary PCI Mode
Secondary PCI Mode.
kernel: pdc202xx_old 0000:00:11.0: 100% native mode on irq 10
kernel: ide2: BM-DMA at 0x8000-0x8007
kernel: ide3: BM-DMA at 0x8008-0x800f
kernel: Probing IDE interface ide2...
kernel: hde: MAXTOR 6L080J4, ATA DISK drive
kernel: hde: host max PIO4 wanted PIO255(auto-tune) selected PIO4
kernel: hde: UDMA/100 mode selected
kernel: Probing IDE interface ide3...
kernel: hdg: Maxtor 2B020H1, ATA DISK drive
kernel: hdg: host max PIO4 wanted PIO255(auto-tune) selected PIO4
kernel: hdg: host side 80-wire cable detection failed, limiting max
speed to UDMA33
kernel: hdg: UDMA/33 mode selected
kernel: ide2 at 0x9400-0x9407,0x9002 on irq 10
kernel: ide3 at 0x8800-0x8807,0x8402 on irq 10
kernel: ide-gd driver 1.18
kernel: hde: max request size: 128KiB
kernel: hde: 156355584 sectors (80054 MB) w/1819KiB Cache, CHS=65535/16/63
kernel: hde: cache flushes supported
kernel: hde:<6>ide-cd driver 5.00
kernel: hde1 hde2 hde4 <<6>ide-cd: hdb: ATAPI 40X DVD-ROM drive, 512kB
Cache
kernel: hde5 hde6 hde7 hde8 hde9 hde10 hde11 >
kernel: hdg: max request size: 128KiB
kernel: hdg: 40020624 sectors (20490 MB) w/2048KiB Cache, CHS=39703/16/63
kernel: hdg: cache flushes not supported
kernel: hdg: hdg1
--- end good boot ---
--- bad boot ---
kernel: pata_pdc202xx_old 0000:00:11.0: PCI INT A -> Link[LNKB] -> GSI
10 (level, low) -> IRQ 10
kernel: scsi0 : pata_pdc202xx_old
kernel: scsi1 : pata_pdc202xx_old
kernel: ata1: PATA max UDMA/100 cmd 0x9400 ctl 0x9000 bmdma 0x8000 irq 10
kernel: ata2: PATA max UDMA/100 cmd 0x8800 ctl 0x8400 bmdma 0x8008 irq 10
kernel: ata1.00: ATA-5: MAXTOR 6L080J4, A93.0500, max UDMA/133
kernel: ata1.00: 156355584 sectors, multi 16: LBA
kernel: ata1.00: configured for UDMA/100
kernel: scsi 0:0:0:0: Direct-Access ATA MAXTOR 6L080J4 A93.
PQ: 0 ANSI: 5
kernel: ata2.00: ATA-6: Maxtor 2B020H1, WAH21PB0, max UDMA/100
kernel: ata2.00: 40020624 sectors, multi 16: LBA
kernel: ata2.00: limited to UDMA/33 due to 40-wire cable
kernel: ata2.00: configured for UDMA/33
kernel: scsi 1:0:0:0: Direct-Access ATA Maxtor 2B020H1 WAH2
PQ: 0 ANSI: 5
kernel: ide-cd driver 5.00
kernel: Driver 'sd' needs updating - please use bus_type methods
kernel: sd 0:0:0:0: [sda] 156355584 512-byte hardware sectors: (80.0
GB/74.5 GiB)
kernel: sd 0:0:0:0: [sda] Write Protect is off
kernel: sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA
kernel: sda:<5>sd 1:0:0:0: [sdb] 40020624 512-byte hardware sectors:
(20.4 GB/19.0 GiB)
kernel: sd 1:0:0:0: [sdb] Write Protect is off
kernel: sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
kernel: sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA
kernel: sdb:<6>ide-cd: hdb: ATAPI 40X DVD-ROM drive, 512kB Cache
kernel: sda1 sda2 sda4 < sdb1
kernel: sd 1:0:0:0: [sdb] Attached SCSI disk
kernel: sda5 sda6<6>usb 2-2: configuration #1 chosen from 1 choice
kernel: sda7 sda8 sda9 sda10 sda11 >
kernel: sd 0:0:0:0: [sda] Attached SCSI disk
--- end bad boot ---
Note that I can have X good boot followed by Y bad boot. Where X and Y
are > 0. So can be difficult (== long) to trace something on both boots.
Let me know if you need more information
Ciao
Davide
-- Package-specific info:
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-customized
Locale: LANG=it_IT@euro, LC_CTYPE=it_IT@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Versions of packages linux-image-2.6.30-1-686 depends on:
ii debconf [debconf-2.0] 1.5.27 Debian configuration
management sy
ii initramfs-tools [linux-initra 0.93.4 tools for generating an
initramfs
ii module-init-tools 3.9-2 tools for managing Linux
kernel mo
Versions of packages linux-image-2.6.30-1-686 recommends:
ii libc6-i686 2.9-23 GNU C Library: Shared
libraries [i
Versions of packages linux-image-2.6.30-1-686 suggests:
ii grub-pc [grub] 1.96+20090808-1 GRand Unified Bootloader,
version
pn linux-doc-2.6.30 <none> (no description available)
-- debconf information:
linux-image-2.6.30-1-686/preinst/lilo-has-ramdisk:
linux-image-2.6.30-1-686/postinst/create-kimage-link-2.6.30-1-686: true
linux-image-2.6.30-1-686/prerm/would-invalidate-boot-loader-2.6.30-1-686:
true
linux-image-2.6.30-1-686/preinst/overwriting-modules-2.6.30-1-686: true
linux-image-2.6.30-1-686/postinst/old-dir-initrd-link-2.6.30-1-686: true
linux-image-2.6.30-1-686/preinst/failed-to-move-modules-2.6.30-1-686:
linux-image-2.6.30-1-686/preinst/initrd-2.6.30-1-686:
linux-image-2.6.30-1-686/prerm/removing-running-kernel-2.6.30-1-686: true
linux-image-2.6.30-1-686/postinst/kimage-is-a-directory:
linux-image-2.6.30-1-686/preinst/abort-overwrite-2.6.30-1-686:
linux-image-2.6.30-1-686/preinst/bootloader-initrd-2.6.30-1-686: true
linux-image-2.6.30-1-686/postinst/depmod-error-initrd-2.6.30-1-686: false
shared/kernel-image/really-run-bootloader: true
linux-image-2.6.30-1-686/postinst/old-initrd-link-2.6.30-1-686: true
linux-image-2.6.30-1-686/postinst/depmod-error-2.6.30-1-686: false
linux-image-2.6.30-1-686/postinst/old-system-map-link-2.6.30-1-686: true
linux-image-2.6.30-1-686/preinst/lilo-initrd-2.6.30-1-686: true
linux-image-2.6.30-1-686/postinst/bootloader-test-error-2.6.30-1-686:
linux-image-2.6.30-1-686/preinst/abort-install-2.6.30-1-686:
linux-image-2.6.30-1-686/postinst/bootloader-error-2.6.30-1-686:
linux-image-2.6.30-1-686/preinst/elilo-initrd-2.6.30-1-686: true
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
VOGLIA DI VACANZE?
* Vieni nei Riccione Family Hotels, gli alberghi specializzati per le vacanze dei bambini! Prenota online le nostre offerte!
*
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=9444&d=23-8
Reply to: