ISO – Mount/Unmount
Objective:
1. Mount the ISO to CD/DVD, then mount it to file system.
2. Create an ISO from the CD/DVD, then mount to file system.
3. Created ISO will be mounted, and will be mounted as an file system.
Environment: CentOS release 6.3 (32-bit).
Implementations:
– Mounted my ISO image to CD/DVD, then copy files.
# mount -r -t iso9660 /dev/sr0 /mnt
# cd /mnt
# du -sh .
3.5G CentOS_6.3/
–Created an ISO image from the CD/DVD image.
WARNING: Check the free disk space before using below.
# dd if=/dev/sr0 of=/root/centos6.3.iso
# ls -l /root/centos6.3.iso
-rw-r–r– 1 root root 3713204224 Jun 17 10:04 centos6.3.iso
–Local ISO image created on the system can be mounted to CD/DVD.
#mount -o loop -t iso9660 centos6.3.iso /mnt/isoimage/
tux:/mnt/isoimage]# du -sh .
3.5G .
tux:/mnt/isoimage]#
Since my colleagues faced difficulty in creating the local/remote repositories, I thought I should write this, as it plays very crucial role in creation.
I would post up How to create local/remote Redhat/CentOS repository in coming days.
Recent Comments