I have a 128GB Sandisc USB3.0. I put the Fedora 40 Workstation ISO onto it and used Etcher to make it bootable. However, when I go to boot, the only recognized storage size of the USB is 2.1GB. Why?
When you write a live image to usb the size is set to the size of the image.
You can use fedora media writer to restore the usb stick to it original size after you no longer need the live image.
Can I install Fedora onto another USB so I can have the storage size on that?
My SSD currently has win11 on it and all my personal files so I would prefer not to format that.
My suggestion:
- use a small USB flash drive (4 to 8G) and write the image to that device.
- restore the SSD device as noted by Barry above.
- boot from the usb flash drive and you can install to the SSD if that is what you desire to do.
You could alternatively use fdisk when booted into the live install media (instead of step 2) and wipe out the existing iso image by creating an empty partition table on that device then perform the installation. I would suggest that creating an empty gpt partition table would be most versatile.
Here’s the thing. I just want to be able to plug it in, boot from it and go. I want a live USB with all the storage so I can transport it like a mini PC (almost).
Is this possible.
(BTW I’m very new to linux so I do not know any commands or things like that but I do have tech knowledge)
What you are asking for is a LiveUSB with persistence.
There are tools like Rufus that can help you with that. Fedora Media Writer is not suited for that use case.
Yes it is possible.
- Write live-image to a USB stick.
- Boot that live-image
- Insert another USB stick or better an external SSD
- Use the live installer to install on the external SSD
I do this all the time to have exactly what you describer an external Fedora system with read-write and persistent storage.
This is exactly what I said above.
Once installed the ssd becomes a portable OS drive that would work on many systems.
@barryascott and @computersavvy, would such an installation not require pre-installation of myriad drivers? As an example, if I were to create such a portable installation on hardware with an AMD design-based GPU, but transferred the storage to a computer with an NVIDIA design-based GPU, would the compositor render?
Additionally, @itsjj, I want to note the caveat that such installation would be bound to the specific instruction set that it was originally installed on (at the least, by default). Generally, this is x86-64. Similarly to before, @barryascott and @computersavvy, would one be able to install all architectures of all packages simultaneously? I doubt so…
Lastly, and more importantly, I believe that this would be [U]EFI-specific.
At least with the x86_64 hardware I have the USB Fedora boots and runs fine.
But I agree in that you would want to set the dracut all-hardware-drivers options.
Yes. Since the hardware in different computers is different it would require drivers for each different such system to be included in the initramfs image. This can be done using the dracut command with the --no-hostonly option which will produce a much larger initramfs image but contains all the available drivers so the image should work on almost any system.
The amd driver is included in fedora by default, but if the machine might contain an nvidia gpu the nvidia drivers should be installed for support.
No
The installation would be architecture specific. An x86_64 arch installation should work on almost any x86_64 machine, but not on Arm or any other architecture.
See man dracut to see all the options and learn how the installation can be customized for the desired use.