Skip to content

Linux on a Stick

Linux
29 3 3.7k 1
  • Yes, linux on a stick, otherwise know as a usb drive. I’m not talking about a live usb version of Linux. I am talking about actually install Linux on a usb drive. I was curious over the weekend, how cool would it be to install Linux on a usb drive and be able to use any computer to boot up and use my own same operating system each time with persistent data. Meaning that I can update, install and change whatever I want and be able to have the versatility of using whatever computer that may be around.

    I had read a couple of articles regarding this and decided to give it a try. I used Virtualbox to create a virtual machine. During the creation, I did not create the virtual hard drive portion. Under the USB section, I made sure to choose USB 3.0 and with the USB drive plugged in, I added it to that section. In the network section, I kept the network option to NAT and everything else I setup according to what I would normally do. Those don’t technically matter because when you boot up, the OS will use the system resources directly. One other thing that I had to select was to use EFI. With that option selected, you get the option to boot up with systemd and not grub. That did make a difference.

    I use Arch for this. One thing I found out is that you want to use the latest installer. I would say that no matter which Linux version you use, to use the latest installer to make sure you get the latest mirrors and such. I have tried this on one of the laptops at home and it worked beeeaauuttiifffuullyyyy! It was awesome. When I was done and shutdown the laptop, removed the USB drive and started the laptop up, it booted right into windblows again. So with this method, you have a portable OS that you can take anywhere and use on any computer.

    I did try using this on my work computer, but they have that locked down so you can’t get to the boot menu. I may try it again at some point just in case I picked the wrong option, but regardless, I have a couple more laptops at home that I can test it on in the mean time.

    This was a fun experiment and I have to say that the results were Linux running blazing fast, even over a USB port. My next option would be to run it over USB C and I imagine the OS would be even faster.

  • Yes, linux on a stick, otherwise know as a usb drive. I’m not talking about a live usb version of Linux. I am talking about actually install Linux on a usb drive. I was curious over the weekend, how cool would it be to install Linux on a usb drive and be able to use any computer to boot up and use my own same operating system each time with persistent data. Meaning that I can update, install and change whatever I want and be able to have the versatility of using whatever computer that may be around.

    I had read a couple of articles regarding this and decided to give it a try. I used Virtualbox to create a virtual machine. During the creation, I did not create the virtual hard drive portion. Under the USB section, I made sure to choose USB 3.0 and with the USB drive plugged in, I added it to that section. In the network section, I kept the network option to NAT and everything else I setup according to what I would normally do. Those don’t technically matter because when you boot up, the OS will use the system resources directly. One other thing that I had to select was to use EFI. With that option selected, you get the option to boot up with systemd and not grub. That did make a difference.

    I use Arch for this. One thing I found out is that you want to use the latest installer. I would say that no matter which Linux version you use, to use the latest installer to make sure you get the latest mirrors and such. I have tried this on one of the laptops at home and it worked beeeaauuttiifffuullyyyy! It was awesome. When I was done and shutdown the laptop, removed the USB drive and started the laptop up, it booted right into windblows again. So with this method, you have a portable OS that you can take anywhere and use on any computer.

    I did try using this on my work computer, but they have that locked down so you can’t get to the boot menu. I may try it again at some point just in case I picked the wrong option, but regardless, I have a couple more laptops at home that I can test it on in the mean time.

    This was a fun experiment and I have to say that the results were Linux running blazing fast, even over a USB port. My next option would be to run it over USB C and I imagine the OS would be even faster.

    @Madchatthew Great overview, thanks. I too have done something similar (although not for a few years), and it’s a great way to be completely secure in the sense that if you need to use a public computer, you simply restart it with the USB drive attached. I’m inclined to do this again, and would probably go for a USB stick like the below

    https://www.amazon.co.uk/SSK-External-Android-Business-Essential/dp/B0C36CXVP4

    The difference in read/write speed is significant

    68d70c4a-4254-4880-83b4-fe7a8b53d2d7-image.png

  • @Madchatthew Great overview, thanks. I too have done something similar (although not for a few years), and it’s a great way to be completely secure in the sense that if you need to use a public computer, you simply restart it with the USB drive attached. I’m inclined to do this again, and would probably go for a USB stick like the below

    https://www.amazon.co.uk/SSK-External-Android-Business-Essential/dp/B0C36CXVP4

    The difference in read/write speed is significant

    68d70c4a-4254-4880-83b4-fe7a8b53d2d7-image.png

    @phenomlab That is awesome! I just used a 32 G stick because that is all I had. A 256 MB one would be way better and probably all you would need. It would be kinda fun to go up to 1 TB, but I don’t think you would need that size for this application.

    I love how you can use either end. One for regular USB and the other for USB C. That is great and the price is actually pretty good. I looked at the 1 TB and the price wasn’t bad even for that size.

  • Madchatthewundefined Madchatthew marked this topic as a regular topic on
  • @phenomlab That is awesome! I just used a 32 G stick because that is all I had. A 256 MB one would be way better and probably all you would need. It would be kinda fun to go up to 1 TB, but I don’t think you would need that size for this application.

    I love how you can use either end. One for regular USB and the other for USB C. That is great and the price is actually pretty good. I looked at the 1 TB and the price wasn’t bad even for that size.

    @Madchatthew Yes, I am tempted, I must confess.

  • @Madchatthew Yes, I am tempted, I must confess.

    @phenomlab I say dooooo eeeeeetttttt becuase I probably will haha

  • I am totally geaking out right now. I am working from home today and tried this on another laptop we have and it is so very awesome! I did have to disable the boot security on this laptop, which I’m not too worried about. I can always re-enable it. I think I will be buying that USB you posted Phenomlab.

    I am currently typing this post from that drive and am setting up neovim for development following along a youtube video. Just because. I have been using neovim more lately and really am starting to like it. It is very powerful and a lot you can do with it from what I am seeing.

    Anyway, had to post this here because it is frickin awesome!

  • I am totally geaking out right now. I am working from home today and tried this on another laptop we have and it is so very awesome! I did have to disable the boot security on this laptop, which I’m not too worried about. I can always re-enable it. I think I will be buying that USB you posted Phenomlab.

    I am currently typing this post from that drive and am setting up neovim for development following along a youtube video. Just because. I have been using neovim more lately and really am starting to like it. It is very powerful and a lot you can do with it from what I am seeing.

    Anyway, had to post this here because it is frickin awesome!

    @Madchatthew said in Linux on a Stick:

    I think I will be buying that USB you posted Phenomlab.

    Let me know how you get on with it. I too am considering it

  • @Madchatthew said in Linux on a Stick:

    I think I will be buying that USB you posted Phenomlab.

    Let me know how you get on with it. I too am considering it

    @phenomlab I will do that. I am hoping to buy it within the next week or two.

  • So I purchased this the other day. I was able to install Linux on it last night. I ended up not having time to try it on one of the laptops yet though. So I will be doing that either tonight or tomorrow. I am excited to see how it performs with the USB-C connection.

  • So I purchased this the other day. I was able to install Linux on it last night. I ended up not having time to try it on one of the laptops yet though. So I will be doing that either tonight or tomorrow. I am excited to see how it performs with the USB-C connection.

    @Madchatthew Keep us posted!

  • Well, I have to say with the USB-C connection, you can’t even tell you are running off of a usb stick. It is ssoooo fast it is crazy. Everything functions and works as expected. It is awesome!

  • I was able to also install Steam and play a game. I also was able to install a game my daughter and I play and Minecraft. They all worked without a hitch. The only thing is that you can’t play Bedrock version on Linux. I wish MS would get their heads out of their arses and make it so you can. I only say that because my daughter like the Bedrock version and the laptop she uses will have to be switched over to Linux as well.

  • I was able to also install Steam and play a game. I also was able to install a game my daughter and I play and Minecraft. They all worked without a hitch. The only thing is that you can’t play Bedrock version on Linux. I wish MS would get their heads out of their arses and make it so you can. I only say that because my daughter like the Bedrock version and the laptop she uses will have to be switched over to Linux as well.

    @Madchatthew just revisiting this and was curious as to why you used virtual box rather than booting directly off a live CD then installing onto a connected USB?

  • @Madchatthew just revisiting this and was curious as to why you used virtual box rather than booting directly off a live CD then installing onto a connected USB?

    @phenomlab I could have done it that way too and I don’t know why I didn’t. It would have probably been easier. I found directions on the webs and just did it that way. There isn’t a specific reason. I guess doing it this way, I didn’t have to reboot my computer and could do other things while waiting for the install to complete.

    I have also not used it for several weeks on purpose, to see if reflector (I believe that is what it is called) will update the source list and update the OS without throwing an error.

  • @phenomlab I could have done it that way too and I don’t know why I didn’t. It would have probably been easier. I found directions on the webs and just did it that way. There isn’t a specific reason. I guess doing it this way, I didn’t have to reboot my computer and could do other things while waiting for the install to complete.

    I have also not used it for several weeks on purpose, to see if reflector (I believe that is what it is called) will update the source list and update the OS without throwing an error.

    @Madchatthew Thanks! Was more curiosity than anything else 🙂

  • @Madchatthew Thanks! Was more curiosity than anything else 🙂

    @phenomlab you are welcome, but I wish I would have thought of doing it that way instead. I think it would have been easier and faster to be honest.

  • @phenomlab you are welcome, but I wish I would have thought of doing it that way instead. I think it would have been easier and faster to be honest.

    @Madchatthew said in Linux on a Stick:

    I wish I would have thought of doing it that way instead. I think it would have been easier and faster to be honest.

    I’m old… Been there, done it 🙂

  • I purposely didn’t boot up to the USB drive for over a month. I booted up the USB Linux on a stick today and went to the console and did the update command for Arch and no issues whatsoever like in the past. I installed Reflector and it updated the source files for me automatically and I was just able to run the update with no issues. It was so awesome!!

    It just worked. So I recommend that if anyone installs and uses Arch whether for a server or desktop for their daily driver that you install Reflector in case you don’t update for awhile for whatever reason.

  • I purposely didn’t boot up to the USB drive for over a month. I booted up the USB Linux on a stick today and went to the console and did the update command for Arch and no issues whatsoever like in the past. I installed Reflector and it updated the source files for me automatically and I was just able to run the update with no issues. It was so awesome!!

    It just worked. So I recommend that if anyone installs and uses Arch whether for a server or desktop for their daily driver that you install Reflector in case you don’t update for awhile for whatever reason.

    @Madchatthew I guess I’m just not brave enough for Arch, but then again, I felt the same way about Manjaro before I got into it. Having said that, I’ve not used Manjaro for some years so perhaps it’s time to revisit.

  • @Madchatthew I guess I’m just not brave enough for Arch, but then again, I felt the same way about Manjaro before I got into it. Having said that, I’ve not used Manjaro for some years so perhaps it’s time to revisit.

    @phenomlab I tried Manjaro before. I believe I liked it overall. It is one of the ones that I was interested in, but for some reason there was something with it that I didn’t like. Unfortunately, my brain isn’t allowing me to remember what that was. Another thing that I did that I forgot to mention, was after doing the updates, I tested the three games that I installed on it. The one game that I play with my daughter, I just had to reinstall with the setup file and then it worked just fine afterwards and automatically picked up the settings and data that was already stored. For steam, I had to reboot the computer but once I did that, then Steam worked just fine. I installed Minecraft on it and that just worked as soon as I double clicked on it, before the reboot.

    I am still quite a newbie with Arch, but so far, I really like it and am actually quite surprised how so far things just seem to just work with it. Now that may be a different story when I go to install it on the desktop and go through these same processes, but my hope is that it will be the same experience.


Related Topics
  • To the Window to the Linux . . .

    Pinned Linux arch linux windows endoflife
    22
    19 Votes
    22 Posts
    2k Views
    @phenomlab said: @Madchatthew ouch. Sounds nasty. Did you get to the bottom of why it happened? I believe it is due to not everything getting upgraded because i wasn’t checking on the different packages I had installed from the AUR. Then when I ran yay it was like, hey would you like to update all of these things that you haven’t updated in months, perhaps years or ever for that matter and I was like yes please If you don’t have yay there are no notifications that you need more updates than what you realize. Chrome was staying updated because it would give me a notification, but there was the nvidia package that needed to be upgraded as well and I had never upgraded it. I didn’t realize it and should have. Then some of those packages use cmake and that needed to be updated as well. So using yay is beneficial to make sure you get all the updates you need.
  • Arch Linux | Reflector

    Linux arch linux pacman reflector updates
    4
    4 Votes
    4 Posts
    2k Views
    I have another update for reflector that I just figured out. You will want to edit the following file and add details to make sure that every time it updates the mirror list, it is grabbing them from your country and I grab 10 and sort them by rate. This will ensure that your mirrorlist isn’t getting populated with links from other countries which can slow down you downloads. sudo nano /etc/xdg/reflector/reflector.conf This is what the file looks like. # Reflector configuration file for the systemd service. # # Empty lines and lines beginning with "#" are ignored. All other lines should # contain valid reflector command-line arguments. The lines are parsed with # Python's shlex modules so standard shell syntax should work. All arguments are # collected into a single argument list. # # See "reflector --help" for details. # Recommended Options # Set the output path where the mirrorlist will be saved (--save). --save /etc/pacman.d/mirrorlist # Select the transfer protocol (--protocol). --protocol https # Select the country (--country). # Consult the list of available countries with "reflector --list-countries" and # select the countries nearest to you or the ones that you trust. For example: --country US # Use only the most recently synchronized mirrors (--latest). --latest 10 # Sort the mirrors by synchronization time (--sort). --sort rate Here are the different flag options that you can change or add to this file. I found this on google by searching arch linux reflector flags. Filtering Options (What to find) --country <CODE/Name>: Selects mirrors from specific countries (e.g., US, France,Germany). Use {Link: reflector --list-countries https://archlinux.org/mirrors/status/}, for a full list. --protocol <http|https>: Filters for HTTP or HTTPS mirrors. --age <hours>: Only includes mirrors synced within the last X hours (e.g., --age 12). --delay <hours>: Limits to mirrors with a reported sync delay of X hours or less (e.g., --delay 0.25 for 15 mins). --latest <N>: Limits results to the top N newest mirrors. Sorting Options (How to order) --sort rate: Sorts by download speed (requires testing, can be slow). --sort age: Sorts by most recently synced. --sort score: Sorts by overall score. --sort country: Sorts by country, useful with multiple countries. Output Options (Where to put it) --save <path>: Writes the filtered/sorted list to a file (e.g., /etc/pacman.d/mirrorlist). --verbose or -v: Shows detailed progress and mirror info.
  • Windows 10 End of Life

    General windows linux arch end of life
    10
    2 Votes
    10 Posts
    1k Views
    @phenomlab this looks very nice as well. It is nice that they keep the KDE Neon a rolling release so you will get those updated apps even though Ubuntu isn’t a rolling release. Is it a rolling distro? KDE neon is rolling for KDE software. The Ubuntu base OS is not, but certain packages will be updated as needed to support KDE software requiring newer library versions than what is provided by Ubuntu. Apps from the main repositories are not rolling either, and therefore can be up to two years old. Users are encouraged not to use them, and to instead get apps from Snap or Flatpak using KDE’s Discover app store. In neon, Discover is set up to only show apps from these sources, filtering out apps from the repositories.
  • Arch Server Progress

    Chitchat arch linux server web server
    52
    26 Votes
    52 Posts
    9k Views
    @phenomlab said in Arch Server Progress: PITA LOL yes for sure!!
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Environment Variables

    Solved Linux
    8
    1
    1 Votes
    8 Posts
    2k Views
    @madchatthew great you got this to work ! Thanks for the update.
  • Need help with ping in linux

    Locked Linux ping ubuntu
    16
    5 Votes
    16 Posts
    3k Views
    Note to everyone else here. This user was formally banned from metabullet.com for abusing the service, and as a result, has been banned here also. Quite why this person thought it was ok to come here under the guise of an account he’d previously used at metabullet.com and hope I wouldn’t notice is beyond me. If you abuse my services once, you won’t get to use them again - period. As a reminder, the policies surrounding this service, and it’s usage can be found here
  • 2 Votes
    28 Posts
    7k Views
    @phenomlab said in Advantages and disadvantages of changing to Ubuntu?: @jac Yeah, I wouldn’t just leap into it unless you have a valid reason (such as the laptop no longer working and needing to be reinstalled). Probably better the devil you know currently. Absolutely mate, and generally as discussed that is the only time I have changed over to Ubuntu once the laptop has got slower. For now I will carry on with Windows, purchase the VPN & BitDefender in later October / early November and then see how all that runs for a few more months .