News for hackers. Stuff that matters.
Re:Ventoy: A new bootable USB solution by rgovostes on Saturday August 22, 2020 @12:59PM (#24245458)
If the drive needs to be reformatted or the partition map changed, that doesn't seem like it would work.
Re:Ventoy: A new bootable USB solution by Renaud on Friday August 28, 2020 @08:51AM (#24304226)
I know it goes contrary to common sense, as we could expect a lock on the exe, but it does work.

I mean it's easy enough to try for yourself if you do not believe my own experience.

Re:Ventoy: A new bootable USB solution by jhardy54 on Saturday August 22, 2020 @03:36PM (#24246674)
Why not? Once a process is started I'd be very surprised if you couldn't delete the executable from the disk.
Re:Ventoy: A new bootable USB solution by bitwize on Sunday August 23, 2020 @12:00AM (#24249413)
Windows file systems work very differently from Linux. If a file is open, Windows will put a lock on it that prevents moving or deleting the file -- and the executable image of a process is open for as long as the process runs.

This is different from the Linux situation, in which a file's name and directory location are separate from its inode, or the data structure holding actual information about the file including where the data lives on disk: once the inode associated with a file name is looked up and the file opened, anything may be done with the file name, including changing or unlinking it. Inodes with no links will also only be freed once every open file descriptor on the unlinked inode is closed. So a process will keep on chugging even if its executable file on disk is deleted, as though nothing happened -- because the file itself is only deleted once its inode is closed and unlinked.