0

A person has a computer with no HDD but 8GB RAM and USB3 port.

Also has 8GB USB3 pendrive with Ubuntu Live on it (non-persistent).

The computer is then started with the pendrive, with the toram option. " toram" is typed after pressing F6 or tab at startup. may need to press tab first.

Is the O/S that is running in RAM able to do a Persistent install to the original pendrive using the program mkusb so that there are persistent partitions

I am pretty sure this is not a Duplicate of: Can Ubuntu be installed to the pendrive it was booted from?

Edit: Note to remove and reinsert pendrive removed as it is unnecessary.

16
  • 1
    no because the iso file is still missing, which is used to create the pendrive
    – d1bro
    Dec 1 '16 at 11:15
  • @db but if you have enough RAM, you can always download a fresh ISO
    – muru
    Dec 1 '16 at 11:17
  • Hint: Both the iso file and mkusb need to be downloaded. Forgot to mention the guy has fiber optics. Dec 1 '16 at 11:18
  • Better way is, if you have a second pen-drive to install it to this instead. You can do so extremely precise with debootstrap. You can check my answer i have given here for details
    – Videonauth
    Dec 1 '16 at 11:19
  • 1
    mkusb is mentioned in this discussion. It can probably do the job, but it would be better to use it in the first place. When converting from Windows, there must be a two step procedure, and this question is relevant. Would an answer be welcome here, if it works? By the way, earlier today I made a drive by installing into a drive with a persistent live system (that it booted from), and the result was a USB pendrive with a persistent live system alongside an installed system (in this case with Lubuntu), ubuntuforums.org/…
    – sudodus
    Dec 1 '16 at 15:29
4

Use Ubuntu Running in RAM to make a Persistent Install

Yes you can use Ubuntu running in RAM to make a Persistent install to the USB drive it was booted from, with or without a hard drive and only one USB stick.

Boot the USB drive using the toram option, that is at boot, press shift if it is a SDC install, if It is a UNetbootin install press tab at the boot menu.

Type " toram", (that is space toram) after the three dashes in the boot script.

After Ubuntu boots, download mkusb ( https://help.ubuntu.com/community/mkusb ) and the Ubuntu iso of your choice.

I prefer going to GParted or Disks to unmount the usb drive partition so I can see what is happening. Unmount it using your preference.

Start mkusb, select 'Install...' select 'Persistent live...' and point it at the downloaded iso, select persistent and select the USB drive to be installed to.

At persistent live drive settings, Select 'Use defaults' and then select percentage of space for persistence. Allow mkusb to complete the install.

Not too hard and hopefully useful for someone without a hard drive and only one flash drive and a good internet connection. Method also works if there is an internal hard drive.

5
  • I'm glad you worked it out :-)
    – sudodus
    Dec 1 '16 at 18:13
  • 1
    When I do the corresponding task, I do not unplug and re-plug the pendrive. It works without those extra operations, which means that you can move a hard disk drive to another computer, install a live system into it, move it back, boot to RAM, and if you wish install 'a conventional installed system' without any DVD disk, USB pendrive or memory card. This might be useful with very old computers. (But if you make a mistake there is a long journey back to where you were, because you must make a new live system in the drive - so you had better use a check-list.)
    – sudodus
    Dec 1 '16 at 18:27
  • @Sudodus, Reference to remove pendrive removed, thank you. Dec 2 '16 at 5:35
  • 1
    When installing into another drive - and if the running Ubuntu version and flavour is your choice, you can use the image in partition #4 as the source file, /dev/sdx4. (You need toram for it to work.)
    – sudodus
    Dec 3 '16 at 12:56
  • That is handy, stands to reason as the cloned iso makes it like installing from a multi-iso booter. Dec 4 '16 at 1:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.