DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

#1 2013-09-21 23:52:34

wdlxtvuser
Member
Registered: 2012-02-09
Posts: 10

Cloning existing ffp 0.5 hdd to a bigger hdd, CloneZilla?

Hi!
My 320GB WD works fine in DNS-313 with ffp 0.5 installed.
Now I want to migrate to 1TB WD10EADS.
I thought I could connect both of the drives through USB to my Linux PC, start CloneZilla and perform "copy disc" command from the old to new. Then afterwards just resize NTFS partition to the maximum.
Is it possible, is NTFS data partition at the end of the drive, or in the middle?
Kindly suggest some ather way if it could achieve the same...
Thx.

Offline

 

#2 2013-09-24 10:49:15

wdlxtvuser
Member
Registered: 2012-02-09
Posts: 10

Re: Cloning existing ffp 0.5 hdd to a bigger hdd, CloneZilla?

Anyone...?

Offline

 

#3 2013-09-24 11:35:24

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 678

Re: Cloning existing ffp 0.5 hdd to a bigger hdd, CloneZilla?

If you have FFP running, you can just look at the partition table, and the mounts

Code:

fdisk -l /dev/sda
cat /proc/mounts

Offline

 

#4 2013-09-24 20:22:33

wdlxtvuser
Member
Registered: 2012-02-09
Posts: 10

Re: Cloning existing ffp 0.5 hdd to a bigger hdd, CloneZilla?

This is what it looks like, it seems that the sda2 is the data ntfs partition, which makes my approach useless...


root@NAS-313:/mnt/sda3/home/root# fdisk -l /dev/sda

Disk /dev/sda: 320.0 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1          63      506016  82 Linux swap
/dev/sda2             152       38913   311355765   7 HPFS/NTFS
/dev/sda3   *          64         126      506047+ 83 Linux
/dev/sda4             127         151      200812+ 83 Linux

Partition table entries are not in disk order


root@NAS-313:/mnt/sda3/home/root# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext2 rw,nogrpid 0 0
none /proc proc rw,nodiratime 0 0
none /dev/pts devpts rw 0 0
/dev/sda3 /mnt/sda3 ext2 rw,nogrpid 0 0
tmpfs /tmp tmpfs rw 0 0
/dev/sda2 /mnt/HD_a2 ufsd rw,nodiratime 0 0
/dev/sda4 /mnt/HD_a4 ext2 rw,nogrpid 0 0

Offline

 

#5 2013-09-24 21:23:08

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 678

Re: Cloning existing ffp 0.5 hdd to a bigger hdd, CloneZilla?

Well, yes it is sda2. But sda2 is physically the last partition on the disk (cylinder 152-38913) so I guess it should work.

Instead of using Clonezilla I would just use dd. Just because Clonezilla might do more than raw copying, which might be contra-productive here.

Offline

 

#6 2013-09-24 22:57:30

wdlxtvuser
Member
Registered: 2012-02-09
Posts: 10

Re: Cloning existing ffp 0.5 hdd to a bigger hdd, CloneZilla?

Indeed you're right about the sda2 being the last partition.
As I'm not familiar with the dd command, I'll try with CloneZilla and at the end I'll resize the sda2 to the max with Gparted.
If not successful, I'll know from the start when booting with the new hdd. Then I'll deal with dd.
Thx Mijzelf for helping me out!

Offline

 

#7 2014-01-15 12:05:07

wdlxtvuser
Member
Registered: 2012-02-09
Posts: 10

Re: Cloning existing ffp 0.5 hdd to a bigger hdd, CloneZilla?

Mijzelf wrote:

Instead of using Clonezilla I would just use dd.

So finally I can report that WD20EADS works fine, perfect cloning has been done just with dd command, followed by gparted for expanding the ntfs partition to the max...

Thx again Mijzelf...!

Offline

 

#8 2014-03-29 21:41:51

jrfbal
Member
Registered: 2008-10-22
Posts: 7

Re: Cloning existing ffp 0.5 hdd to a bigger hdd, CloneZilla?

Thank you for this post. I just successfully accomplished the same. I had a dns-313 with a 1TB hdd and wanted to migrate to a 2TB hdd.

A little guide to explain what I did:

Plugged the dns-313 by usb to a computer and the empty destination hdd by usb and started ubuntu.
Ran in a terminal:
sudo fdisk -l

to list all the available drives. Take note of the source hdd (in my case /dev/sdc) and the source hdd (in my case /dev/sdb)

Ran in the terminal (VERY IMPORTANT! DO NOT MESS UP THE DESTINATION AND SOURCE IN THE COMMAND, OR YOU WILL DESTROY YOUR DATA!)

sudo dd if=/dev/sdc of=/dev/sdb bs=4096 conv=notrunc,noerror,sync

Waited for a long time. To see how the progress is going, you can type in a new terminal

pgrep -l '^dd$'

to get the process number. in my case it returned 3093 dd. Then simply type

sudo kill -USR1 3093

and the dd terminal window will reply saying how much data it has copied.

When the process was done I started gparted, expanded the NTFS partition to the remaining free space, plugged the hdd to the dns-313, connected to the network and everything was just like before, just with a lot more free space. smile

Thank you again for the tips.

Offline

 

#9 2014-03-29 21:45:15

wdlxtvuser
Member
Registered: 2012-02-09
Posts: 10

Re: Cloning existing ffp 0.5 hdd to a bigger hdd, CloneZilla?

I'm glad to be of any help :-)
Besides Mijzelf, of course...

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB