V
V
Valera Udav2016-09-01 14:32:46
Hard disks
Valera Udav, 2016-09-01 14:32:46

How to properly connect a second HDD on Ubuntu?

The situation is as follows. There are two drives: SSD (system) and HDD (file dump). Previously, there was Win10, during the installation, Ubuntu pulled out its HDD so that just in case not to steal its files, the SSD was completely divided into new partitions and formatted under the new system. Now, having inserted your HDD into the system, it is detected normally, it sees all the files.
The problem arose when I decided to rebind the system folders Download, Video, Music, etc. to my HDD, every time I reboot the system returns the settings with the paths to the default state. I also had a problem with Mail Cloud, which constantly loses the path to my local storage on the HDD after a reboot.
On reflection, I suggested that the problem is that the system sees the hard drive as some kind of external drive and mounts it again after each reboot. Is there any adequate way to connect my HDD to the system without losing data on it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
vaut, 2016-09-01
@TARAKANhoy

1) Write in /etc/fstab the desired mount point of the second disk.
2) a) create symlinks to the required directories $ ln -s /media/3tb-vol1/Music/music Музыка
b) in /etc/fstab add folder mounting rules to the appropriate places.

/media/3tb-vol1/Music/ /home/name/Музыка       none    bind

N
Nazar Mokrinsky, 2016-09-01
@nazarpc

What does "rebind" mean? Normal symlinks are enough.
And it is better to add the HDD to /etc/fstab so that it is mounted at system startup.

D
Dmitry, 2016-09-01
@plin2s

It seems to me that the problem may be that your disk was left with the NTFS file system, so it was not added to fstb, but is defined as external and mounted on the fly after the system boots. The ideal option would be to reformat it to the native FS link. But you can also try adding the desired section to fstab, as vaut already advised you in the first paragraph.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question