Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 808  / 2 Years ago, tue, september 6, 2022, 4:53:49

Please take a look into my partition :)
I still don't know how to move the folder that mounted on old partition



this is the screenshot



I've to insert a new HDD to it, so the folder /media/samba_disk_1/data/lrn and its old data still there :)



Please help me, I'm sorry if my english is so bad t(^_^)


More From » filesystem

 Answers
4

First create a new directory to use as the mount point for the new harddrive.



mkdir /media/newhdd/



Use df -h to determine the name of the new HDD, for your setup it should be /dev/sdc1, but be sure before proceeding.



Mount the drive to the directory you just created: sudo mount /dev/sdc1 /media/newhdd



Then cp over the files:



cp -a /media/samba_disk_1/data/lrn /media/newdd



Don't copy and paste this because you may need to make small changes to the commands.


[#24693] Wednesday, September 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atchcommo

Total Points: 114
Total Questions: 130
Total Answers: 101

Location: Cook Islands
Member since Sat, Oct 16, 2021
3 Years ago
;