You are not logged in.

#1 2009-07-21 10:53:19

danij3l
Member
From: Osijek, Croatia
Registered: 2007-12-08
Posts: 36

form old hdd to new one - no screen, kyb

i have this one machine that i use for DL-ing porn lol

it has no screen or kyb.
it has only a small 40GB  HDD and as u know it doesn't fit a whole lot of porn. ordered a 1TB WD Green and now i need to transfer entire content of old one to new.
how to do it?

any direct interaction is not possible. SSH only. does Arch Live CD start SSH auto? (reinstall of entire OS is not a problem if it can be done without kyb and scrn)

Offline

#2 2009-07-21 12:44:57

Bob_Sheep
Member
From: Scotland
Registered: 2008-10-06
Posts: 27

Re: form old hdd to new one - no screen, kyb

How do you mean transfer all the data? Mirror the drive so that you can boot into arch from your new hard drive? If that is the case its possible to run dd through an SSH connection in order to mirror a hard drive remotely.  Or you could put both hard drives into the same machine and use dd.  If you only need to backup files you can use scp/sftp or pipe tar over SSH
edit: rsync would work well for backing up files too

Last edited by Bob_Sheep (2009-07-21 12:56:21)

Offline

#3 2009-07-21 16:38:21

danij3l
Member
From: Osijek, Croatia
Registered: 2007-12-08
Posts: 36

Re: form old hdd to new one - no screen, kyb

this is the only sys hdd. must be bootable. (everything needs to be copied - so that when old drive is out arch would boot from new one)

are u sure dd is enough will do the job? (first thing that pops in my mind is fstab and it's fancy UUIDs)

Offline

#4 2009-07-21 16:59:24

Bob_Sheep
Member
From: Scotland
Registered: 2008-10-06
Posts: 27

Re: form old hdd to new one - no screen, kyb

dd is designed for this sort of stuff, but you might have to correct the UUIDs.  If possible the easiest way to do it is to put both the old hard drive and new hard drive into the same computer temporarily, with another drive from which you can boot.  Otherwise what you have to do is put the new hard drive into a different computer and connect to the server via SSH.

You will have to enable SSH root login, then do something like:

# ssh root@server "dd if=/dev/sda" | dd of=/dev/sd[new drive]

You will also have to remount the old hard drive as readonly before doing the backup:

# mount -o remount ro /

If you can get all the drives into one computer things are a bit easier

# dd if=/dev/sd[source drive] of=/dev/sd[new drive]

after that just grow the partition on the new drive with parted and then update any uuids.

Offline

#5 2009-07-21 18:18:17

danij3l
Member
From: Osijek, Croatia
Registered: 2007-12-08
Posts: 36

Re: form old hdd to new one - no screen, kyb

ok, will try. so uuids (blkid and fstab edit - easy) are only problem? (no problems with grub?).

Offline

#6 2009-07-21 18:24:47

Bob_Sheep
Member
From: Scotland
Registered: 2008-10-06
Posts: 27

Re: form old hdd to new one - no screen, kyb

you might have a uuid to update in grub too, but apart from that i cant foresee any other problems.

Offline

Board footer

Powered by FluxBB