Does anyone have experience installing ubuntu server onto a USB drive, specifically a btrfs raid?
I have 6-sata slots and I don’t want to waste one on an OS, let along two for RAID-0 OS. Is there a way to install the OS to an 16gb usb/flash drive then expand into a 3-usbs in Raid-0 and still make it bootable?
@kungr better. Just wanted to verify. So, the concern I see with raid-0 on flash drives is that they die. You’ll want something that’s reliable.
I would do something like this instead:
In fact, it’s what I did do to make a portable Linux OS for when I need to do work on a shared computer that’s not running the obviously superior OS.
As far as the install goes, just make sure the OS drives are the only ones plugged in at the time of install if you’re going UEFI, otherwise, just install it like you would any other time.
Why not just use the USE as a boot disk and then just run everything from a RAM Disk? if you are not using DDR4, RAM is cheap and will be leaps and bounds faster than USB RAID.
You would setup the RAM Disk to periodically Sync with the USB drive. Just pray for no brown outs or black outs. Unless you have a UPS.
Ram prices suck dawg. Ram, and GPUs really just aren’t something you should buy right now unless you have to have it.
Am I wrong in thinking it’s as simple as telling the UEFI to boot from the USB raid? Pretty sure you’re going to need a separate usb device to do that with.
If you’re really worried about sata ports couldn’t you just get a cheap expansion sata controller and buy some cheapo SSDs, or maybe even some sata -> usb devices exist,
If you can’t set up the raid when installing then you just install it to one disk then add the others after it’s been installed. These are the commands to do so:
btrfs dev add /dev/sdx /
where /dev/sdx is the disk you want to add to the raid and / is the mount point (which will just be / if it’s the root volume)
Absolutely. Depending on what you use for the array (btrfs, zfs, lvm, md) all you have to do is load the correct driver, do the initialization tasks and mount the virtual devices.