I want to make a .iso image of a bootable OS DVD, to use in VirutalBox.
Nautilus can make a .iso, but only of data files, it seems.
The .iso it created was not bootable.
What is available to make a bootable .iso from a bootable DVD?
You can use Brasero to copy a CD to an .iso. It can be installed by sudo apt install brasero
.
Select the option to copy a CD, select the CD drive as the source, and an image file as the target...
Or from inside Nautilus: go to "Computer", right-click on the CD drive, and select "Copy Disc...". (Or something like that, I'm using a local language system here.)
.iso
. It was .toc
for me. Click to Properties and select ISO9660 in the drop-down list on the bottom of the new dialog.
Jan 15, 2015 at 18:06
First up, you can give VMs access to the host's DVD drive in VBox, this is done where you would normally add an ISO as a drive.
If this doesn't suit you, try ISO Master
, available through apt/synaptic. It has some nice advanced features for ripping the boot sector out of existing DVD/CDs and adding that boot sector image to an ISO.
That said, ripping an image of the ISO with ISO Master should take the boot sector intact, and you won't need to transfer it manually.
brasero
from the Sound & Video
menu. Click on the "Disc Copy" option and select "Image File" as your destination.
A bit late to the party, but since the accepted Answer's Brasero is no longer installed by default (or not under that name), the next best thing with vanilla ubuntu is the "Disks" utility. [just as a general hot it looks]
In there, select the DVD/CD you want, click the 3 dots in the title bar (next to the minimize window button) and select "create disk image" from the dropdown that appears.
I don't have the exact syntax handy, but the dd
command can copy the contents of the DVD bit for bit, and the resulting .iso
file should be bootable for a VM. Haven't tried this in this direction, though I have used dd
to copy an ISO to a USB stick with success. I normally keep the .iso files I download so I can recreate a USB stick or CD/DVD when needed.
sudo dd if=/dev/sr0 of=image.iso bs=4M
be added? I haven't edited, as I don't know what you'd recommend, nor how much explanation you'd want included. Readers may need to get their DVD drive's device name (usually it's /dev/sr0
), understand the block size (setting bs=
usually makes it faster, but I'm unsure of the best value), and how to make the file not owned by root (chmod
it afterwards, or make it as their user first with touch
). Or maybe it's better to keep it simple and short, like a command and one-sentence explanation.
Mar 25, 2018 at 6:56
/dev/cdroom
did not work, but /dev/sr0
works for me. Your comment is very helpful for a someone who is not familiar with the mounting on Ubuntu like me.
dd
from memory. Too easy to hose something...
May 22, 2018 at 11:32
Here is how to do this with default tools from the command line:
mount
in the terminal to see the designation of the DVD drive. Most often this is /dev/sr0.sudo dd if=/dev/sr0 of=filename.iso bs=2048
to copy the DVD to filename.iso.If you get errors when copying with dd you can try ddrescue.