Remove an internal HDD of a NAS540 and install it on a external USB case
MarkusDesk
Posts: 31 Freshman Member
Hello, if I remove a basic volume HDD from a NAS540 and put it on a external USB enclosure and connect it to another NAS540, how can I mount it to copy the files?
0
All Replies
-
Find out which device node is used. Probably 'cat /proc/partitions' can tell you.Assuming the disk is sdd, you can mount it:mdadm --assemble /dev/md4 /dev/sdd3 --runmount /dev/md4 /path/to/mountpointWhen /dev/md4 is already in use (/proc/partitions or /proc/mdstat will tell you) choose a higher number.A warning: some (maybe most) USB to Sata converters do a logical sector size translation on disks >2TiB. If your enclosure is one of them, this will not work, as changing the sector size renders the partition table incompatible. You can see if this is the case with 'fdisk -l /dev/sdd'. It shows the logical sector size, which should be 512 bytes.On modern kernels it is possible to create a loopdevice with a deviating sector size:losetup --sector-size=512 --show -f /dev/sddnow you can treat /dev/loopXp3 as /dev/sdd3. But I doubt if either the kernel of the NAS5xx or the (busybox) implementation of losetup supports this.0
-
Mijzelf said:Find out which device node is used. Probably 'cat /proc/partitions' can tell you.Assuming the disk is sdd, you can mount it:mdadm --assemble /dev/md4 /dev/sdd3 --runmount /dev/md4 /path/to/mountpointWhen /dev/md4 is already in use (/proc/partitions or /proc/mdstat will tell you) choose a higher number.A warning: some (maybe most) USB to Sata converters do a logical sector size translation on disks >2TiB. If your enclosure is one of them, this will not work, as changing the sector size renders the partition table incompatible. You can see if this is the case with 'fdisk -l /dev/sdd'. It shows the logical sector size, which should be 512 bytes.On modern kernels it is possible to create a loopdevice with a deviating sector size:cookie clickerlosetup --sector-size=512 --show -f /dev/sddnow you can treat /dev/loopXp3 as /dev/sdd3. But I doubt if either the kernel of the NAS5xx or the (busybox) implementation of losetup supports this.0
-
Hello, thanks for replying.With the command cat /proc/partitions, I get:8 32 7814026583 sdc
8 33 7814025543 sdc1With the HDD connected on the USB enclosure and with the fdisk -l command, I get:Disk /dev/sdc: 7.3 TiB, 8001563221504 bytes, 15628053167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytesDevice Start End Sectors Size Type
/dev/sdc1 2048 15628053134 15628051087 7.3T Linux filesystemSo it seems to be 512 bytes, correct?Before I try the command mdadm, I want to make sure I don't mess with anything. After the mdadm and mount command, can I just umount it and remove the USB drive or do I need to issue another command?
0 -
@ybaumbach : 'cat /proc/partitions' shows you the disks, their partitions and sizes. If that is not enough to distinguish the USB disk, you could look at the difference without and with the disk plugged.@MarkusDesk : There is something wrong. If that disk contains a volume created in a NAS5xx, it should have 3 partitions, not just one.But yes, the sectorsize is correct. (Although I doubt the optimal I/O size is 512 bytes, but that won't affect the basic functioning)After umounting you can stop the array:mdadm --stop /dev/md4I don't think it actually matters, but it won't do any harm, and it look symmetric.2
-
Thanks for the answer
0
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 149 Nebula Ideas
- 96 Nebula Status and Incidents
- 5.7K Security
- 262 USG FLEX H Series
- 271 Security Ideas
- 1.4K Switch
- 74 Switch Ideas
- 1.1K Wireless
- 40 Wireless Ideas
- 6.4K Consumer Product
- 249 Service & License
- 387 News and Release
- 84 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.5K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 73 Security Highlight