public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Fwd: PROBLEM: ide messages during boot caused by a strange partition table
       [not found] <3b2bc9d0607302313p637ce780sf98b1727213bd6a2@mail.gmail.com>
@ 2006-07-31  6:16 ` marco gaddoni
  2006-07-31 11:05   ` Alan Cox
  0 siblings, 1 reply; 6+ messages in thread
From: marco gaddoni @ 2006-07-31  6:16 UTC (permalink / raw)
  To: linux-kernel

 [1.] One line summary of the problem:

ide messages during boot caused by a strange partition table

[2.] Full description of the problem/report:

hello,
i tried to install over an old win95 partition a
dos6.2.
it mangled badly the partition table and now linux
during the boot spews a lot of message like

hda: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
hda: task_in_intr: error=0x10 { SectorIdNotFound },
LBAsect=1052835654, high=62, low=12648262, sector=1052835654

ide: failed opcode was: unknown
hda: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
hda: task_in_intr: error=0x10 { SectorIdNotFound },
LBAsect=1052835654, high=62, low=12648262, sector=1052835654

ide: failed opcode was: unknown
hda: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
hda: task_in_intr: error=0x10 { SectorIdNotFound },
LBAsect=1052835654, high=62, low=12648262, sector=1052835654

ide: failed opcode was: unknown
hda: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
hda: task_in_intr: error=0x10 { SectorIdNotFound },
LBAsect=1052835654, high=62, low=12648262, sector=1052835654

ide: failed opcode was: unknown
ide0: reset: success

after about 1 minute of printing these error messages the
kernel "give up" and boot correctly.

the partition table is

Password:


Disk /dev/hda: 9733 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hda1   *      0+   1134    1135-   9116856    c  W95 FAT32 (LBA)

                end: (c,h,s) expected (1023,254,63) found (110,254,63)
/dev/hda2       1024   65535   64512  518192640    f  W95 Ext'd (LBA)
                start: (c,h,s) expected (1023,254,63) found (0,0,1)

/dev/hda3       1135    1274     140    1124550   82  Linux swap / Solaris
/dev/hda4       3858    9732    5875   47190937+  83  Linux
/dev/hda5       1024+  65535   64512- 518192608+   b  W95 FAT32
                start: (c,h,s) expected (1023,254,63) found (0,1,1)


btw: any idea on  how to recover my old partitions?

[3.] Keywords (i.e., modules, networking, kernel):

partition table, ide

[4.] Kernel version (from /proc/version):

Linux version
2.6.17.4 (gaddo@gaddo.sve.com) (gcc version 4.0.4 20060507
(prerelease) (Debian 4.0.3-3)) #1 Fri Jul 7 16:19:10 CEST 2006

[5.] Output of Oops.. message (if applicable) with symbolic information

     resolved (see Documentation/oops-tracing.txt)

see above

[6.] A small shell script or example program which triggers the
     problem (if possible)
[7.] Environment
[7.1.] Software (add the output of the ver_linux script here)


gaddo@gaddo:~/src/linux-2.6.17.4$ sh scripts/ver_linux
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.

Linux
gaddo.sve.com 2.6.17.4 #1 Fri Jul 7 16:19:10 CEST 2006 i686 GNU/Linux

Gnu C                  4.0.4
Gnu make               3.81
binutils
2.17
util-linux             2.12r
mount                  2.12r
module-init-tools      3.2.2
e2fsprogs              1.39
Linux C Library        2.3.6
Dynamic linker (ldd)   2.3.6
Procps
3.2.7
Net-tools              1.60
Console-tools          0.2.3
Sh-utils               5.96
udev                   093
Modules Loaded         ipv6 nfsd exportfs nfs lockd sunrpc deflate
zlib_deflate twofish serpent blowfish des sha256 sha1 crypto_null
af_key dm_mod w83627hf hwmon_vid eeprom i2c_isa ide_generic shpchp
pci_hotplug ide_cd cdrom bt878 ide_disk i810_audio ac97_codec generic
tvaudio mousedev tsdev bttv video_buf firmware_class ir_common
snd_intel8x0 compat_ioctl32 i2c_algo_bit piix 8139cp 8139too e100
i2c_i801 snd_ac97_codec snd_ac97_bus v4l2_common btcx_risc tveeprom
videodev floppy rtc ide_core parport_pc parport mii i2c_core intel_agp
agpgart evdev psmouse pcspkr snd_pcm snd_timer snd soundcore ehci_hcd
uhci_hcd serio_raw snd_page_alloc usbcore ext3 jbd mbcache sd_mod
ata_piix libata scsi_mod unix



[7.2.] Processor information (from /proc/cpuinfo):
[7.3.] Module information (from /proc/modules):
[7.4.] Loaded driver and hardware information (/proc/ioports, /proc/iomem)
[7.5.] PCI information ('lspci -vvv' as root)

[7.6.] SCSI information (from /proc/scsi/scsi)
[7.7.] Other information that might be relevant to the problem
       (please look in /proc and include all information that you
       think to be relevant):

[X.] Other notes, patches, fixes, workarounds:

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Fwd: PROBLEM: ide messages during boot caused by a strange partition table
  2006-07-31  6:16 ` Fwd: PROBLEM: ide messages during boot caused by a strange partition table marco gaddoni
@ 2006-07-31 11:05   ` Alan Cox
  2006-07-31 13:17     ` marco gaddoni
  0 siblings, 1 reply; 6+ messages in thread
From: Alan Cox @ 2006-07-31 11:05 UTC (permalink / raw)
  To: marco gaddoni; +Cc: linux-kernel

Ar Llu, 2006-07-31 am 08:16 +0200, ysgrifennodd marco gaddoni:
> hda: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
> hda: task_in_intr: error=0x10 { SectorIdNotFound },
> LBAsect=1052835654, high=62, low=12648262, sector=1052835654

The sector number appears valid for the drive (assuming the drive
9733 255 63 geometry is correct), so that looks like a bad block on the
disk and nothing to do with partition tables.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Fwd: PROBLEM: ide messages during boot caused by a strange partition table
  2006-07-31 11:05   ` Alan Cox
@ 2006-07-31 13:17     ` marco gaddoni
  2006-07-31 14:31       ` Alan Cox
  0 siblings, 1 reply; 6+ messages in thread
From: marco gaddoni @ 2006-07-31 13:17 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

On 7/31/06, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> Ar Llu, 2006-07-31 am 08:16 +0200, ysgrifennodd marco gaddoni:
> > hda: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
> > hda: task_in_intr: error=0x10 { SectorIdNotFound },
> > LBAsect=1052835654, high=62, low=12648262, sector=1052835654
>
> The sector number appears valid for the drive (assuming the drive
> 9733 255 63 geometry is correct), so that looks like a bad block on the
> disk and nothing to do with partition tables.
>
>
thank you for your reply.
maybe this is a concidence, but i saw the problem the first
boot of linux after the (attempted) dos installation.

the disk is this

/dev/hda:

 Model=SAMSUNG SP0802N, FwRev=TK100-23, SerialNo=0709J1FW500608
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=34902, SectSize=554, ECCbytes=4
 BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=off
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156368016
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: ATA/ATAPI-7 T13 1532D revision 0:  ATA/ATAPI-1
ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6
ATA/ATAPI-7

 * signifies the current active mode

is it correct that the max lba sect is LBAsects=156368016 and the kernel
is asking for 1052835654, 10 times more ?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Fwd: PROBLEM: ide messages during boot caused by a strange partition table
  2006-07-31 13:17     ` marco gaddoni
@ 2006-07-31 14:31       ` Alan Cox
  2006-07-31 14:43         ` marco gaddoni
  0 siblings, 1 reply; 6+ messages in thread
From: Alan Cox @ 2006-07-31 14:31 UTC (permalink / raw)
  To: marco gaddoni; +Cc: linux-kernel

Ar Llu, 2006-07-31 am 15:17 +0200, ysgrifennodd marco gaddoni:
> is it correct that the max lba sect is LBAsects=156368016 and the kernel
> is asking for 1052835654, 10 times more ?

No you are right - I miscounted the digits in the original report. 

I'm still dubious the partition table is involved unless you've since
booted Windows and the two have been overwriting bits of each other.

What tool created the broken partition table - do you know, and which OS
was installed first ?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Fwd: PROBLEM: ide messages during boot caused by a strange partition table
  2006-07-31 14:31       ` Alan Cox
@ 2006-07-31 14:43         ` marco gaddoni
  2006-07-31 15:31           ` Alan Cox
  0 siblings, 1 reply; 6+ messages in thread
From: marco gaddoni @ 2006-07-31 14:43 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

On 7/31/06, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> Ar Llu, 2006-07-31 am 15:17 +0200, ysgrifennodd marco gaddoni:
> > is it correct that the max lba sect is LBAsects=156368016 and the kernel
> > is asking for 1052835654, 10 times more ?
>
> No you are right - I miscounted the digits in the original report.
>
> I'm still dubious the partition table is involved unless you've since
> booted Windows and the two have been overwriting bits of each other.
>
> What tool created the broken partition table - do you know, and which OS
> was installed first ?
>
>
the disk before was correctly booting linux and windows2000.
then i used the dos6.22 fdisk (?? unsure about the exact dos version)
to delete and recreate a partition. then a began a format /s and
interrupted hafway because it was too slow.
i am not sure that the partition i deleted with fdisk was the first of
the disk.
It was some time ago, i dont remember clearly.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Fwd: PROBLEM: ide messages during boot caused by a strange partition table
  2006-07-31 14:43         ` marco gaddoni
@ 2006-07-31 15:31           ` Alan Cox
  0 siblings, 0 replies; 6+ messages in thread
From: Alan Cox @ 2006-07-31 15:31 UTC (permalink / raw)
  To: marco gaddoni; +Cc: linux-kernel

Ar Llu, 2006-07-31 am 16:43 +0200, ysgrifennodd marco gaddoni:
> the disk before was correctly booting linux and windows2000.
> then i used the dos6.22 fdisk (?? unsure about the exact dos version)

The DOS fdisk will rewrite the C/H/S values on the drive in some cases
if the drive is a vaguely modern setup. That will trash all the
partition data you have and can lead to corruption of the data too. If
you are luck the drive geometry originally used may match the one in
hdparm -I

If you can work out the original geometry values then put those back and
fsck all the partitions with file systems on them you may be ok.

Alan


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-07-31 15:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3b2bc9d0607302313p637ce780sf98b1727213bd6a2@mail.gmail.com>
2006-07-31  6:16 ` Fwd: PROBLEM: ide messages during boot caused by a strange partition table marco gaddoni
2006-07-31 11:05   ` Alan Cox
2006-07-31 13:17     ` marco gaddoni
2006-07-31 14:31       ` Alan Cox
2006-07-31 14:43         ` marco gaddoni
2006-07-31 15:31           ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox