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.