I am using Ubuntu Server 14.04 LTS. I need to make an .ISO image from it. The trouble is that all tools i have come across use GUI. Ubuntu Server on the other hand does not come with GUI.

Are there ways of creating an ISO image from an already installed Ubuntu OS on command line?


It should be super easy using dd...

sudo dd if=/dev/mydrive of=image.iso

You could also clone one drive to another like this:

sudo dd if=/dev/mydrive of=/dev/myothersd

Just be careful. "if" is the input file and "of" the output file. Messing up these values could nuke your system. Make sure you know what drive is what using:

sudo fdisk -l

when you figure out what drive you want to use your command will look something like this (to clone the entire drive):

sudo dd if=/dev/sda of=mydrive.iso

DO NOT just copy and paste the above command or any dd command. When using dd ALWAYS confirm correct drive paths!

An example of cloning a partition, looks like this:

sudo dd if=/dev/sda1 of=mydrive.iso

For more information, check out the manpage

man dd

Note: When using dd, it gives you no progress or output while it's doing its thang. It will take a while and show no progress, don't worry, just wait.

  • Thank you It did not work I was able to work image iso But did not work at installation – Mohammed Safaa Al Zobie Sep 22 '18 at 20:32
  • It creates files on the USB disk, but when I try to boot the USB disk it shows an Operating System Not Found error. – Mohammed Safaa Al Zobie Sep 22 '18 at 21:20
  • USB drives are set up differently and have a different boot sector, so you can't just clone your drive to a usb drive and expect it to work. USB drives need to be created specially in order to boot\ – Joshua Besneatte Sep 23 '18 at 0:07
  • all you asked in your question was how to make an ISO of your drive – Joshua Besneatte Sep 23 '18 at 0:08
  • I'm extracting iso to /home Then after I install ubuntu-desktop To get to iso Am I wrong about that? – Mohammed Safaa Al Zobie Sep 23 '18 at 14:50

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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