DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-07-06 22:42:40

Marijom
Member
From: Sweden
Registered: 2007-07-06
Posts: 54

Noobie needs help moving directory structure from Volume_1 to Volume_2

I’ve got a directory with 300GB data I want to move from Volume_1 to a newly installed Volume_2, is it possible to order the DNS-323 to move the directory structure using Telnet instead of copy everything back and forth over the network.

Offline

 

#2 2007-07-06 22:55:30

Aaron
Member
Registered: 2007-02-09
Posts: 53

Re: Noobie needs help moving directory structure from Volume_1 to Volume_2

Actually you may be able to use the scheduler to do a backup from Volume_1 to Volume_2 but ill have to confirm that. Go to the main login page and use the "Schedule" button and try to do a local backup from Volume_1 main directory to Volume_2 and see if it works.

-Aaron

Offline

 

#3 2007-07-06 23:33:28

Marijom
Member
From: Sweden
Registered: 2007-07-06
Posts: 54

Re: Noobie needs help moving directory structure from Volume_1 to Volume_2

I searched a little about shell commands and found out that move was called mv and are now testing 
mv "/mnt/HD_a2/Downloaded" "/mnt/HD_b2/Downloaded"
unfortunately all files ends under  "/mnt/HD_b2/Downloaded/Downloaded"
I’ve tested mv "/mnt/HD_a2/Downloaded" "/mnt/HD_b2"
But I gets the response
mv: cannot remove `/mnt/HD_b2/Downloaded': Is a directory

Last edited by Marijom (2007-07-06 23:34:47)

Offline

 

#4 2007-07-07 18:53:13

transstilben
Member
From: Germany
Registered: 2007-06-15
Posts: 45
Website

Re: Noobie needs help moving directory structure from Volume_1 to Volume_2

try  "cp -r /mnt/HD_a2/Downloaded /mnt/HD_b2"

cp mean copy. "rm" or "rmdir" are the commands for remove after sucessfull copy.
Check sucessfull copy before removing.


DNS-323 FW1.03, 500GB-Samsung HD, 4-port USB-Hub, Clients: Vista Home Basic 64 bit, XP-Professional

Offline

 

#5 2007-07-15 09:43:43

veryevilmike
New member
Registered: 2007-07-15
Posts: 1

Re: Noobie needs help moving directory structure from Volume_1 to Volume_2

I had a similar problem, with the /Downloads directory on one drive appearing in /Downloads/Downloads on the second drive.

Trick was to rename the second drive to something else, then move it to the desired spot using mv -f command.

In steps:

1.  Rename the directory to something else.  I used windows expolorer to rename /Downloads/Downloads to /Down/Downloads

2. Move the differently named directory to the desired location.

mv - f /mnt/HD_b2/Down/Downloads /mnt/HD_b2/Downloads

note that i'm moving things on the second drive HD_b2

This worked instantly, rather than having to copy it all over again.  I don't understand linux all that well but this seemed to circumvent the confusion caused by having the same directory names everywhere.

Offline

 

#6 2007-07-15 14:51:57

frodo
Member
From: Stockholm, Sweden
Registered: 2007-01-17
Posts: 259

Re: Noobie needs help moving directory structure from Volume_1 to Volume_2

Skip -f as this means force. The rest is fine and is what you need todo.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB