Linux (Debian 8) set up auto mount on boot

Source: Internet
Author: User

First of all, your virtual machine has to install the Debian system, and the ISO image package has been added (this tutorial is implemented throughout the virtual machine)

The first step is to log in with the root user (mine is directly logged in with the root user)

The second step is to create the directory you want to mount, such as the/mnt/cd0 folder
Mkdir/mnt/cd0
Mkdir/mnt/cd1
MKDIR/MNT/CD2 (because there are three sources)

Step three, configure Debian 8.0 to use local sources
Now to modify the Sources.list file to add this local ISO image to the source
Comment out the original CDROM image and add the source
Vi/etc/apt/sources.list
Add Deb file:///mnt/cd0 Jessie Contrib main
Add Deb file:///mnt/cd1 Jessie Contrib main
Add Deb file:///mnt/cd2 Jessie Contrib main

: Wq Save Exit

Fourth step, set up automatic mount Source! (Modify the Fstab file and restart the system)
Enter Vi/etc/fstab in terminal and add at the end:
/dev/sr0/mnt/cd0 udf,iso9660 user,loop 0 0
/DEV/SR1/MNT/CD1 udf,iso9660 user,loop 0 0
/DEV/SR2/MNT/CD2 udf,iso9660 user,loop 0 0

: Wq Save Exit

Then reboot reboot the system.

Finally, the Apt-get update updates the source list

(You can try mounting the mouse apt-get install gpm or mount Apt-get install vim)

Linux (Debian 8) set up auto mount on boot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.