Metadata Block ChangesPermissions ChangeFolder DeletionsRenaming FolderCopying FolderAdding ContentCompressing Folder

ReFS Folder Deletions

One of these deletion experiments simply deleted the folder through Windows Explorer, just by highlighting and clicking delete. The second experiment used Windows Explorer and while pressing delete the shift key on the keyboard was held down. In Windows the latter test should delete the file permanently, making it irretrievable from the Recycle Bin.

The table below is an extract taken from the earlier summary table at the beginning of the folder modifications section.

Metadata Block Offset

Starting Bytes

hellofolder

Deleted

Shift & Delete

Identical?

0x0750000

94 01

 

hellofolder

hellofolder

 

0x0754000

95 01

hellofolder

hellofolder

hellofolder

✔

0x0758000

96 01

hellofolder

hellofolder

hellofolder

✔

0x075C000

97 01

New folder

New folder

New folder

✔

0x07B0000

AC 01

New folder

 

New folder

 

0x07B4000

AD 01

hellofolder

hellofolder

hellofolder

✔

0x07B8000

AE 01

 

 

 

 

0x07BC000

AF 01

 

 

 

 

0x07C0000

B0 01

 

hellofolder*

 

 

 

 

 

 

 

 

 

 



The new entry at 0x07C0000 is the "$I" file which represents the deleted folder.

This table shows that at offset 0x0750000 both methods of deletion create a new entry. When investigating the hexadecimal, it can be seen that the only differences between the two are the Modified, Accessed and Entry Modified times.

The two hexadecimal blocks below show the values at the bottom of the metadata block at 0x0750000. The top one is from the drive with the folder added and the bottom one is from the drive when the folder has been deleted (identical to shift deleted). What is happening here, is a "hellofolder" entry is being put in the Recycle Bin.

Offset(h)  00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F

000750560  78 00 00 00 10 00 1C 00 00 00 30 00 48 00 00 00 30 00 02 00 24 00 52 00 45 00 43 00 59 00 43 00  x.........0.H...0...$.R.E.C.Y.C.

000750580  4C 00 45 00 2E 00 42 00 49 00 4E 00 00 00 00 00 01 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00  L.E...B.I.N.....................

0007505A0  86 98 ED 46 7D 2B D0 01 86 98 ED 46 7D 2B D0 01 6D 36 F0 46 7D 2B D0 01 86 98 ED 46 7D 2B D0 01  †˜íF}+Ð.†˜íF}+Ð.m6ÐF}+Ð.†˜íF}+Ð.

0007505C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 06 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00  ................................

0007505E0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 06 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00  ................................

000750600  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 06 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00  ................................

000750620  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 06 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00  ................................

 

The block below shows the MACE times of the deleted file entry (blue) and the deleted folder's name (orange) have been added to the block with the Recycle Bin.

000750560  78 00 00 00 10 00 1C 00 00 00 30 00 48 00 00 00 30 00 02 00 24 00 52 00 45 00 43 00 59 00 43 00  x.........0.H...0...$.R.E.C.Y.C.

000750580  4C 00 45 00 2E 00 42 00 49 00 4E 00 00 00 00 00 01 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00  L.E...B.I.N.....................

0007505A0  86 98 ED 46 7D 2B D0 01 6D 36 F0 46 7D 2B D0 01 6D 36 F0 46 7D 2B D0 01 6D 36 F0 46 7D 2B D0 01  †˜íF}+Ð.m6ÐF}+Ð.m6ÐF}+Ð.m6ÐF}+Ð.

0007505C0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 06 00 00 10 00 00 00 00 78 00 00 00 10 00 1A 00  ........................x.......

0007505E0  04 00 30 00 48 00 00 00 30 00 02 00 68 00 65 00 6C 00 6C 00 6F 00 66 00 6F 00 6C 00 64 00 65 00  ..0.H...0...h.e.l.l.o.f.o.l.d.e.

000750600  72 00 00 00 00 00 00 00 03 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10 CB 15 9F 7D 2B D0 01  r........................Ë.Ÿ}+Ð.

000750620  10 CB 15 9F 7D 2B D0 01 10 CB 15 9F 7D 2B D0 01 10 CB 15 9F 7D 2B D0 01 00 00 00 00 00 00 00 00  .Ë.Ÿ}+Ð..Ë.Ÿ}+Ð..Ë.Ÿ}+Ð.........

 

As the block above is identical when a file has been deleted normally and "permanently", it shows that the Recycle Bin still has an entry when a file is deleted permanently. This wasn't expected as permanently deleting a file essentially bypasses the Recycle Bin.

The next block at offset 0x0754000 is identical on 2 of the 3 of the drives. The one that is different is the drive where the file was permanently deleted. Ignoring the expected changes to the MACE times, the differences are shown in the table below.

Offset

Old & After Deletion

After Shift & Delete

0x0750008

0D

15

0x0754050

03

02

0x075411C

38 05

C0 04

0x0754120

3C

B8

0x0754128

74

78

0x075412C

03

02

 

The next offset where differences occur is at 0x07B0000. The untouched folder and the one with the "permanently" deleted file are identical, but the one which has been deleted normally differs. The bytes that differ are shown in the table below.

Offset

Old & Shift Deletion

After Delete

Comments

0x07B0008

0C

15

 

0x07B0198

00

10

 

0x07B019B

10

00

 

0x07B01B0

B7 D3 EF D8

BF 45 35 C6

 

0x07B02FC

66

62

 

0x07B0304

00 06

02 07

 

0x07B034C

0A

08

Folder name length.

0x07B0350

00

30

 

0x07B0356

24 00 52 00 35 00 35 00 4F 00 54 00 36 00 5A

4E 00 65 00 77 00 20 00 66 00 6F 00 6C 00 64 00 65 00 72

Folder name. "New folder" to "$R55OT6Z".

 

The table above shows the filename and the file size have changed. The filename was previously "New folder" but when deleted, changed to "$R55OT6Z". As was identified earlier (page 38) this is a data file, identifying the file that has been deleted. It has a corresponding "$I" files in the file system at offset 0x0790A24, 0x0798A24 and 0x079CA24. Another "$R" file is actually found at 0x079CE84 too.

At offset 0x07B01B0, the hexadecimal becomes BF 45 35 C6. This is the same as the same offset after the permissions had been changed. This is a permissions change occurring within the file system. In the permissions modifications test these change and the same action is repeated on the .doc, .txt and .exe files.

Finally, the block below is the final change highlighted in the initial table of this section. This isn't resident in any of the other hexadecimal files as this is the data pointed to by the "$I" file (found at offset 0x079CA24). The format of "$I" files was identified earlier (page 38). The deleted time is highlighted in green and the filename in blue.

Offset(h)  00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F

0007C0000  01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 B0 96 31 F3 91 2B D0 01 46 00 3A 00 5C 00 68 00  ................°–1Ó‘+Ð.F.:.\.h.

0007C0020  65 00 6C 00 6C 00 6F 00 66 00 6F 00 6C 00 64 00 65 00 72 00 00 00 00 00 00 00 00 00 00 00 00 00  e.l.l.o.f.o.l.d.e.r.............

 

The drive where the file had been deleted permanently did not have the block shown above, which in turn meant the "$I" file did not have a pointer to the location.