Freelancer's Playground! New knowledges every now and then

10Oct/085

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.

  1. 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/fstab entry if you move the file. For this tutorial, we will call it /home/cd_images/some_cd.iso
  2. Then, create a folder where you want it mounted. Let's call it /home/m_images/mounted.
  3. Next step, open up /etc/fstab. Issue this command on terminal: sudo gedit /etc/fstab.
  4. Add this line to /etc/fstab:
    /home/cd_images/some_cd.iso  /home/m_images/mounted  udf,iso9660  user,loop  0  0
    
  5. 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.

  • http://rotyyu.blogspot.com/ rotyyu

    Biasanya saya pake sewaktu make repo dari ISO DVD yg disalin ke HDD, tapi itu dulu….

  • http://rotyyu.blogspot.com rotyyu

    Biasanya saya pake sewaktu make repo dari ISO DVD yg disalin ke HDD, tapi itu dulu….

  • merso

    If you want burn dvd to iso image file or create an iso image from dvd on mac,I share you below website:
    http://www.xihalife.com/blogs/entries/17715.htm

  • merso

    If you want burn dvd to iso image file or create an iso image from dvd on mac,I share you below website:
    http://www.xihalife.com/blogs/entries/17715.htm

  • http://www.chipmagician.com/ auto body lexington

    Thank you for this steps. It really helped me alot from this Cd image.