0

Let's say I'll create a bootable USB stick. Can a system on HDD modify, add or delete files on boot able stick without reformatting? If so, will use of SD card with USB adapter be good idea, as they have write protection switch?

4
  • It depends. If it's a raw copy of an image (ISO) then no, it can't, the same way it wouldn't be possible to do it with optical media. But there are many way of creating bootable USB sticks. Commented May 26, 2022 at 6:21
  • @ChanganAuto what copy would be considered as raw?
    – He Y
    Commented May 26, 2022 at 7:07
  • Something made with dd or any tool using it (e.g. Balena Etcher, MKUSB, etc.). An example of other way to make a (multi) bootable stick is Ventoy or Multisystem. With this tools the partition is writable. Commented May 26, 2022 at 10:08
  • @ChanganAuto so dd would make it hard to modify (not saying impossible considering Mr. Davis son answer) and multi boot tools will make it writable.
    – He Y
    Commented May 28, 2022 at 0:37

1 Answer 1

1

Short answer: If you don't want the contents to be modifiable, use something with a write protect switch (e.g. an SD card).

Long answer: It sort of depends on the filesystem (/volume) format used on the USB drive, but only sort of. Most filesystem formats are designed to be writable, so when they're mounted it's generally easy to add, modify, or delete files on them. A few filesystems, like SquashFS and ISO 9660, are designed to be written only once, and not to have their contents changed after that initial write. But just because they're not designed to be changed to doesn't mean it's impossible, just that it's difficult to change them (without corrupting the volume, that is), and that generally software won't support modifying them.

So if you format the stick using a write-once filesystem format, it'll be difficult, but not impossible, to modify its contents. If you want it to be impossible to modify, use something with a hardware write protect switch.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .