D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] Server adventure

 

Hi all

First the good news. My office LAMP/IMAP/SAMBA server died over-night. Turns out it was the mobo. I took the drive out of the old machine, plopped it into a donor machine (both 64 bit Intel), booted and up it came - lovely. No LAN though. Turns out the NIC hardware was different so I loaded the correct module, adjusted the /etc/network/interfaces file to swap eth0 to eth1 (Linux thought I'd added a new NIC so assigned it eth1), rebooted and voila, 100% running server - no probs. The donor pc has a larger RAM capacity so after stuffing it to the gills, I'm actually up on the deal.

The bad news is that both machines are mini-atx form factor. I can't swap the cases (different PSU layouts) and the drive slot on the donor is 2.5" whereas the server drive 3.5".

I do have a spare 2.5" 500Gb drive (the 3.5" is 320Gb).

Does anyone know the best way to do a straight data/partition transfer from the old drive to the new one whilst allowing the full 500Gb capacity to be available at the end?

With the new RAM (4Gb up from 1Gb), do I need to adjust the swap partition whilst I'm at it?

Any suggestions would be appreciated.

My old drive is:
fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004c017

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63   619145099   309572518+  83  Linux
/dev/sda2       619145100   625137344     2996122+   5  Extended
/dev/sda5       619145163   625137344     2996091   82  Linux swap / Solaris

sda1 and sda2 are using ext3.

Cheers

Martin


--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq