Re: Can't mount WinXP partition or boot to it. Will "fixboot" work?



ANC wrote:

Douglas Mayne wrote:

On Mon, 10 Jul 2006 14:27:59 +0000, ANC wrote:

iforone wrote:


<snip>

~$ sudo fdisk -l /dev/sda
(might as well post the info from fdisk for each/all your HDDs )


root@kanotix1:/home/al# fdisk -l /dev/sda

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 5264 42282268 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 5265 6830 12578895 83 Linux


NOTICE ABOVE 'WARNING' ABOUT NOT ENDING ON A CYL BOUNDRY.

Sounds like this common bug:
http://www.redhat.com/archives/fedora-devel-list/2004-May/msg00908.html

<snip>


I read the link but don't understand what this might have to do with not
being able to MOUNT the partition. I do understand the not booting part...
but this fs (sda1) won't even mount.

Al

Well, for a start the kernel (any kernel) does not use the same drive
geometry as the BIOS. From the looks of things here, you have used a
third-party app on some other platform (Partition Magic on Windows?) to
resize the NTFS partition, then installed Linux. Problem is, PM has the
same idea as the kernel and basically ignores the BIOS reported geometry
and reads direct from the drive controller. Therein lies the problem. PM
has different ideas again from the Linux kernel (and the NT kernel for that
matter) and fdisk in particular about drive geometries. This can result in
the Linux kernel not being able to mount a partition because it doesn't
recognise the PM partitioning geometry and tries to apply its own. End
result? You ain't mounting that baby. Not being able to boot from it either
suggests to me that your NTFS partition is hosed, or you're running XP and
have overwritten the MBR with LILO/GRUB. XP likes the MBR for itself.
The only way around it I can see, is to resize the NTFS partition by
shrinking it slightly using PM to say, 4096 blocks or 5108 blocks ("magic"
numbers that're pretty much guaranteed to land the partition end on a
boundary) and trying again. Don't forget to back up your data first!
Also, move your boot manager to the Linux root partition and use XP Recovery
console to fix the MBR. Back into Linux and add XP to the GRUB menu. Should
be dandy after that.

I hereby disavow and disclaim all responsibility for any data loss which may
occur. You were warned.
--
When all else fails...
Use a hammer.

http://www.dotware.co.uk

Some people are like Slinkies;
They serve no particular purpose,
But they bring a smile to your face
When you push them down the stairs.
.



Relevant Pages

  • Re: 48-bit LBA "upgrade" - is a complete repartition required?
    ... A browser of the kernel development mailing list archives seems ... > controllers can have issues even if Linux is bypassing the BIOS. ... > I'm really just wondering if the existing partition table is still going ... filesystem on the partition, too, the way resize2fs does. ...
    (comp.os.linux.hardware)
  • Re: iPod / Amarok / Buffer I/O Issues
    ... I see the following article at Linux Magazine... ... I'm reluctant to recompile my kernel, ... If you?re running a pre- 2.6 kernel, using the iPod can be as easy as ... partition table. ...
    (Ubuntu)
  • Re: Is FREEDOS a real time OS?
    ... Every OS has an API. ... What is the relation of the Linux API to the ... Or, if the API is a part of the kernel, is there a more ... to boot the new partition. ...
    (comp.sys.ibm.pc.hardware.misc)
  • Re: [Linux-NTFS-Dev] Geometry determination
    ... > and people are complaining about it because kernel breaks things (e.g. ... > Old maintainer, Andries Brouwer, only repeates that the geometry doesn't ... there is the matter of the correspondence of BIOS disk numbers ... thing the kernel did was inferring the desired geometry from the partition ...
    (Linux-Kernel)
  • [RFC] Restoring HDIO_GETGEO semantics (was: Re: workaround for BIOS / CHS stuff)
    ... FORCE or FIX if it's _asked_. ... user knows he has a problem, e.g. old parted messed up the partition ... Parted must get the geometry from the partition table unless ... and 2) need a way to get a "sane" geometry from the BIOS or kernel. ...
    (Linux-Kernel)