Quote:
Originally Posted by Web31337
never thought linux kernel executes something from USB/etc "on connect"...
--
upd: i also never thought some executable code can be stored in boot records...
|
It's the terrible way they designed it, back in the 80's the bios did not know anything about partitions and neither does it now, the bios or its substitute just executes the machine code in the master boot record that implements the partitioning functionality, which may therefore not be the standard of up to 4 partitions (3 primaries, one extended) but something else completely different, or even a virus.
Boot records in partitions also contain executable machine code, useful if they are bootable. Hopefully this code does not get executed in our case a USB drive being hotplugged. But it may well be, cause otherwise how can boot sector viruses exist.