I think drive physically OK. I don't remember how I created it, yearS ago.
I don't remember what I might have done to try to make it bootable.
It
may have a ?backup?/copy of XP sp2.
When I boot it, grub says something
sorry, I'll try to get a pic. ?: no way to copy&paste nor |nc termbin ??
?**: Is there some 'dump-grub' cmd to examine&post/termbin the
full state of grub? ?? ???**
https://help.ubuntu.com/community/Grub2/Troubleshooting
I web-search:
repair grub xp mbr but there's sooooo
many ways that my mind is overwhelmed.
I thought of
trying to dd back ?some? 512byte mbr 1block... IDK...
Code:
$ sudo lsblk -f /dev/sdb
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sdb
├─sdb1 ntfs SW_Preload ACF0544FF05421BE
├─sdb2 ext4 ff7165c1-74fc-4862-adb5-1c1aa30a0784 6.4G 6% /media/user/ff7165c1-
├─sdb3
└─sdb4 reiserfs bf28c74f-8d4b-45f6-b8e2-39310ea3a064 687.4G 2% /media/user/bf28c74f-
$ sudo mount /dev/sdb1 /mnt
ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid argument
Corrupt index block signature: vcn 0 inode 5
Failed to open $Secure: No such file or directory
Failed to mount '/dev/sdb1': No such file or directory
$ sudo ntfsfix /dev/sdb1
Mounting volume... ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid argument
Corrupt index block signature: vcn 0 inode 5
Failed to open $Secure: No such file or directory
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
ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid argument
Corrupt index block signature: vcn 0 inode 5
Failed to open $Secure: No such file or directory
Remount failed: No such file or directory
Code:
$ sudo fsck /dev/sdb1 # produced no change; IDK why it said nothing!
fsck from util-linux 2.33.1
$ ls /media/user/*
/media/user/bf28c74f-8d4b-45f6-b8e2-39310ea3a064:
bin dev home lib libx32 mnt proc run sys tmp var
boot etc KNOPPIX lib64 media opt root sbin tftpboot usr
/media/user/ff7165c1-74fc-4862-adb5-1c1aa30a0784:
bin dev home lib media opt root sbin srv tmp var win
boot etc initrd.img lost+found mnt proc run selinux sys usr vmlinuz XP
$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: External USB 3.0
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: 0x931a31d0
Device Boot Start End Sectors Size Id Type
/dev/sdb1 3074048 467912703 464838656 221.7G 7 HPFS/NTFS/exFAT
/dev/sdb2 467912704 483536895 15624192 7.5G 83 Linux
/dev/sdb3 483536896 488396799 4859904 2.3G 82 Linux swap / Solaris
/dev/sdb4 * 488396800 1953525167 1465128368 698.6G 83 Linux
$
Code:
$ sudo parted -l /dev/sdb
Model: ATA ST9250315AS (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 107GB 107GB primary ntfs boot
2 107GB 239GB 132GB extended
5 107GB 112GB 4295MB logical linux-swap(v1)
6 112GB 146GB 34.4GB logical ext4
3 239GB 250GB 10.7GB primary fat32
4 250GB 250GB 17.5MB primary hidden
Model: Toshiba External USB 3.0 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1574MB 240GB 238GB primary ntfs
2 240GB 248GB 8000MB primary ext4
3 248GB 250GB 2488MB primary
4 250GB 1000GB 750GB primary reiserfs boot
$
I
welcome links, switches, cmds, .....
?: would running 'boot-repair' iso ?damage? a chance for XP to boot? CLI (vs iso)?
Hers's the boot-repair info (hdd on other PC, so
different sda!)
https://paste.ubuntu.com/p/M6RwyDKPsh/
?: I dropped the g from parted (I
hate that I can't copy&paste GUI, like text!) Is this
the best/most-extensve util?
Sorry to be sooooo LOST.... TiA: Thanks in Advance...
Edit: More: logs: # egrep 'Aug 8 17:[45]|Aug 8 18:' /var/log/* 2>/dev/null |nc termbin.com 9999
https://termbin.com/1ii4 Oooops: ignore the 1st third which is auth.log stuff
mysteriously going on
zt has available targets 1/line: abstraction, arc_hints, baremetal_hints, bios_hints, compatibility_hint, cryptodisk_uuid, device, disk, drive, efi_hints, fs, fs_label, fs_uuid, gpt_parttype, hints_string, ieee1275_hints, msdos_parttype, partmap, partuuid, zero_check [default=fs]
Code:
# for i in `cat zt`;do grub-probe -d /dev/sdb1 -t $i;done
ahci1,msdos1
hd1,msdos1
hd1,msdos1
/dev/sdb1
/dev/sdb
(hostdisk//dev/sdb,msdos1)
hd1,msdos1
ntfs
grub-probe: error: INDX label not found.
ACF0544FF05421BE
--hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1
07
msdos
931a31d0-01
false
# for i in `cat zt`;do grub-probe -m /media/user/ff7165c1-74fc-4862-adb5-1c1aa30a0784/boot/grub/device.map -d /dev/sdb2 -t $i;done
ahci1,msdos2
hd1,msdos2
hd1,msdos2
/dev/sdb2
/dev/sdb
(hostdisk//dev/sdb,msdos2)
hd1,msdos2
ext2
ff7165c1-74fc-4862-adb5-1c1aa30a0784
--hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2
83
msdos
931a31d0-02
false
# for i in `cat zt`;do grub-probe -d /dev/sdb3 -t $i;done
ahci1,msdos3
hd1,msdos3
hd1,msdos3
/dev/sdb3
/dev/sdb
(hostdisk//dev/sdb,msdos3)
hd1,msdos3
grub-probe: error: unknown filesystem.
grub-probe: error: unknown filesystem.
grub-probe: error: unknown filesystem.
--hint-bios=hd1,msdos3 --hint-efi=hd1,msdos3 --hint-baremetal=ahci1,msdos3
82
msdos
931a31d0-03
true
# for i in `cat zt`;do grub-probe -m /media/user/bf28c74f-8d4b-45f6-b8e2-39310ea3a064/boot/grub/device.map -d /dev/sdb4 -t $i;done
hd0,msdos4
hd0,msdos4 ahci1,msdos4
hd1,msdos4
hd0,msdos4
/dev/sdb4
/dev/sdb
(hd0,msdos4)
hd0,msdos4 hd1,msdos4
reiserfs
bf28c74f-8d4b-45f6-b8e2-39310ea3a064
--hint-bios=hd1,msdos4 --hint-efi=hd1,msdos4 --hint-baremetal=ahci1,msdos4 --hint='hd0,msdos4'
hd0,msdos4
83
msdos
931a31d0-04
false
#