You are reading the article How To Create Iso Files In Linux updated in September 2023 on the website Dacvumuahe.com. We hope that the information we have shared is helpful to you. If you find the content interesting and meaningful, please share it with your friends and continue to follow and support us for the latest updates. Suggested October 2023 How To Create Iso Files In Linux
You probably know that an ISO file can be burned onto a CD/DVD or USB drive, but did you know that you can easily back up or archive your files and folders into an ISO file as well? With this ISO file you can then burn it onto a CD/DVD as a backup or simply mount it like an external drive and access the files from within.
If you want to back up the content of a disc or if you have a bunch of files and folders that you want to back up and archive, here is how you can create ISO files in Linux.
Via Archive ManagerIf you are using Ubuntu (or Gnome desktop), the Archive Manager application (file-roller) allows you to easily create an ISO file.
Via Command Linedd is a useful command that you can use to create ISO file. All you need to do is specify the source and destination, and it will do the necessary work of creating an ISO file.
The basic usage is as follow:
dd
if
=source
of
=destinationFor example, if your CD-ROM drive is mounted at “/dev/hdc,” and you want to back up the content of your disc to a “my-cd-backup.iso” file, you can use the following command:
dd
if
=/
dev/
hdcof
=/
home/
username/
my-cd-backup.isoThe “source” doesn’t have to be a CD-ROM drive. It can be a hard drive partition, an external drive or a file path, though it won’t work on a folder.
Note: there is much more to dd than described above, but we won’t go into the details here.
The basic usage is as follow:
mkisofs-o
destination-filenamesource
For example, use the following command to backup your Home folder:
mkisofs-o
chúng tôi/
home/
usernameYou can tell mkisofs to enable Rockridge extension by setting the -R option.
mkisofs-R
-o
chúng tôi/
home/
usernameThe Joliet extension is enabled by the -J flag.
mkisofs-J
-o
chúng tôi/
home/
usernameYou can also set a volume name (-V option) for the ISO file. (If you burn your ISO file to a CD, the volume name will be used as the CD’s name.)
mkisofs-V
"Home Folder Backup"
-o
chúng tôi/
home/
usernameYou can also exclude certain files to add to the ISO file with the “-m” option. It supports wildcard (*), so you can use it for something like the following
mkisofs-m
".*"
-o
destinationsource
to exclude all hidden files (filename with a “.” in front) from adding to the ISO file.
Check out all the options of mkisofs with the following command:
mkisofs--help
ConclusionWhile it may not be the best backup option, an ISO file can be rather useful in some instances. With the above instructions, you can now create ISO files with ease.
Damien
Damien Oh started writing tech articles since 2007 and has over 10 years of experience in the tech industry. He is proficient in Windows, Linux, Mac, Android and iOS, and worked as a part time WordPress Developer. He is currently the owner and Editor-in-Chief of Make Tech Easier.
Subscribe to our newsletter!
Our latest tutorials delivered straight to your inbox
Sign up for all newsletters.
By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.
You're reading How To Create Iso Files In Linux
Update the detailed information about How To Create Iso Files In Linux on the Dacvumuahe.com website. We hope the article's content will meet your needs, and we will regularly update the information to provide you with the fastest and most accurate information. Have a great day!