Author Topic: {GATT-Tech} More on the kernel 2.6 /WinXP dual-boot problem  (Read 1001 times)

Offline richjob

  • Jonin
  • ***
  • Posts: 680
  • Chakra 0
  • Referrals: 0
    • View Profile
Problem:

The Linux kernel now doesn't show the same disk geometry as the BIOS
does. The fix is to use sfdisk to recreate the partition table.

Windows XP refuses to boot with a valid partition table and the FC2
installer tries to fix the invalid, but usable, partition table written
by XP.

Yes, it can be worked around in the installer, but that doesn't change
where the actual bug lies. In all likelihood there will be an update to
fix the problem, but faulting FC2 for breaking dual boot with XP is
absurd considering that XP goes to a lot of effort already to make it
difficult.

It turns out that the bug (#115980) [redhat.com] is a result of a few
subtle but key changes within the 2.6 kernel. A certain functionality
with regards to hard disk geometry has been pulled out, as the kernel
developers thought it would be better if userspace utilities took care
of this instead. The Bugzilla bug is related to CHS geometry problems,
which most likely stems from an error within the parted utility,
addressing the BIOS incorrectly. It turns out that BIOS updates tend to
fix problems for many users that have been bitten by this "bug". On
newer machines, this is basically non-reproducible.

Possible fix here.

http://www.redhat.com/archives/fedora-test...y/msg02143.html



 > /me assumes it would be possible to automate the fix up of the
 > partition table with creative use of:
 >
 >   sfdisk -d | sfdisk -C# -H# -S#
 >

You are right, that is a way better solution. I wasn't aware of the
sfdisk utility before.

I tried to recreate the bad partition problem again (from the saved mbr
sector), made sure XP wasn't booting any more and then I run in Linux:

sfdisk -d /dev/hda | sfdisk --no-reread -H240 /dev/hda

This seems to have fixed it just like my original procedure (well much
easier :) ). I even did a byte compare of the mbr with the one I restored
before using those long steps and they are the same.

Plus, I did not have to run 'fdisk /mbr' from DOS any more (I guess the
sfdisk utility just changes the values not the rest of signatures etc).
So this looke like the best solution to fix the problem so far.

If this helps to find the problem with the wrong geometry, even after
fixing the mbr, the kernel reports wrong geometry in
/proc/ide/hda/geometry. My laptop is a IBM Thinkpad 600, so it probably
has an older BIOS. If there is anything else I can do to help finding the
bug, please let me know.

--
Radu

--
Richard Jobity, Tunapuna, Trinidad and Tobago | ph: (868) 620-5550
-----------------------------------------------------------------
http://www.ttlug.org | http://www.weakblog.com | http://www.jobity.com
mail @ richjob@jobity.com | icq: 5183191 | aim: richjob | ym: richjob
-----------------------------------------------------------------
Trusted computing gives companies more control over your machine than
you have.                    
----------------------------
There used to be a URL here.

Carigamers


 


* ShoutBox

Refresh History
  • Crimson609: yea everything cool how are you?
    August 10, 2022, 07:26:15 AM
  • Pain_Killer: Good day, what's going on with you guys? Is everything Ok?
    February 21, 2021, 05:30:10 PM
  • Crimson609: BOOM covid-19
    August 15, 2020, 01:07:30 PM
  • Shinsoo: bwda 2020 shoutboxing. omg we are in the future and in the past at the same time!
    March 03, 2020, 06:42:47 AM
  • TriniXjin: Watch Black Clover Everyone!
    February 01, 2020, 06:30:00 PM
  • Crimson609: lol
    February 01, 2020, 05:05:53 PM
  • Skitz: So fellas how we go include listing for all dem parts for pc on we profile but doh have any place for motherboard?
    January 24, 2020, 09:11:33 PM
  • Crimson609: :ph34r:
    January 20, 2019, 09:23:28 PM
  • Crimson609: Big up ya whole slef
    January 20, 2019, 09:23:17 PM
  • protomanex: Gyul like Link
    January 20, 2019, 09:23:14 PM
  • protomanex: Man like Kitana
    January 20, 2019, 09:22:39 PM
  • protomanex: Man like Chappy
    January 20, 2019, 09:21:53 PM
  • protomanex: Gyul Like Minato
    January 20, 2019, 09:21:48 PM
  • protomanex: Gyul like XJin
    January 20, 2019, 09:19:53 PM
  • protomanex: Shout out to man like Crimson
    January 20, 2019, 09:19:44 PM
  • Crimson609: shout out to gyal like Corbie Gonta
    January 20, 2019, 09:19:06 PM
  • cold_187: Why allur don't make a discord or something?
    December 03, 2018, 06:17:38 PM
  • Red Paradox: https://www.twitch.tv/flippay1985 everyday from 6:00pm
    May 29, 2018, 09:40:09 AM
  • Red Paradox: anyone play EA Sports UFC 3.. Looking for a challenge. PSN: Flippay1985 :)
    May 09, 2018, 11:00:52 PM
  • cold_187: @TriniXjin not really, I may have something they need (ssd/ram/mb etc.), hence why I also said "trade" ;)
    February 05, 2018, 10:22:14 AM

SimplePortal 2.3.3 © 2008-2010, SimplePortal