General NAS-Central Forums

Welcome to the NAS community
It is currently Fri Feb 23, 2018 12:42 am

All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Thu Feb 01, 2018 9:15 pm 
Offline

Joined: Fri Dec 29, 2017 3:02 pm
Posts: 10
Hello,

this seems very, VERY promising!
Code:
~ # losetup /dev/loop3 -o 1048576 /dev/sda2
~ # mkdir -p /tmp/mountpoint
~ # mount -o ro /dev/loop3 /tmp/mountpoint
~ # cd ..
/ # cd /tmp/mountpoint
/tmp/mountpoint # ls -d */
Backup/            Foto-Video/        lost+found/        video/
BackupOld/         Hudba-Videoklipy/  music/
Data/              Ostatní/          photo/
Filmy/             admin/             public/

:D :D :D

But now how to move data from 2TB disc into first bay to 4TB disc into second bay? (I'm still Linux-almost-virgin)

My idea was to mount 4TB partition and copy directories from one mountpoint to second one from Putty through copy command ... but it didn't work:
Code:
/tmp/mountpoint # fdisk -l

Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x755def46

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          64      514048+   8  AIX
/dev/sda2              65      243201  1952997952+  20  Unknown

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 4000.7 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      267350  2147483647+  ee  GPT


Code:
/tmp/mountpoint # mkdir /tmp/mountpoint4tb

Code:
/tmp/mountpoint # mount -t ext3 -o ro /dev/sdb1 /tmp/mountpoint4tb
mount: /dev/sdb1 already mounted or /tmp/mountpoint4tb busy
/tmp/mountpoint # mount -t ext3 -o ro /dev/sdb2 /tmp/mountpoint4tb
mount: /dev/sdb2 already mounted or /tmp/mountpoint4tb busy


...already mounted or busy... does it mean, that 4TB disc's partitions are already mounted by system because 4TB disc is working and show healthy status? If yes, where are they mounted to? And how to move accessed data from 2TB disc to 4TB disc most effectively (is my idea correct way, or is there better way to accomplish this)?

This seems to be the one last step to get my data back into accessible form... Thanks a lot for your patience with me so far!


Top
 Profile  
 
PostPosted: Thu Feb 01, 2018 10:01 pm 
Offline

Joined: Fri Dec 29, 2017 3:02 pm
Posts: 10
... after some "research" in another thread at this forum I came across info, that working disc's partitions are mounted into folder i-data/somestrangenumbers, so:
Code:
/tmp/mountpoint # cd /i-data
/i-data # ls -la
drwxrwxrwx    4 root     root             0 Jan 26  2015 .
drwxr-xr-x   19 root     root             0 Jan  1  1970 ..
lrwxrwxrwx    1 root     root            19 Jan 29 03:10 .system -> /i-data/md0/         .system
lrwxrwxrwx    1 root     root            19 Jan 29 03:10 .zyxel -> /i-data/md0/.         system
drwxrwxrwx   10 root     root          4096 Jan 26  2015 a7c33296
drwxrwxrwx    2 root     root             0 Jan 29 03:10 fe0b8f56
lrwxrwxrwx    1 root     root            25 Jan 29 03:10 md0 -> /etc/zyxel/stora         ge/sysvol
Code:
/i-data # df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mtdblock6           48896     44376      4520  91% /zyxel/mnt/nand
/dev/sda1               497829    490380      7449  99% /zyxel/mnt/sysdisk
/dev/loop0              138829    122778     16051  88% /ram_bin
/dev/loop0              138829    122778     16051  88% /usr
/dev/loop0              138829    122778     16051  88% /lib/security
/dev/loop0              138829    122778     16051  88% /lib/modules
/dev/ram0                 5120         4      5116   0% /tmp/tmpfs
/dev/ram0                 5120         4      5116   0% /usr/local/etc
/dev/ram0                 5120         4      5116   0% /usr/local/var
/dev/mtdblock4           10240      1504      8736  15% /etc/zyxel
/dev/md1             3845217320    733324 3844483996   0% /i-data/a7c33296
/dev/md1             3845217320    733324 3844483996   0% /usr/local/zy-pkgs
/dev/md1             3845217320    733324 3844483996   0% /etc/zyxel/zy-pkgs
/dev/md1             3845217320    733324 3844483996   0% /usr/local/apache/htdocs/adv,/pkg
/dev/md1             3845217320    733324 3844483996   0% /usr/local/apache/web_framework/data/cache
/dev/mtdblock4           10240      1504      8736  15% /usr/local/apache/web_framework/data/config
/dev/md1             3845217320    733324 3844483996   0% /usr/local/apache/htdocs/adv,/res/imdb_poster
/dev/loop3           1922351504 1922132112    219392 100% /tmp/mountpoint

then:
Code:
/i-data/a7c33296 # cp -r /tmp/mountpoint/ /i-data/a7c33296/Data4TB/

...and now I started to see first of my data flowing onto working NAS' 4TB disc:
Attachment:
Screenshot_1.jpg


Thanks a LOT Mijzelf! Hope this thread will help somebody in similar troubles.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 60 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group