How to transfer data
kcbass1
Posts: 9 Freshman Member
Hi All, I have a NAS326 with two 4TB hard drives as Raid 0. I want to transfer my files to two 8TB in a Raid 1 configuration. I formatted the 8TB as EXT4 and copied over a few files as a test. Soon as the put the 8TB in the NAS326 it reads that the 8TB aren't formatted and will not do anything until I again format the 8TB. But of course then all the data is gone. How do I transfer my data to the 8TB's without losing it? Thanks in advance. Casey
0
Accepted Solution
-
Oh right. The problem is that an internal disk is only accepted when it has a special formatting, but that formatting is not recognized on an external disk.And there might be another problem either. Some USB-Sata convertors do a sector size translation, rendering the partition table unusable when connected directly on Sata. Sigh.Assuming there is no problem with your USB-Sata convertor you should format the disk internally. Then connect it externally, and open an ssh shell (as root) to assemble&mount the disk manually.Find the device name of the disk:cat /proc/partitionsYou are searching for a device containing around 8 000 000 000 blocks of 1 kB each. Let's assume it's sdc.assemble the raid array:mdadm --assemble /dev/md4 /dev/sdc3 --runWhen the disk was not sdc, you'll have to change that in the command. Now it becomes tricky. Sometimes the firmware will dive in and mount the newly assembled array, sometimes it doesn't. Don't know what triggers it. So look in the webinterface if a new volume appeared.If not, mount it:mkdir /mnt/mountpointmount /dev/md4 /mnt/mountpointAgain, have a look in the webinterface. If the volume doesn't show up, you'll have to do the copying manually too:cd /mnt/mountpointdf .cp -a /i-data/sysvol/* .Notice the dots on the ends.If 'df .' doesn't show terabytes of free space, don't start copying. Something went wrong, and you're on a ramdisk now.0
All Replies
-
How was the 8TB disk connected during file transfer? An external Linux PC, or USB?
0 -
It was usb directly to the NAS.. I formatted it first internally. But when I hook it up to usb it reads not formatted. So i format it again via usb. Go through the copy procedure, the lights start flashing. When the lights stop, I check the usb drive and nothing is there!0
-
P.S. The format is EXT4.0
-
Oh right. The problem is that an internal disk is only accepted when it has a special formatting, but that formatting is not recognized on an external disk.And there might be another problem either. Some USB-Sata convertors do a sector size translation, rendering the partition table unusable when connected directly on Sata. Sigh.Assuming there is no problem with your USB-Sata convertor you should format the disk internally. Then connect it externally, and open an ssh shell (as root) to assemble&mount the disk manually.Find the device name of the disk:cat /proc/partitionsYou are searching for a device containing around 8 000 000 000 blocks of 1 kB each. Let's assume it's sdc.assemble the raid array:mdadm --assemble /dev/md4 /dev/sdc3 --runWhen the disk was not sdc, you'll have to change that in the command. Now it becomes tricky. Sometimes the firmware will dive in and mount the newly assembled array, sometimes it doesn't. Don't know what triggers it. So look in the webinterface if a new volume appeared.If not, mount it:mkdir /mnt/mountpointmount /dev/md4 /mnt/mountpointAgain, have a look in the webinterface. If the volume doesn't show up, you'll have to do the copying manually too:cd /mnt/mountpointdf .cp -a /i-data/sysvol/* .Notice the dots on the ends.If 'df .' doesn't show terabytes of free space, don't start copying. Something went wrong, and you're on a ramdisk now.0
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 144 Nebula Ideas
- 94 Nebula Status and Incidents
- 5.6K Security
- 237 USG FLEX H Series
- 267 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1.1K Wireless
- 40 Wireless Ideas
- 6.3K Consumer Product
- 247 Service & License
- 384 News and Release
- 83 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.2K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 83 About Community
- 71 Security Highlight