attaching filesystem
Access file systems by attaching them to a directory in the file system hierarchy.
Task 1:
In the system, mounted the iso image /root/examine.iso
to /mnt/iso
directory. And enable automatically mount (permanent mount) after restart system.
Solution:
mkdir -p ~/iso_files
echo "this is a test iso file" > ~/iso_files/testfile.txt
genisoimage -o /root/examine.iso ~/iso_files/
mkdir -p /mnt/iso
mount -o loop /root/examine.iso /mnt/iso #first mount manually
df -h # check if mounted or not
# add the line to the file to automatically mount after start
vim /etc/fstab
/root/examine.iso /mnt/iso iso9660 loop 0 0
df -h
Last updated
Was this helpful?