How to automatically mount at boot? [duplicate]












1
















This question already has an answer here:




  • Permanently mounting loop device

    1 answer




I have a file, called "some.img", created with fallocate, that has a filesystem on it. I can mount the img file using mount -o loop some.img /media/where, and I see the filesystem. When I reboot, however, the file is no longer mounted.



How do I automatically mount this at boot?



Update: SuSE Linux










share|improve this question















marked as duplicate by Kusalananda, Community 1 hour ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • 1





    binarytides.com/ubuntu-automatically-mount-partition-startup may be helpful if you are using Ubuntu or a derivative. Perhaps you could click on edit and tell us which *ix you use, by adding that to your original question?

    – K7AAY
    2 hours ago











  • Yeah, @Kusalananda, it solved my problem. But man was this answer hard to look for. I didn't really know that I needed to look for "loop device permanence" because my symptoms were that my mount (whatever it was I dunno) was disappearing after a reboot.

    – activedecay
    1 hour ago











  • @activedecay I search this site for "loop device permanently"... it was the 1st hit.

    – Kusalananda
    1 hour ago


















1
















This question already has an answer here:




  • Permanently mounting loop device

    1 answer




I have a file, called "some.img", created with fallocate, that has a filesystem on it. I can mount the img file using mount -o loop some.img /media/where, and I see the filesystem. When I reboot, however, the file is no longer mounted.



How do I automatically mount this at boot?



Update: SuSE Linux










share|improve this question















marked as duplicate by Kusalananda, Community 1 hour ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • 1





    binarytides.com/ubuntu-automatically-mount-partition-startup may be helpful if you are using Ubuntu or a derivative. Perhaps you could click on edit and tell us which *ix you use, by adding that to your original question?

    – K7AAY
    2 hours ago











  • Yeah, @Kusalananda, it solved my problem. But man was this answer hard to look for. I didn't really know that I needed to look for "loop device permanence" because my symptoms were that my mount (whatever it was I dunno) was disappearing after a reboot.

    – activedecay
    1 hour ago











  • @activedecay I search this site for "loop device permanently"... it was the 1st hit.

    – Kusalananda
    1 hour ago
















1












1








1









This question already has an answer here:




  • Permanently mounting loop device

    1 answer




I have a file, called "some.img", created with fallocate, that has a filesystem on it. I can mount the img file using mount -o loop some.img /media/where, and I see the filesystem. When I reboot, however, the file is no longer mounted.



How do I automatically mount this at boot?



Update: SuSE Linux










share|improve this question

















This question already has an answer here:




  • Permanently mounting loop device

    1 answer




I have a file, called "some.img", created with fallocate, that has a filesystem on it. I can mount the img file using mount -o loop some.img /media/where, and I see the filesystem. When I reboot, however, the file is no longer mounted.



How do I automatically mount this at boot?



Update: SuSE Linux





This question already has an answer here:




  • Permanently mounting loop device

    1 answer








linux mount loop-device






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago









Kusalananda

134k17255418




134k17255418










asked 2 hours ago









activedecayactivedecay

1428




1428




marked as duplicate by Kusalananda, Community 1 hour ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by Kusalananda, Community 1 hour ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1





    binarytides.com/ubuntu-automatically-mount-partition-startup may be helpful if you are using Ubuntu or a derivative. Perhaps you could click on edit and tell us which *ix you use, by adding that to your original question?

    – K7AAY
    2 hours ago











  • Yeah, @Kusalananda, it solved my problem. But man was this answer hard to look for. I didn't really know that I needed to look for "loop device permanence" because my symptoms were that my mount (whatever it was I dunno) was disappearing after a reboot.

    – activedecay
    1 hour ago











  • @activedecay I search this site for "loop device permanently"... it was the 1st hit.

    – Kusalananda
    1 hour ago
















  • 1





    binarytides.com/ubuntu-automatically-mount-partition-startup may be helpful if you are using Ubuntu or a derivative. Perhaps you could click on edit and tell us which *ix you use, by adding that to your original question?

    – K7AAY
    2 hours ago











  • Yeah, @Kusalananda, it solved my problem. But man was this answer hard to look for. I didn't really know that I needed to look for "loop device permanence" because my symptoms were that my mount (whatever it was I dunno) was disappearing after a reboot.

    – activedecay
    1 hour ago











  • @activedecay I search this site for "loop device permanently"... it was the 1st hit.

    – Kusalananda
    1 hour ago










1




1





binarytides.com/ubuntu-automatically-mount-partition-startup may be helpful if you are using Ubuntu or a derivative. Perhaps you could click on edit and tell us which *ix you use, by adding that to your original question?

– K7AAY
2 hours ago





binarytides.com/ubuntu-automatically-mount-partition-startup may be helpful if you are using Ubuntu or a derivative. Perhaps you could click on edit and tell us which *ix you use, by adding that to your original question?

– K7AAY
2 hours ago













Yeah, @Kusalananda, it solved my problem. But man was this answer hard to look for. I didn't really know that I needed to look for "loop device permanence" because my symptoms were that my mount (whatever it was I dunno) was disappearing after a reboot.

– activedecay
1 hour ago





Yeah, @Kusalananda, it solved my problem. But man was this answer hard to look for. I didn't really know that I needed to look for "loop device permanence" because my symptoms were that my mount (whatever it was I dunno) was disappearing after a reboot.

– activedecay
1 hour ago













@activedecay I search this site for "loop device permanently"... it was the 1st hit.

– Kusalananda
1 hour ago







@activedecay I search this site for "loop device permanently"... it was the 1st hit.

– Kusalananda
1 hour ago












1 Answer
1






active

oldest

votes


















1














Essentially, add the following to /etc/fstab:



/path/to/file       /path/to/mount       ext4       loop       0 0


As described in
https://superuser.com/questions/799162/permanent-loop-device






share|improve this answer










New contributor




Rusty Weber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Essentially, add the following to /etc/fstab:



    /path/to/file       /path/to/mount       ext4       loop       0 0


    As described in
    https://superuser.com/questions/799162/permanent-loop-device






    share|improve this answer










    New contributor




    Rusty Weber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      1














      Essentially, add the following to /etc/fstab:



      /path/to/file       /path/to/mount       ext4       loop       0 0


      As described in
      https://superuser.com/questions/799162/permanent-loop-device






      share|improve this answer










      New contributor




      Rusty Weber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        1












        1








        1







        Essentially, add the following to /etc/fstab:



        /path/to/file       /path/to/mount       ext4       loop       0 0


        As described in
        https://superuser.com/questions/799162/permanent-loop-device






        share|improve this answer










        New contributor




        Rusty Weber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        Essentially, add the following to /etc/fstab:



        /path/to/file       /path/to/mount       ext4       loop       0 0


        As described in
        https://superuser.com/questions/799162/permanent-loop-device







        share|improve this answer










        New contributor




        Rusty Weber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer








        edited 1 hour ago









        Kusalananda

        134k17255418




        134k17255418






        New contributor




        Rusty Weber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 2 hours ago









        Rusty WeberRusty Weber

        1262




        1262




        New contributor




        Rusty Weber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Rusty Weber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Rusty Weber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.















            Popular posts from this blog

            宮崎県

            濃尾地震

            6月16日