• February 27, 2025, 02:18:03 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: script to copy mounted usb disk file to nas  (Read 3543 times)

stanchiam

  • Level 1 Member
  • *
  • Posts: 20
script to copy mounted usb disk file to nas
« on: August 14, 2010, 04:36:27 AM »

Hi,

Can someone help me?

I have successfully mounted it using mount -t ext3 /dev/$drive /mnt/HD_a2/dns323_1/USB/$drive
so now it appear in my dns323_1/USB/sdb1 folder
How can I transfer the entire content to my other folder in the nas hardisk?

I want to copy mounted usb external disk files to the nas folder without turning on my pc
maybe using a script or some job when i reboot the nas

Logged

stanchiam

  • Level 1 Member
  • *
  • Posts: 20
Re: script to copy mounted usb disk file to nas
« Reply #1 on: August 14, 2010, 08:07:15 AM »

i found the answer

Logged

jamieburchell

  • Level 6 Member
  • *
  • Posts: 947
Re: script to copy mounted usb disk file to nas
« Reply #2 on: August 14, 2010, 02:49:28 PM »

You figured out how to mount the drive and the partition structure of the NAS but you couldn't use "cp"? :)
Logged
If your little 323 is not working right,
You've racked your brains and been up all night
Take a deep breath and wipe away the sweat,
Login as web admin and try a factory reset!

irotjaf

  • Level 2 Member
  • **
  • Posts: 51
Re: script to copy mounted usb disk file to nas
« Reply #3 on: August 14, 2010, 11:15:14 PM »

How did you mount the external HDD?

I could barely try something with my flash stick. People say around their whole external HDD have been compromised by trying that (with ntfs filesystem).
Logged

stanchiam

  • Level 1 Member
  • *
  • Posts: 20
Re: script to copy mounted usb disk file to nas
« Reply #4 on: August 15, 2010, 12:55:51 AM »

How did you mount the external HDD?

I could barely try something with my flash stick. People say around their whole external HDD have been compromised by trying that (with ntfs filesystem).

http://forum.dsmg600.info/p12953-2008-04-03-18:04:49.html
Logged