Ubuntu12.04 lts usage experience-mount other partitions at startup

Source: Internet
Author: User

1. Create a folder in the/Media Directory to associate the partitions you want to attach (equivalent to a virtual directory/mount point, linking/ ing to the drive letter you want to attach)

I want to mount four partitions, so I have created four mount points and the names can be retrieved as long as you identify which one corresponds to which partition you want to mount, I use the same partition name as win, which is easy to recognize :)

Terminal command lines:

 
CD/mediasudo mkdir download work1 work2 Software


After ls, we can see the mount point we created.

Command: ls

Output Information: Download Software work1 work2


2. Then open gparted (if it is not installed, run sudo apt-Get install gparted to install it), and run the tool for dynamic Partitioning in Ubuntu. Here we just check the drive letter.

Command: sudo gparted

(Or open gparted in Dash)

View the parameters of the partition you want to mount: The Block device name, such as "/dev/sda1". Change the device name based on your needs. There is also a file system, such as "NTFS" and "ext4 ".

3. Write information in fstab

Open a new terminal CTRL + ALT + T

Then enter the command:

 
Sudo gedit/etc/fstab

Add the information to the end of the opened fstab

Format:

Block device name, space, location to which you want to attach, file system, option, RW is read/write, followed by backup and check options, fill it with zero

 
/Dev/sda5/Media/download ntfs rw 0 0/dev/sda8/Media/software ntfs rw 0 0/dev/sda6/Media/work1 ntfs rw 0 0 0/dev/sda7 /Media/work2 ntfs rw 0 0

/Dev/is followed by your actual disk drive letter, corresponding to the mount point you created in the previous section of/Media

Add one by one based on your own situation. Each partition starts one line, and then saves it. Close the text editor.

4. Test it.

Command:

 
Sudo Mount-

Check whether the information is correct. If not, OK.

 

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.