I want to install Debian directly onto my USB drive. Is there an easy way to do this directly without having to reboot to run the installer?

2 points

Buy an external ssd or an internal one with an enclosure.

permalink
report
reply
1 point

Don’t do that

You can but it will be very slow and your drive will die quickly. Alternatively you could make a USB drive with MX Linux and then only save what you need.

permalink
report
reply
1 point

If the system you have has enough RAM you could load the entire OS to RAM and then change the writeback settings to a high interval

permalink
report
parent
reply
0 points

Still going to bottleneck and then eventually die

permalink
report
parent
reply
1 point

dunno, the system might ran out of RAM due to lack of swap, but the drive should be fine due to the limited writes

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
reply
0 points

Yes. Just partition the drive manually, install packages with debootstrap, bind-mount /proc, /sys and /dev, chroot into it and install a bootloader. If you don’t understand what I say, you have to run an installer, possibly in a VM.

permalink
report
reply
3 points

directly onto my USB

directly without having to reboot to run the installer?

You use “directly” three times. Remove all instances of the word from your post and reread it. Does the post make sense to you still? Does it have the same meaning?

I am not trying to be a dick, I want to make sure the word does not have a meaning I am not aware of in this context or if Linux is installable to a USB drive ‘indirectly’ but that does not make sense to me.

Can you rephrase what you are trying to do?

permalink
report
reply
2 points

I want to install Debian on the USB drive from my currently running OS, Manjaro Linux.

I don’t want to have to boot from Debian installation media to install it on the USB drive.

permalink
report
parent
reply
1 point

I am using Manjaro as well.

Are there Debian apps that you want to run but are unable to because Manjaro is Arch-based? I have read that it is not recommended to install programs compiled for Debian, that it is difficult to run them. Using a virtual machine is the recommended way to use them. Asking just in case but I do not think this is what you want.

Computers can only run one operating system at a time, unless you use virtual machines and hypervisors. Most operating systems are launched after the system uses a bootloader to get the system ready for the operating system. This is usually done by the BIOS/UEFI/firmware starting a bootloader, which then launches the operating system.

If you want a USB that you can plug into a machine that is already running, that has an active operating system like Manjaro or Windows or whatever, then have it start running Debian, like you would an Appimage or a Windows .exe program saved to a USB, that is not possible except maybe with a virtual machine program like Virtual Box or Qemu.

USB drives were not intended to be used as drives that run operating systems. It can be done, but it is not simple and can cause a lot of errors.

What do you need the USB for? If you can explain what you are trying to achieve with more detail, there might be ways to do it differently.

permalink
report
parent
reply
1 point

You could use the Debian cloud image. Just download the “no cloud” option and then grow the partitions

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 8K

    Monthly active users

  • 3.7K

    Posts

  • 48K

    Comments