Mkisofs -V "Home Folder Backup" -o myHomeBackup.iso / home / usernameĪlso you can prevent another file from being added to the ISO file with the "-m" option. So, for a typical Linux system, the command you would use to mount a CD-ROM would be: mount -t iso9660 -o ro /dev/cdrom /mnt/cdrom Remember that only the root superuser can run this version of the mount command, so you need to log in as root to do this. In addition, you can set the Volume name (-V option) for the ISO file (in case if you burn the ISO file to a CD, the volume name will be used as the CD's name). mkisofs will create any directories required such that the graft points exist on the cdrom image - the directories do not need to appear in one of the paths. The convention under Linux is to use either /mnt/cdrom or /cdrom. ![]() Mkisofs -R -o myHomeBackup.iso / home / username You can request mkisofs to activate the Rockridge extension by setting the -R option: Mkisofs -o myHomeBackup.iso / home / username The highlight of the mkisofs command is to give you lots of options to customize the ISO file created to your liking.įor example, use the command below to back up your Home folder: It can be a hard drive partition, or a portable hard drive or file path, although it does not work on a directory.Īlternatively you can use the mkisofs command to create an ISO file. Use the following command:ĭd if = / dev / hdc of = / home / username / my-cd-backup.iso All you need to do is identify the source and destination, and take steps to create an ISO file.įor example, if your CD-ROM drive is mounted at '/ dev / hdc,' and you want to back up the contents of the drive into a file 'my-cd-backup.iso', then you can use it. ![]() ![]() ![]() Dd is one of the useful commands that you can use to create an ISO file.
0 Comments
Leave a Reply. |