0

For example, now I have two directories /home/anton/test1 and /home/anton/test2 with files in them, they are stored on the main SSD.

I'd like to use another HDD's partition (data partition on /dev/sda1 disk) for these directories. What is the right way to achieve this?

disks

27cm
  • 29

1 Answers1

-1

So now that you have a directory at /media/anton/data, you can move (mv) the two directories from /home - as in
mv /home/anton/test1 /media/anton/data
and mv /home/anton/test2 /media/data

By the way, having set this new hard drive at /media/anton/data (I am assuming anton is probably the ID you use for your system), you need to be sure you never name a thumb drive or other external hard drive "data" because the ubuntu method for on-the-fly mounting such USB devices is to put then in /media/[your ID].

quill
  • 1,015