Hi,
I was looking for this (for a BASH script I wanted to write), and I found out how to do it. Now I want to share it
1. Create ISO-file from folder
Code:
mkisofs -r -o /isofile.iso /folder
where /isofile.iso is the relative or absolute path to the iso-file you want to create and /folder the absolute or relative path to the folder you want to backup.
2. Create ISO-file from file(s)
Code:
mkisofs -r -o /isofile.iso /mybigfile
or if you want to backup multipi files (like you .mp3 collection):
Code:
mkisofs -r -o /isofile.iso *.mp3
3. Create ISO-file from a cd/dvd-drive
Code:
dd if=/dev/cdrom0 of=isofile.iso
where /dev/cdrom0 is your cd/dvd-drive and isofile.iso your iso-file you want to create.
Note: An absolute path is like '/home/yn/myfile.iso', a relative path is like 'myfile.iso'
Bookmarks