Auto Mount Iso Image Via /etc/fstab
So, you have a cd image and want to mount automatically every time you start your linux? Here, I’ll show you how to do it.
- First step is, put your file at some place where you will not move it again. Why? Because you’ll have to adjust your
/etc/fstabentry if you move the file. For this tutorial, we will call it
- Then, create a folder where you want it mounted. Let’s call it
- Next step, open up
/etc/fstab. Issue this command on terminal:
sudo gedit /etc/fstab.
- Add this line to /etc/fstab:
/home/cd_images/some_cd.iso /home/m_images/mounted udf,iso9660 user,loop 0 0
- Save your file and restart your PC to see it in action.
Now, you have your cd image automatically mounted when your PC is started.