Ðề: Hướng dẫn các bước tự xây dựng một Nas gia đình trên nền PC
Mình đã hỏi bạn rồi, botay.com. Dịch vụ nó đòi 2-3tr 1 hdd. Đang dùng tool power revovery thử, 16h/1hdd, 6*16h phê, kết quả chưa biết thế nào.
Bạn tạo lấy cái USB boot vào Ubuntu rồi làm theo cách dưới đây là lấy được dữ liệu nhé. Mình làm rồi ko mất file nào cả!
https://www.synology.com/en-us/knowledgebase/DSM/tutorial/Storage/How_can_I_recover_data_from_my_DiskStation_using_a_PC
How to recover files from Synology NAS HDD in Ubuntu
NOTE: máy phải kết nối internet và download Ubuntu version mới nhất!
by Gondy » Sun May 13, 2012 2:33 pm
Recently my Synology DS210j crashed after update and no longer boot (just orange status LED blinking). So I need to find a way to recover my files, because I was afraid re-installing DSM software will erase my data. After a few desperate hours fighting with Linux I found a way how to recover files for free using Ubuntu Linux.
So I wrote steps manual what to do if you want to recover files from your NAS hard drive.
I dismounted hard drive from Synology NAS device. I recall that file system on disk is not corrupted and HDD is not broken. Just Synology software crashed after update. You need to connect HDD to computer, you can insert and connect it directly into desktop computer via SATA cables or use e-Sata connector (my case).
1. Create Ubuntu bootable USB flash stick.
We will start Ubuntu from USB stick, so no OS installation is needed and no changes will be made. Download Ubuntu desktop ISO file and USB installer from url's below:
http://www.ubuntu.com/download/desktop
http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
Set some persistent file size for storing changes (at least 400 MB). edit: eik's post
2. Boot Ubuntu from USB stick.
Connect NAS HDD and USB stick to computer, then turn it on. Select boot from USB stick (press Esc or F12, depends on computer, for boot menu and select your USB device. In first menu, select first option 'Run Ubuntu from this USB'.
3. Check HDD drive.
When desktop boots, press Windows key (it's funny, I know, but it works) and type Disk. You should see Disk Utility icon. Double click it. You should see an Extended Partition and RAID component.
4. Install RAID drivers.
Now we need to install Linux RAID driver. Press Win key, search for Terminal and run it. Type this and press enter: It will require Postfix installation, install it and select 'No configuration' in installation menu.
Code: Select all
sudo apt-get install mdadm
Select No configuration and complete the installation.
Now we will search and assemble RAID arrays.
Code: Select all
sudo mdadm --assemble --scan
Open Disk Utility again and you should see RAID array components. See picture:
5. Install LVM2 driver.
Code: Select all
sudo apt-get install lvm2
sudo vgscan --mknodes
Now run Disk Utility, select "vg1" in "Multi-disk Devices" option. Select "Start Volume Group". Now you should be able to see new device in list - "1.41.3-1167" for me.
Here are all your files.
Now you can copy and backup your files.
Other:
How can I recover data from my DiskStation using a PC?
Answer :
In the unfortunate event your DiskStation fails, you'll probably want to recover the data stored on its hard drives. Data stored on the DiskStation's hard drives can be easily recovered using an Ubuntu live CD and your computer. Please see the steps below.
1. Prepare a PC with enough hard drive slots available to install the hard drives from your DiskStation.
2. Remove the hard drives from your DiskStation and connect them to your computer. For RAID or SHR configurations, you'll have to connect all the hard drives (excluding hard drives used as hot spares) to your computer at the same time.
Note: Please make sure the file system running on the hard drives of your Synology DiskStation is EXT4, which is the native file system for DSM 3.0 and onward.
3. Visit
http://www.ubuntu.com/download/desktop to download the Ubuntu ISO file.
4. Burn the ISO on a blank DVD and use it to boot your computer.
5. Install Ubuntu on an empty hard drive or USB stick.
6. If you're recovering files from a RAID or SHR configuration, please see steps 7 to 11. For recovering files from basic storage types with only one hard drive, please skip to step 12.
7. Go to Applications and open Terminal.
8. Install mdadm with the following commands.
Ubuntu@ubuntu:~$ sudo -i
root@ubuntu:~$ apt-get install mdadm
9. Select No configuration and complete the installation.
10. Install lvm2 with the following commands.
root@ubuntu:~$ apt-get install lvm2 (otherwise vgchange won't work)
11. Run the following command to mount all of the hard drives from your DiskStation.
root@ubuntu:~$ mdadm -Asf && vgchange -ay
12. Now you'll be able to browse all the shares and files on the hard drives. You may also connect a USB drive to the PC, copy required files to the USB drive, and then transfer the files to other devices.
Tags :
Storage Management