- Code: Select all
dd if=/dev/dvd of=dvd.iso # for dvd
dd if=/dev/cdrom of=cd.iso # for cdrom
dd if=/dev/scd0 of=cd.iso # if cdrom is scsi
To make an ISO from files on your hard drive, create a directory which holds the files you want. Then use the mkisofs command.
- Code: Select all
mkisofs -o /tmp/cd.iso /tmp/directory/
This results in a file called cd.iso in folder /tmp which contains all the files and directories in /tmp/directory/.
Create a mount point for the ISO:
- Code: Select all
mkdir /mnt/iso
Now mount the ISO in the mount point with the following command:
- Code: Select all
mount myiso.iso /mnt/iso/ -t iso9660 -o ro,loop=/dev/loop0