QmKt2dmmU49sdcm.jpg

I am just about to set up my new Linux machine, which will be used to convert analog video and audio to digital video and audio. Is there any reason why I shouldn’t run the system off of a live USB stick (say, a good quality one from Sandisk), that is, without installing Linux on the hard drive and not setting up a boot partition, a system partition, and all that?

  • klankin@piefed.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    30 minutes ago

    Just mount /home and /var to an SSD, tempFS(If you dont care about your data), or network drive and this is a perfect purpose for USB booting.

    Saves your hard drives from all the bootloader stuff, and should be faster than a spinning disk if the drive is 3.0.

    Id even mount the USB as read only to ensure it isnt damaged, and use any ISO generator to manage updates from another device (Like create a new flash, shutdown this PC, plug in the new flash - bam update complete)

    • MangoCats@feddit.it
      link
      fedilink
      English
      arrow-up
      2
      ·
      19 minutes ago

      /home and /var are the main targets for persistent storage. Unfortunately, a LOT of applications color outside those lines, so you’re into a bit of case-by-case for what else needs to go into persistent storage, depending on what you run and how you configure it.

  • lepton64@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    1 hour ago

    The thing is USB sticks are much more unstable than an nvme or something, so you’re more likely to lose your data. They can also be stolen way easier than an nvme or hard drive, but if you encrypt it w/ a strong password that shouldn’t be an issue.

    • MangoCats@feddit.it
      link
      fedilink
      English
      arrow-up
      2
      ·
      18 minutes ago

      The concept here is that the USB carries the immutable OS image, you make as many copies of it as you need because it’s a fixed image, boots the same every time, “your data” gets stored elsewhere.

  • LogicOverFeelings@piefed.ca
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 hours ago

    That’s a totally valid use case, I have done it in the past and there are Linux distributions that are made to be used this way. Those distributions usually work by loading the whole system into ram which avoid multiples writes to the USB stick. They also usually offer some persistence mechanism so that data can be added on the USB stick.

    Examples of distribution meant to be used this way: MX Linux, Puppy Linux

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    6
    ·
    3 hours ago

    You can configure a lighter-weight setup (lxde, xfce, maybe mate, mint) so that it writes only if you do some writing. And also mount options to cache for a minute or so, for the smaller writes. But you better have some RAM then, for Firefox in memory/tmpfs. And compiling larger software will destroy your stick.

    Also keep in mind, that thumbdrives are relatively cheap is, because it’s flash memory is one step in quality before defetctive. Also no wear leveling.

  • MajesticTechie@feddit.uk
    link
    fedilink
    arrow-up
    35
    ·
    7 hours ago

    Mainly performance will take a hit. USB drives are also not really rated for consistent writes so you’ll find a USB dies quicker than a standard drive

  • TrollAccount69@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    6 hours ago

    No.

    The person who said it’ll be too slow and you’ll ruin your usb is right but also:

    Your system supports a nvme and sata. Dumping raw to nvme then working with it there so it doesn’t take so long to page into ram will be significantly faster.

    Use spinning drives for storage though.

  • wltr@discuss.tchncs.de
    link
    fedilink
    arrow-up
    4
    ·
    6 hours ago

    To tune the question slightly: what about USB SSD? I thought of doing the same thing for a different PC. (For HTPC.)

  • nieceandtows@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    6 hours ago

    I remember a long time ago when I went to an onsite assignment and got a laptop. I didn’t have my personal laptop so I just booted puppy Linux off a USB drive and used the office laptop as my personal device until I bought a personal laptop there. Fun times.