#228 NTFS partitions are changed into FAT32 code in MBR

open
nobody
5
2012-06-05
2012-06-05
Sherif
No

I had 3 partitions with the following data and then installed rfit v 14. Windows partition did not boot any more and shows partition not bootable. When I inspected it I found that refit change the parition code from NTFS into FAT32

Original MBR data

*** Report for internal hard disk ***

Current GPT partition table:
# Start LBA End LBA Type
1 40 409639 EFI System (FAT)
2 409640 391620583 Mac OS X HFS+
3 391882752 526063615 Basic Data
4 526063616 625141759 Basic Data

Current MBR partition table:
# A Start LBA End LBA Type
1 1 409639 ee EFI Protective
2 409640 391620583 af Mac OS X HFS+
3 391882752 526063615 0b FAT32 (CHS)
4 * 526063616 625141759 07 NTFS/HPFS

MBR contents:
Boot Code: Unknown, but bootable

Partition at LBA 40:
Boot Code: None (Non-system disk message)
File System: FAT32
Listed in GPT as partition 1, type EFI System (FAT)

Partition at LBA 409640:
Boot Code: None
File System: HFS Extended (HFS+)
Listed in GPT as partition 2, type Mac OS X HFS+
Listed in MBR as partition 2, type af Mac OS X HFS+

Partition at LBA 391882752:
Boot Code: None (Non-system disk message)
File System: FAT32
Listed in GPT as partition 3, type Basic Data
Listed in MBR as partition 3, type 0b FAT32 (CHS)

Partition at LBA 526063616:
Boot Code: Windows BOOTMGR (Vista)
File System: NTFS
Listed in GPT as partition 4, type Basic Data
Listed in MBR as partition 4, type 07 NTFS/HPFS, active

After Refit MBR data

*** Report for internal hard disk ***

Current GPT partition table:
# Start LBA End LBA Type
1 40 409639 EFI System (FAT)
2 409640 391620607 Mac OS X HFS+
3 391882752 526063615 Basic Data
4 526063616 625141759 Basic Data

Current MBR partition table:
# A Start LBA End LBA Type
1 1 409639 ee EFI Protective
2 409640 391620607 af Mac OS X HFS+
3 391882752 526063615 0b FAT32 (CHS)
4 526063616 625141759 0c FAT32 (LBA)

MBR contents:
Boot Code: Unknown, but bootable

Partition at LBA 40:
Boot Code: None (Non-system disk message)
File System: FAT32
Listed in GPT as partition 1, type EFI System (FAT)

Partition at LBA 409640:
Boot Code: None
File System: HFS Extended (HFS+)
Listed in GPT as partition 2, type Mac OS X HFS+
Listed in MBR as partition 2, type af Mac OS X HFS+

Partition at LBA 391882752:
Boot Code: None (Non-system disk message)
File System: FAT32
Listed in GPT as partition 3, type Basic Data
Listed in MBR as partition 3, type 0b FAT32 (CHS)

Partition at LBA 526063616:
Boot Code: Windows BOOTMGR (Vista)
File System: NTFS
Listed in GPT as partition 4, type Basic Data
Listed in MBR as partition 4, type 0c FAT32 (LBA)

Discussion

  • Joe van Tunen
    Joe van Tunen
    2012-06-05

    You should not use rEFIt's sync option since it can only handle 3 or 4 partitions.

    Use fdisk to fix the partition type in the MBR.

    Use gpt fdisk instead for syncing partitions.
    http://www.rodsbooks.com/gdisk/
    Use either gdisk (it's like fdisk) or cgdisk (has a text UI).

    If you cannot get Windows to boot, then use http://members.shaw.ca/joevt/dumpvols2.sh.zip to list your partition information and post the results here so we can see what needs to be fixed.

    Development on rEFIt has basically stopped. Consider trying out rEFInd.
    http://www.rodsbooks.com/refind/

    I think rEFInd has all the features of rEFIt except the rEFItBlesser. You can manually change rEFItBlesser to point to rEFInd or remove rEFItBlesser altogether.

     
  • Sherif
    Sherif
    2012-06-07

    I booted with bartpe and used mbr editor to change the partition id. But It now does not boot even. Currently I have the following data. I then tried to install refind but it does not see the windows partition.

    *** Report for internal hard disk ***

    Current GPT partition table:
    # Start LBA End LBA Type
    1 40 409639 EFI System (FAT)
    2 409640 391620607 Mac OS X HFS+
    3 391882752 526063615 Basic Data
    4 526063616 625141759 Basic Data

    Current MBR partition table:
    # A Start LBA End LBA Type
    1 1 409639 ee EFI Protective
    2 409640 391620607 af Mac OS X HFS+
    3 391882752 526063615 0b FAT32 (CHS)
    4 526063616 625141759 07 NTFS/HPFS

    MBR contents:
    Boot Code: Unknown, but bootable

    Partition at LBA 40:
    Boot Code: None (Non-system disk message)
    File System: FAT32
    Listed in GPT as partition 1, type EFI System (FAT)

    Partition at LBA 409640:
    Boot Code: None
    File System: HFS Extended (HFS+)
    Listed in GPT as partition 2, type Mac OS X HFS+
    Listed in MBR as partition 2, type af Mac OS X HFS+

    Partition at LBA 391882752:
    Boot Code: None (Non-system disk message)
    File System: FAT32
    Listed in GPT as partition 3, type Basic Data
    Listed in MBR as partition 3, type 0b FAT32 (CHS)

    Partition at LBA 526063616:
    Boot Code: Windows BOOTMGR (Vista)
    File System: NTFS
    Listed in GPT as partition 4, type Basic Data
    Listed in MBR as partition 4, type 07 NTFS/HPFS

     
  • Joe van Tunen
    Joe van Tunen
    2012-06-08

    For rEFInd to show Windows partitions, you need to add hdbios,biosexternal,cd to scanfor in the refind.conf file.

    You can use fdisk in Mac OS X to change MBR partition types.
    sudo fdisk -e /dev/disk0
    Press "?" for help. Press "p" to print MBR partitions. "s #" to change type of partition #. "f #" to set a partition as active (rEFIt or rEFInd does this for you when you select the partition at startup).

    I don't see anything wrong with your partitions. Run http://members.shaw.ca/joevt/dumpvols2.sh.zip to list your partition information and post the results here so we can see what needs to be fixed.

    What kind of Mac are you using?

    What kind of hard drive is it? Device block size?

    Do you see any message at startup after you select the Windows partition?

    Have you tried using the Mac's Startup Manager instead?
    http://support.apple.com/kb/HT1310

     
  • Sherif
    Sherif
    2012-06-08

    Solved:

    1- Edited the partition table after booting with WinXP-Bartpe and using this program
    http://www.pendriveapps.com/partition-table-editor-ptedit/

    2- installed refind software
    3- inf file: ///EFI/refind/refind.conf, I uncommented scanfor line and added
    hdbios,biosexternal,cd to it

    Thanks for cooperation with Joe and Rod Smith