Hi!
I've been searching around here for a while this morning, and I've found some info, but nothing that solves my problem.
I am running SME 7.1 (from fresh install). I was running twin Maxtor 160Gb drives as a software RAID mirror.
One of the drives failed (SDA), and I have bought a replacement. It is a Western Digital 160Gb drive, but it appears to be slightly smaller than the Maxtor.
So, the info I've found here for using 'sfdisk' and dumping out the partition table of /dev/sdb, and applying it to /dev/sda do not work.
sfdisk /dev/sda < /tmp/sfdisk_sdb.out
Checking that no-one is using this disk right now ...
OK
Disk /dev/sda: 19457 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 0 - 0 0 0 Empty
/dev/sda2 0 - 0 0 0 Empty
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty
Warning: given size (319950540) exceeds max allowable size (312367860)
sfdisk: bad input
fdisk p output for new drive:
Disk /dev/sda: 160.0 GB, 160040803840 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
fdisk p output for good drive:
Disk /dev/sdb: 163.9 GB, 163927522816 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 fd Linux raid autodetect
/dev/sdb2 14 19929 159975270 fd Linux raid autodetect
Another post on this forum suggested resizing the SWAP space in an effort to make the partitions fit on the new drive.
swapon shows me this:
swapon -s
Filename Type Size Used Priority
/dev/mapper/main-swap partition 2031608 0 -1
I don't understand how swap relates to the partitions. fdisk output doesn't seem to show any swap partition.
Where do I go now?
Thanks
Rob