public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Weird partititon recocnising problem in 2.6.0-testX
@ 2003-11-10 16:02 Andries.Brouwer
  2003-11-14  8:18 ` Rogier Wolff
  0 siblings, 1 reply; 14+ messages in thread
From: Andries.Brouwer @ 2003-11-10 16:02 UTC (permalink / raw)
  To: aebr, konsti; +Cc: linux-kernel, torvalds

>> I suppose that booting with boot parameter "hda=remap" should work.

> Seems so...

Good. So there were two problems. One was devfs+hd.c, caused by
the fact that hd.c fails to set devfs_name. And the second was
EZDrive, solved by booting with "hda=remap".

Probably it is a good idea to warn when we see EZD or DM.
A minimal patch would be

--- 2.6.0test9/linux/fs/partitions/msdos.c	Fri May 30 18:12:57 2003
+++ fs/partitions/msdos.c	Mon Nov 10 16:20:11 2003
@@ -425,6 +425,10 @@
 		put_partition(state, slot, start, size);
 		if (SYS_IND(p) == LINUX_RAID_PARTITION)
 			state->parts[slot].flags = 1;
+		if (SYS_IND(p) == DM6_PARTITION)
+			printk("[DM]");
+		if (SYS_IND(p) == EZD_PARTITION)
+			printk("[EZD]");
 	}
 
 	printk("\n");

The next project for you is getting rid of EZD (if you want).
Backup valuable stuff.

Boot a kernel that remaps, say vanilla 2.4.
Print partition table (in sector units) on paper.
  sfdisk -d /dev/hda > hda.pt
gives the full table in a format that sfdisk can restore.
  dd if=/dev/hda of=hdapt bs=1 count=64 skip=446
gives the primary part of the table in binary.
  dd if=/dev/hda of=hdambr bs=512 count=1
gives the entire fake sector 0 (that is, sector 1).
Save the output files somewhere not on hda.

Now boot a kernel that does not remap. Since you won't see
your root filesystem on hda, this should probably be from
a rescue floppy or CD. Recent kernels understand the "hda=noremap"
boot parameter. Make sure no remap is done (e.g., *fdisk
mentions partitions of type 55). Now write the desired partition
table (e.g.
  dd if=hdapt of=/dev/hda bs=1 count=64 seek=446
or
  dd if=hdambr of=/dev/hda
or
  sfdisk /dev/hda < hda.pt
).

That should do it, but be careful that you can boot again afterwards.
Sector 0 has the partition table in bytes 446-509,
a signature in bytes 510-511, and a boot loader in bytes 0-445.
You may have to reinstall LILO or grub or so. In some cases
copying the entire sector 1 to sector 0 will suffice.

Good luck!
Andries

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Weird partititon recocnising problem in 2.6.0-testX
@ 2003-11-10 10:24 Konstantin Kletschke
  2003-11-10 10:56 ` Andries Brouwer
  0 siblings, 1 reply; 14+ messages in thread
From: Konstantin Kletschke @ 2003-11-10 10:24 UTC (permalink / raw)
  To: linux-kernel

We have a new boot log at

http://ludenkalle.de/ide_change_kernel.txt

With CONFIG_BLK_DEV_IDEDISK=y but unset CONFIG_BLK_DEV_HD_IDE and the
inserted (and no used) printk stuff.

Regards, Konsti

-- 
2.6.0-test8-love3
Konstantin Kletschke <konsti@ludenkalle.de>, <konsti@ku-gbr.de>
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF
keulator.homelinux.org up 1:01, 13 users

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Weird partititon recocnising problem in 2.6.0-testX
@ 2003-11-09  1:12 Konstantin Kletschke
  2003-11-09  2:36 ` Andries Brouwer
  0 siblings, 1 reply; 14+ messages in thread
From: Konstantin Kletschke @ 2003-11-09  1:12 UTC (permalink / raw)
  To: linux-kernel

Hi!

I have a PC here with an intel i875p chipset which seems not to recognize
logical partititions. 2.4.18 (kernel bf24 image) boots fine, but i do
not get a 2.6.0-test5 or 2.6.0-test9 to boot.

I compiled all necessary IDE drivers in, IDE, ide disk and piix and
such. All attempts yield in

Kernel Panic: VFS: Unable to mount root fs on hda5

I tried to submit root=0305 and such to pass to it. On my later
investigations I realized that the partition recocnizion seems to fail.

When booting Kernels report

hda: hda1 hda2 <hda5 hda6>

and boot, this one reports only:

hda: hda hda2

So, where are the logical ones?

In "Advanced partition selection" I switched on 
"PC BIOS (MSDOS partition tables) support" but that made no
difference...

hm. what next?

Regards, Konsti

-- 
2.6.0-test6-mm4
Konstantin Kletschke <konsti@ludenkalle.de>, <konsti@ku-gbr.de>
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF
keulator.homelinux.org up 4:24, 1 user

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

end of thread, other threads:[~2003-11-14  8:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-10 16:02 Weird partititon recocnising problem in 2.6.0-testX Andries.Brouwer
2003-11-14  8:18 ` Rogier Wolff
  -- strict thread matches above, loose matches on Subject: below --
2003-11-10 10:24 Konstantin Kletschke
2003-11-10 10:56 ` Andries Brouwer
2003-11-10 11:32   ` Konstantin Kletschke
2003-11-10 11:57   ` Konstantin Kletschke
2003-11-09  1:12 Konstantin Kletschke
2003-11-09  2:36 ` Andries Brouwer
2003-11-09  3:49   ` Konstantin Kletschke
2003-11-09 11:58     ` Andries Brouwer
2003-11-09 12:10       ` Stefan Smietanowski
2003-11-09 22:15         ` Konstantin Kletschke
2003-11-09 23:09           ` Konstantin Kletschke
2003-11-10  0:00             ` Andries Brouwer

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