[sudo] password for inovatech: === Sun Jun 21 05:17:13 PM UTC 2026 fix-boot-windows v2 /NFS01/migrate/v2v-ALPI-TSPLUS-MIG-20260621-145603/ALPI-TSPLUS-MIG-boot-sda === /dev/nbd0 disconnected --- GPT layout before --- *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT format in memory. *************************************************************** Disk /dev/nbd0: 671088640 sectors, 320.0 GiB Sector size (logical/physical): 512/512 bytes Disk identifier (GUID): 9B4E0A52-FF99-4DF8-8739-33A340BC6C28 Partition table holds up to 128 entries Main partition table begins at sector 2 and ends at sector 33 First usable sector is 34, last usable sector is 671088606 Partitions will be aligned on 2048-sector boundaries Total free space is 6077 sectors (3.0 MiB) Number Start (sector) End (sector) Size Code Name 1 2048 718847 350.0 MiB 0700 Microsoft basic data 2 718848 671084543 319.7 GiB 0700 Microsoft basic data --- Parse GPT and build sfdisk MBR script --- label: dos unit: sectors /dev/nbd0p1 : start=2048, size=716800, type=7 /dev/nbd0p2 : start=718848, size=670365696, type=7 bootable --- Wipe old GPT (so we can use sfdisk) --- *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT format in memory. *************************************************************** GPT data structures destroyed! You may now partition the disk using fdisk or other utilities. --- Apply MBR via sfdisk --- Checking that no-one is using this disk right now ... OK Disk /dev/nbd0: 320 GiB, 343597383680 bytes, 671088640 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes >>> Script header accepted. >>> Script header accepted. >>> Created a new DOS (MBR) disklabel with disk identifier 0xbdbd5d79. /dev/nbd0p1: Created a new partition 1 of type 'HPFS/NTFS/exFAT' and of size 350 MiB. Partition #1 contains a ntfs signature. /dev/nbd0p2: Created a new partition 2 of type 'HPFS/NTFS/exFAT' and of size 319.7 GiB. Partition #2 contains a ntfs signature. /dev/nbd0p3: Done. New situation: Disklabel type: dos Disk identifier: 0xbdbd5d79 Device Boot Start End Sectors Size Id Type /dev/nbd0p1 2048 718847 716800 350M 7 HPFS/NTFS/exFAT /dev/nbd0p2 * 718848 671084543 670365696 319.7G 7 HPFS/NTFS/exFAT The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. --- MBR layout after --- Disk /dev/nbd0: 320 GiB, 343597383680 bytes, 671088640 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xbdbd5d79 Device Boot Start End Sectors Size Id Type /dev/nbd0p1 2048 718847 716800 350M 7 HPFS/NTFS/exFAT /dev/nbd0p2 * 718848 671084543 670365696 319.7G 7 HPFS/NTFS/exFAT --- Write Win7+ MBR bootcode --- Windows 7 master boot record successfully written to /dev/nbd0 --- Find Windows NTFS partition (largest) --- WIN_PART=/dev/nbd0p2 --- Write NTFS PBR Win7+ + ntfsfix --- NTFS Windows 7 boot record successfully written to /dev/nbd0p2 Mounting volume... Corrupt attribute list entry in MFT record 9 Failed to open $Secure: Input/output error FAILED Attempting to correct errors... Processing $MFT and $MFTMirr... Reading $MFT... OK Reading $MFTMirr... OK Comparing $MFTMirr to $MFT... OK Processing of $MFT and $MFTMirr completed successfully. Setting required flags on partition... OK Going to empty the journal ($LogFile)... OK Corrupt attribute list entry in MFT record 9 Failed to open $Secure: Input/output error Remount failed: Input/output error --- Mount + copy bootmgr --- Corrupt attribute list entry in MFT record 9 Failed to open $Secure: Input/output error Failed to mount '/dev/nbd0p2': Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details.