Results 1 to 4 of 4

Thread: Partition types keep changing during Windows Boot

  1. #1
    Junior Member
    Join Date
    Dec 2004
    Posts
    2

    Partition types keep changing during Windows Boot

    Today, I installed KNOPPIX 3.7 on my Thinkpad notebook. I have the problem, that when booting into WinXP, Windows does not find the second NTFS partition (with the user data) because the partition type is changed.

    The partition layout is (should be) the following:
    /dev/hda1 WinXP System, NTFS (Type 0x07)
    /dev/hda2 WinXP User Data, NTFS (Type 0x07)
    /dev/hda3 IBM Service, FAT32 (Type 0x0c)
    /dev/hda4 KNOPPIX, ext3 (Type 0x83)
    (There is an empty PCMCIA Disk at /dev/hde that contains not partitions)

    LILO is installed in the MBR

    When I boot into WinXP (/dev/hda1), it can not find the data partition (/dev/hda2). In the drive-manager, the partition can be seen, but no "letter" is assigned. The menu entry for assigning a drive letter is greyed out. (Same for /dev/hda3)

    A subsequent boot into KNOPPIX shows that the partition types of /dev/hda2 and /dev/hda3 have been changed to "hidden":
    /dev/hda1 WinXP System, NTFS (Type 0x07)
    /dev/hda2 WinXP User Data, hidden NTFS (Type 0x17)
    /dev/hda3 IBM Service, hidden FAT32 (Type 0x1c)
    /dev/hda4 KNOPPIX, ext3 (Type 0x83)

    changing them back does not really help, because at the next boot (into Windows) the types are changed again. Booting into KNOPPIX does not change them.

    My current "solution" was to correct the types with fdisk and to re-install the WinXP MBR. Now Windows finds its data partition, but obviously I can not boot KNOPPIX without CD.

    What can I do to prevent this change of partition types during boot?

  2. #2
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441

    Re: Partition types keep changing during Windows Boot

    Quote Originally Posted by DirkEbert
    ......changing them back does not really help, because at the next boot (into Windows) the types are changed again. Booting into KNOPPIX does not change them......
    Why in the world is Windows changing the partition types when you boot?

    The answer to the above is likely the key to everything. Might there be some sort of recovery that is trying to take place from a back up copy of the MBR? (If so you might have to find the back-up copy of the partition table and undo these hidden partitions there too.) I've used a geat boot manager called XOSL that can hide and unhide partitions at boot time, and was going to suggest that it might help you - until I read that Windows itself seems to be re-doing the hiding after you fix it. You might still want to look at XOSL, but it sounds like the Windows partition screwing would happen after you boot with XOSL too (unless it happens to overwrite a corrupted backup of the partition table).

    I would also check your BIOS closely to see if it is in any way over writing that partition table with a corrupt backup. It doesn't seem likely if Knoppix sees the partitions as good after a reboot and only Windows does not, but it certainly seems worth checking.

  3. #3
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441

    Re: Partition types keep changing during Windows Boot

    Quote Originally Posted by DirkEbert
    ...
    My current "solution" was to correct the types with fdisk and to re-install the WinXP MBR. Now Windows finds its data partition, but obviously I can not boot KNOPPIX without CD.

    What can I do to prevent this change of partition types during boot?
    I personally don't believe in installing Knoppix to a hard drive (your and many other posts here about strange problems aftwerwards should help explain why), so I'm not the best to comment on this, but it certainly seems that your problems are coming from installing lilo on the MBR. There is no need to do this, and lots of reasons not to.

    As I mentioned in a previous post, I like to use XOSL for booting multi-operating system computers (and even for booting computers with one OS). When using a boot manager like XOSL you install the boot manager in the MBR and you install Lilo on the Linux partition. You can boot two or more OSs this way with no problem at all. Another good boot manager is Smart Boot Manager. It's not as fancy as XOSL, doesn't have as many features, but is smaller and even easier to install.

  4. #4
    Junior Member
    Join Date
    Dec 2004
    Posts
    2

    And the solution is ...

    Thanks to everybody for the help. Now, I have the solution for the problem of changing partition types during windows boot.

    Actually, the reason is a LILO feature. As old DOS and Windows systems could not boot from any other drive than "C:" and the drive letters were assigned to the partitions in sequence during boot time, LILO uses the "trick" of hiding partitions to give "other" operating systems the impression of booting from the firtst partition (that is mapped to C:).

    Unfortunately, if you have a separate data partition like in my case this causes trouble because Windows does not "see" the hidden partition so the user data is unaccessible.

    The solution is to switch off or limit the partition table manipulation. As in my case WinXP is on /dev/hda1, I switched of all partition table manipulation by inserting the following 2 lines into /etc/lilo.conf:

    Code:
    [...]
    change-rules
    	reset
    [...]
    This deletes all previously defined rules, including the rules predefined when LILO is started. After installing the modified LILO in the MBR, both KNOPPIX and Windows are booting fine and the partition types do not change any more.

    More on LILO's "Partition table manipulation" be found here:
    http://www-user.tu-chemnitz.de/~mibe...d4hnode51.html

Similar Threads

  1. grub boot loader read the boot file from a windows partition
    By cli168 in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 06-20-2005, 03:57 AM
  2. restoring my windows xp partition
    By voipss in forum General Support
    Replies: 2
    Last Post: 06-03-2005, 03:52 AM
  3. windows partition - no way?
    By radschlaeger in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 04-11-2005, 07:58 PM
  4. changing /home directory to another partition
    By Keyser in forum Hdd Install / Debian / Apt
    Replies: 13
    Last Post: 03-22-2005, 03:31 AM
  5. windows partition
    By dougvega in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 08-13-2003, 01:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Apple Mac Pro 2019 1TB OEM SSD Kit-832GB +128GB - 656-0122/ 656-0121 picture

Apple Mac Pro 2019 1TB OEM SSD Kit-832GB +128GB - 656-0122/ 656-0121

$69.99



Samsung 2.5

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot

$60.00



Dell Latitude 14

Dell Latitude 14" Laptop Computer Intel i5 Up To 32GB RAM 1TB SSD Windows 11 Pro

$545.25



External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac picture

External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac

$19.99



SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM picture

SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM

$159.99



1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive picture

1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive

$86.95



Acer Predator Helios Neo 16S AI 16

Acer Predator Helios Neo 16S AI 16" i9 275HX 2S RTX 5070 Ti 32GB 1TB SSD Refurb

$1746.47



Rocstor 1TB ROCPRO P33 SSD USB 3.0/3.1 PORTABLE DRIVE picture

Rocstor 1TB ROCPRO P33 SSD USB 3.0/3.1 PORTABLE DRIVE

$285.99



Dell Latitude 14

Dell Latitude 14" Laptop Computer Intel i7 Up To 32GB RAM 1TB SSD Windows 11 Pro

$330.73



1TB Portable External Hard Drive USB 3.0 Storage Backup for PC Mac Laptop picture

1TB Portable External Hard Drive USB 3.0 Storage Backup for PC Mac Laptop

$29.99