DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
There are numerous ways to install Debian. I usually put the netinst installer onto a CD-ROM, and boot the installer off the CD-ROM. Then at that point, it treats any attached USB drive just like any other drive. You can install onto a USB drive just like any internal drive.
Most people don't have a big stack of blank CDRs just lying around, so most people put the installer on a USB thumbstick. You can boot that USB thumbstick in order to install onto a different USB drive. In other words, the easiest way to do it is to have two USB drives. One that you put the netinst installer on, and the other which you install onto after booting up the installer.
There are also various other ways to install Debian onto a USB drive from your existing debian 8 system (such as debootstrap)
There are two versions. One is just the installer and the other is a live version. The live version runs just like the real thing except it can not save settings/updates etc and the installer is just for installing the operating system.
In either case if you want a regular debian installation you would need a second USB flash drive. You will need to be careful when formatting to select the second flash drive and not the hard drive. I suggest reading the documentation.
The live version runs just like the real thing except it can not save settings/updates etc and the installer is just for installing the operating system.[/url]
This is only true when you install the Live iso directly on the USB stick or external USB drive.
You can also install Debian as "persistent", so the settings are saved. I did not check the updates option yet.
This is how I did it: made my own live USB stick with persistent settings.
Quote:
It is now configured in such a way that when my boot disk would fail... the live usb has all the settings to make it a replacement.
After rebooting I can continue immediately. Later I can put back my image or do other things to repair the system.
Most people don't have a big stack of blank CDRs just lying around, so most people put the installer on a USB thumbstick. You can boot that USB thumbstick in order to install onto a different USB drive. In other words, the easiest way to do it is to have two USB drives. One that you put the netinst installer on, and the other which you install onto after booting up the installer
Thankfully I do have 2 usb thumbsticks.
So how do I install the netinst installer onto a usb?
Quote:
There are also various other ways to install Debian onto a USB drive from your existing debian 8 system (such as debootstrap)
I have looked up debootstrap on the debian wiki.
It's a very convenient way of installing a new debian system onto a new partition.
This is of course if you have an existing debian system like me.
However, the method is a little complicated and the wiki doesn't say if the debootstrap method will install to usb (i.e. removable device rather than a hdd partition).
So for the moment I'll use the '2 usb' method.
However in the future, I can't see why the debootstrap method isn't used to install all new debian systems.
It doesn't need cd or usb!
if you want a regular debian installation you would need a second USB flash drive. You will need to be careful when formatting to select the second flash drive and not the hard drive. I suggest reading the documentation.
This is how I did it: made my own live USB stick with persistent settings.
Debian Live can be used to install 'A full install of Debian to the computer's hard drive can be initiated from the live image environment''
Also, debian live can be used for 'data recovery, computer forensics, disk imaging, system recovery and malware removal'
In which case, I think it's better to install Debian Live with persistence onto usb.
So this means I won't need to install debian-installer onto usb.
Is this right?
If you want a reasonable complete, but limited in size, fully on a USB workind Debian.... then you can try my advice.
For the first time do exactly what is in the link using Debian 7 Live iso (i think so out of my mind).
This should work... it worked at my places too. So.. if it does not work find out why it does not and fix that...
Then take a new usb stick as they are cheap.....
Make a live USB again but now with Debian 9.
If it does not work... try to compare it with the working Debian 7 live usb...
Have fun in making it.
PS: my live usb contains all the safety measures here... else I would have uploaded by version to test.
I also use it on other systems when i have a problem, easy to do when you comment the hard disks out with a "#" on fstab (without the ""). If you do not comment them out... the desktop will not start you will come in some rescue mode, not the normal desktop.
I would do a traditional install rather than Debian Live, unless there is a specific reason you prefer Debian Live over normal Debian. I use normal Debian installs on USB sticks. A fast USB3.0 thumbdrive is even a great cheap alternative to an SSD for computers that have a USB3.x port.
For better or worse, Debian Live is not as well supported as normal Debian, and it never will be.
Note that this will blow away the current contents of the target thumbdrive. Basically:
Code:
su
fdisk -l
dd if=debian-9.2.1-amd64-netinst.iso of=/dev/sdZ
Replace "sdZ" with the device of your thumbdrive - probably sdb. You use the command "fdisk -l" to list the currently attached drives. This will let you know for sure where the output of "dd" should go.
This will prepare your netinst install drive. Note that the image iso is purposefully designed to be bootable whether it is burned to a CDR or it is written onto a USB thumbdrive.
Make a live USB again but now with Debian 9.
If it does not work... try to compare it with the working Debian 7 live usb...
This is the setup I was looking for.
A debian Live usb and a Debian 9 usb.
However, a Debian 9 usb seems to function the same as debian Live.
In which case, I'm gonna go for a debian 9 install onto usb.
The main difference seems to be that debian live exists in RAM and has fewer 'write cycles'.
But the full-fat debian 9 on usb can do an 'apt-get upgrade' and also should be more stable.
No, "hybrid" iso means the netinst installer iso can be used on either CDR or USB drive. The normal official Debian installer is completely separate from Debian Live.
A live iso is a complete Debian, similar to the one you can download as CD or DVD.
You can use any suitable tool to make it work on a usb stick.
Like https://unetbootin.github.io/
When you do that just like that, it is only a basic live Debian usb, so NOT persistent.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.