hardlinks errors restoring xp ntfs to vm disk (again)

Post here if you found a bug or something really not expected in the program
Post Reply
m.ardito
Posts: 17
Joined: Tue Jul 20, 2010 1:30 pm

hardlinks errors restoring xp ntfs to vm disk (again)

Post by m.ardito » Fri Feb 03, 2012 2:23 pm

Hi,

i have a new issue like the one i posted about on jul 10, 2010
(http://www.fsarchiver.org/forums/viewto ... =17&t=1075)

i created an archive from a win7x64 "c:\" partition with

Code: Select all

====================== archive information ======================
Archive type: 			filesystems
Filesystems count: 		1
Archive id: 			4f2f624b
Archive file format: 		FsArCh_002
Archive created with: 		0.6.12
Archive creation date: 		2012-02-03_12-41-16
Archive label: 			<none>
Minimum fsarchiver version:	0.6.4.0
Compression level: 		3 (gzip level 6)
Encryption algorithm: 		none

===================== filesystem information ====================
Filesystem id in archive: 	0
Filesystem format: 		ntfs
Filesystem label: 		Windows7_OS
Filesystem uuid: 		1A6489276489072B
Original device: 		/dev/sda2
Original filesystem size: 	454.53 GB (488047108096 bytes)
Space used in filesystem: 	33.87 GB (36371644416 bytes)
i had no errors of sort while creating, but while restoring i get
Statistics for filesystem 0

Code: Select all

* files successfully processed:....regfiles=89351, directories=23197, symlinks=63, hardlinks=26112, specials=2
* files with errors:...............regfiles=0, directories=0, symlinks=0, hardlinks=24, specials=0
now i've repeated all the steps you hinted me on in the past, and i had really similar results: it seems mostly the same issue...

Code: Select all

-[00][ 88%][DIR     ] /Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70, system.ntfs_acl)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70, system.ntfs_attrib)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70, system.ntfs_times)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70, system.ntfs_dos_name)=0
-[00][ 88%][HARDLINK] /Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/AMDSBS.inf
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/AMDSBS.inf, system.ntfs_acl)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/AMDSBS.inf, system.ntfs_attrib)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/AMDSBS.inf, system.ntfs_times)=0
[errno=5, Input/output error]: oper_restore.c#255,extractar_restore_attr_windows(): winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/AMDSBS.inf,system.ntfs_dos_name) failed
oper_restore.c#463,extractar_restore_obj_hardlink(): cannot restore file attributes for file [/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/AMDSBS.inf]
-[00][ 88%][HARDLINK] /Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/amdsbs.sys
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/amdsbs.sys, system.ntfs_acl)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/amdsbs.sys, system.ntfs_attrib)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/amdsbs.sys, system.ntfs_times)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/amdsbs.sys, system.ntfs_dos_name)=0
-[00][ 88%][DIR     ] /Windows/winsxs/amd64_angel264.inf_31bf3856ad364e35_6.1.7600.16385_none_9421cee72a5bb5c5
            winattr:lsetxattr(/Windows/winsxs/amd64_angel264.inf_31bf3856ad364e35_6.1.7600.16385_none_9421cee72a5bb5c5, system.ntfs_acl)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_angel264.inf_31bf3856ad364e35_6.1.7600.16385_none_9421cee72a5bb5c5, system.ntfs_attrib)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_angel264.inf_31bf3856ad364e35_6.1.7600.16385_none_9421cee72a5bb5c5, system.ntfs_times)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_angel264.inf_31bf3856ad364e35_6.1.7600.16385_none_9421cee72a5bb5c5, system.ntfs_dos_name)=0
so, mounted (in the kvm ide disk) the restored partition and then

Code: Select all

[email protected] /root % getfattr -h -n system.ntfs_dos_name /mnt/w7/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/AMDSBS.inf
/mnt/w7/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/AMDSBS.inf: system.ntfs_dos_name: Operation not supported
then i got the inode

Code: Select all

[email protected] /root % ls -li /mnt/w7/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/AMDSBS.inf
47600 -r-------- 2 root root 7320 Jul 13  2009 /mnt/w7/Windows/winsxs/amd64_amdsbs.inf_31bf3856ad364e35_6.1.7600.16385_none_c192282a2ed13c70/AMDSBS.inf
r
then umounted and used ntfsinfo on that inode

Code: Select all

[email protected] /root % umount /mnt/w7
[email protected] /root % ntfsinfo -vi 47600 /dev/sda1
Dumping Inode 47600 (0xb9f0)
Upd. Seq. Array Off.:    48 (0x30)
Upd. Seq. Array Count:   3 (0x3)
Upd. Seq. Number:        17 (0x11)
LogFile Seq. Number:     0x0
MFT Record Seq. Numb.:   1 (0x1)
Number of Hard Links:    2 (0x2)
Attribute Offset:        56 (0x38)
MFT Record Flags:        IN_USE
Bytes Used:              456 (0x1c8) bytes
Bytes Allocated:         1024 (0x400) bytes
Next Attribute Instance: 5 (0x5)
MFT Padding:    00 00
Dumping attribute $STANDARD_INFORMATION (0x10) from mft record 47600 (0xb9f0)
        Attribute length:        96 (0x60)
        Resident:                Yes
        Name length:             0 (0x0)
        Name offset:             0 (0x0)
        Attribute flags:         0x0000
        Attribute instance:      0 (0x0)
        Data size:               72 (0x48)
        Data offset:             24 (0x18)
        Resident flags:          0x00
        ReservedR:               0 (0x0)
        File Creation Time:      Mon Jul 13 20:39:55 2009
        File Altered Time:       Mon Jul 13 20:39:55 2009
        MFT Changed Time:        Fri Feb  3 13:36:04 2012
        Last Accessed Time:      Mon Jul 13 20:39:55 2009
        File attributes:         ARCHIVE (0x00000000)
        Maximum versions:        0
        Version number:          0
        Class ID:                0
        User ID:                 0 (0x0)
        Security ID:             581 (0x245)
        Quota charged:           0 (0x0)
        Update Sequence Number:  0 (0x0)
Dumping attribute $FILE_NAME (0x30) from mft record 47600 (0xb9f0)
        Attribute length:        112 (0x70)
        Resident:                Yes
        Name length:             0 (0x0)
        Name offset:             0 (0x0)
        Attribute flags:         0x0000
        Attribute instance:      3 (0x3)
        Data size:               86 (0x56)
        Data offset:             24 (0x18)
        Resident flags:          0x01
        ReservedR:               0 (0x0)
        Parent directory:        47599 (0xb9ef)
        File Creation Time:      Mon Jul 13 20:39:55 2009
        File Altered Time:       Mon Jul 13 20:39:55 2009
        MFT Changed Time:        Fri Feb  3 13:36:04 2012
        Last Accessed Time:      Mon Jul 13 20:39:55 2009
        Allocated Size:          8192 (0x2000)
        Data Size:               0 (0x0)
        Filename Length:         10 (0xa)
        File attributes:         ARCHIVE (0x00000000)
        Namespace:               POSIX
        Filename:                'amdsbs.inf'
Dumping attribute $FILE_NAME (0x30) from mft record 47600 (0xb9f0)
        Attribute length:        112 (0x70)
        Resident:                Yes
        Name length:             0 (0x0)
        Name offset:             0 (0x0)
        Attribute flags:         0x0000
        Attribute instance:      4 (0x4)
        Data size:               86 (0x56)
        Data offset:             24 (0x18)
        Resident flags:          0x01
        ReservedR:               0 (0x0)
        Parent directory:        67064 (0x105f8)
        File Creation Time:      Mon Jul 13 20:39:55 2009
        File Altered Time:       Mon Jul 13 20:39:55 2009
        MFT Changed Time:        Fri Feb  3 13:36:04 2012
        Last Accessed Time:      Mon Jul 13 20:39:55 2009
        Allocated Size:          8192 (0x2000)
        Data Size:               7320 (0x1c98)
        Filename Length:         10 (0xa)
        File attributes:         ARCHIVE (0x00000000)
        Namespace:               Win32 & DOS
        Filename:                'AMDSBS.inf'
Dumping attribute $DATA (0x80) from mft record 47600 (0xb9f0)
        Attribute length:        72 (0x48)
        Resident:                No
        Name length:             0 (0x0)
        Name offset:             64 (0x40)
        Attribute flags:         0x0000
        Attribute instance:      2 (0x2)
        Lowest VCN               0 (0x0)
        Highest VCN:             1 (0x1)
        Mapping pairs offset:    64 (0x40)
        Compression unit:        0 (0x0)
        Data size:               7320 (0x1c98)
        Allocated size:          8192 (0x2000)
        Initialized size:        7320 (0x1c98)
        Runlist:        VCN             LCN             Length
                        0x0             0x7b2c13                0x2
End of inode reached
for comparison, i've repeated everything for the file restored before this, without errors:

Code: Select all

-[00][ 88%][HARDLINK] /Windows/winsxs/amd64_amdsbs.inf.resources_31bf3856ad364e35_6.1.7600.16385_it-it_b32777ea494c2871/AMDSBS.inf_loc
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf.resources_31bf3856ad364e35_6.1.7600.16385_it-it_b32777ea494c2871/AMDSBS.inf_loc, system.ntfs_acl)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf.resources_31bf3856ad364e35_6.1.7600.16385_it-it_b32777ea494c2871/AMDSBS.inf_loc, system.ntfs_attrib)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf.resources_31bf3856ad364e35_6.1.7600.16385_it-it_b32777ea494c2871/AMDSBS.inf_loc, system.ntfs_times)=0
            winattr:lsetxattr(/Windows/winsxs/amd64_amdsbs.inf.resources_31bf3856ad364e35_6.1.7600.16385_it-it_b32777ea494c2871/AMDSBS.inf_loc, system.ntfs_dos_name)=0
and this is what i got for its inode

Code: Select all

[email protected] /root % ntfsinfo -vi 53472 /dev/sda1
Dumping Inode 53472 (0xd0e0)
Upd. Seq. Array Off.:    48 (0x30)
Upd. Seq. Array Count:   3 (0x3)
Upd. Seq. Number:        16 (0x10)
LogFile Seq. Number:     0x0
MFT Record Seq. Numb.:   1 (0x1)
Number of Hard Links:    3 (0x3)
Attribute Offset:        56 (0x38)
MFT Record Flags:        IN_USE
Bytes Used:              592 (0x250) bytes
Bytes Allocated:         1024 (0x400) bytes
Next Attribute Instance: 7 (0x7)
MFT Padding:    00 00
Dumping attribute $STANDARD_INFORMATION (0x10) from mft record 53472 (0xd0e0)
        Attribute length:        96 (0x60)
        Resident:                Yes
        Name length:             0 (0x0)
        Name offset:             0 (0x0)
        Attribute flags:         0x0000
        Attribute instance:      0 (0x0)
        Data size:               72 (0x48)
        Data offset:             24 (0x18)
        Resident flags:          0x00
        ReservedR:               0 (0x0)
        File Creation Time:      Thu Jan 12 00:46:02 2012
        File Altered Time:       Thu Jan 12 00:46:02 2012
        MFT Changed Time:        Fri Feb  3 13:36:04 2012
        Last Accessed Time:      Thu Jan 12 00:46:02 2012
        File attributes:         ARCHIVE (0x00000000)
        Maximum versions:        0
        Version number:          0
        Class ID:                0
        User ID:                 0 (0x0)
        Security ID:             265 (0x109)
        Quota charged:           0 (0x0)
        Update Sequence Number:  0 (0x0)
Dumping attribute $FILE_NAME (0x30) from mft record 53472 (0xd0e0)
        Attribute length:        120 (0x78)
        Resident:                Yes
        Name length:             0 (0x0)
        Name offset:             0 (0x0)
        Attribute flags:         0x0000
        Attribute instance:      3 (0x3)
        Data size:               94 (0x5e)
        Data offset:             24 (0x18)
        Resident flags:          0x01
        ReservedR:               0 (0x0)
        Parent directory:        53462 (0xd0d6)
        File Creation Time:      Thu Jan 12 00:46:02 2012
        File Altered Time:       Thu Jan 12 00:46:02 2012
        MFT Changed Time:        Fri Feb  3 13:36:04 2012
        Last Accessed Time:      Thu Jan 12 00:46:02 2012
        Allocated Size:          4096 (0x1000)
        Data Size:               0 (0x0)
        Filename Length:         14 (0xe)
        File attributes:         ARCHIVE (0x00000000)
        Namespace:               POSIX
        Filename:                'AMDSBS.inf_loc'
Dumping attribute $FILE_NAME (0x30) from mft record 53472 (0xd0e0)
        Attribute length:        120 (0x78)
        Resident:                Yes
        Name length:             0 (0x0)
        Name offset:             0 (0x0)
        Attribute flags:         0x0000
        Attribute instance:      6 (0x6)
        Data size:               94 (0x5e)
        Data offset:             24 (0x18)
        Resident flags:          0x01
        ReservedR:               0 (0x0)
        Parent directory:        67063 (0x105f7)
        File Creation Time:      Thu Jan 12 00:46:02 2012
        File Altered Time:       Thu Jan 12 00:46:02 2012
        MFT Changed Time:        Fri Feb  3 13:36:04 2012
        Last Accessed Time:      Thu Jan 12 00:46:02 2012
        Allocated Size:          4096 (0x1000)
        Data Size:               1442 (0x5a2)
        Filename Length:         14 (0xe)
        File attributes:         ARCHIVE (0x00000000)
        Namespace:               Win32
        Filename:                'AMDSBS.inf_loc'
Dumping attribute $FILE_NAME (0x30) from mft record 53472 (0xd0e0)
        Attribute length:        120 (0x78)
        Resident:                Yes
        Name length:             0 (0x0)
        Name offset:             0 (0x0)
        Attribute flags:         0x0000
        Attribute instance:      5 (0x5)
        Data size:               90 (0x5a)
        Data offset:             24 (0x18)
        Resident flags:          0x01
        ReservedR:               0 (0x0)
        Parent directory:        67063 (0x105f7)
        File Creation Time:      Thu Jan 12 00:46:02 2012
        File Altered Time:       Thu Jan 12 00:46:02 2012
        MFT Changed Time:        Fri Feb  3 13:36:04 2012
        Last Accessed Time:      Thu Jan 12 00:46:02 2012
        Allocated Size:          4096 (0x1000)
        Data Size:               1442 (0x5a2)
        Filename Length:         12 (0xc)
        File attributes:         ARCHIVE (0x00000000)
        Namespace:               DOS
        Filename:                'AMDSBS~1.INF'
Dumping attribute $DATA (0x80) from mft record 53472 (0xd0e0)
        Attribute length:        72 (0x48)
        Resident:                No
        Name length:             0 (0x0)
        Name offset:             64 (0x40)
        Attribute flags:         0x0000
        Attribute instance:      2 (0x2)
        Lowest VCN               0 (0x0)
        Highest VCN:             0 (0x0)
        Mapping pairs offset:    64 (0x40)
        Compression unit:        0 (0x0)
        Data size:               1442 (0x5a2)
        Allocated size:          4096 (0x1000)
        Initialized size:        1442 (0x5a2)
        Runlist:        VCN             LCN             Length
                        0x0             0x16f47e                0x1
End of inode reached
up to here, it'all I know I can do to give you hints, but feel free to ask.
hth,
Marco

Post Reply