Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

System transfer to larger HDD

0 views
Skip to first unread message

Vince Coen

unread,
Nov 12, 2009, 9:22:42 AM11/12/09
to
Hello All!

I have a Maxtor 500GB HDD in a case used as a media centre but after 12 months
in use, smartd is reporting that the drive is failing with many missing
sectors with 1732 bad, 334 pending and 1398 reallocated.

I now have the problem that for some recordings I make, I cannot play back as
the file is not present, no doubt caused by the above problems.

So having a strugle trying to get hold of the UK supplier (Components4all) to
respond to the drive failure I have been forced to buy a new drive a 1Tb
Samsung.

The question:

The old drive has 4 partitions,

1. Windows XP Home in a 20Gb area - NTFS format.
2. Linux swap 1Gb or less
3. Linux Boot for Mythbuntu of 50Gb (ish) - ext3 format
4. Data in XFS format for all of the recordings, videos etc.

What I want to to is transfer the lot over to the new drive and remove the
failing HD.

I am assuming I have to partition and format the new one similar to the old
with the extra space going to partition 4 (data) but how do I copy the old
drive over do I can replace and then just boot to the new one with everything
working?

Please do not say, use any software running under Windows as they can not
support the various linux formats as well as costing money, that I can not
spare.

Is there a tool in Linux that does it and does it require specifying each
parttion at a time etc.

Your help will be appreciated,

Vince


Jon Solberg

unread,
Nov 12, 2009, 10:04:15 AM11/12/09
to
On 2009-11-12, Vince Coen <VBCoen...@btconnect.com> wrote:

> I have a Maxtor 500GB HDD in a case used as a media centre but after
> 12 months in use, smartd is reporting that the drive is failing with
> many missing sectors with 1732 bad, 334 pending and 1398

> reallocated. [...]

In the the past, I've had good results saving failing drives by making
direct copy of it with the 'dd' command from a live disk (man dd, info
dd). It's fairly simple to use if you can live with a CLI
tool. However, great care must be taken so you don't overwrite the
wrong disk and it's not recommended to try and mirror the root disk
when running from it.

This may not be an option for you.

The magical Google keywords would be "mirroring +dd +linux" or
something to that effect.

HTH.

--
Jon Solberg (remove "nospam." from email address).

James Michael Fultz

unread,
Nov 12, 2009, 10:19:25 AM11/12/09
to
* Jon Solberg <j...@jonsolberg.nospam.se>:

> On 2009-11-12, Vince Coen <VBCoen...@btconnect.com> wrote:
>
>> I have a Maxtor 500GB HDD in a case used as a media centre but after
>> 12 months in use, smartd is reporting that the drive is failing with
>> many missing sectors with 1732 bad, 334 pending and 1398
>> reallocated. [...]
>
> In the the past, I've had good results saving failing drives by making
> direct copy of it with the 'dd' command from a live disk (man dd, info
> dd). [...]

ddrescue may be better for use with a failing drive. It can
intelligently retry reading failing sectors as well skipping them if
deemed unreadable.

<http://www.gnu.org/software/ddrescue/ddrescue.html>

<http://wiki.lunarsoft.net/wiki/Data_Recovery>

--
James Michael Fultz <xy...@sent.as.invalid>
Remove this part when replying ^^^^^^^^

General Schvantzkoph

unread,
Nov 12, 2009, 11:04:51 AM11/12/09
to

Partition the new drive and do a fresh install of Mythbuntu and then
mount the old drives partitions under the new Mythbuntu. The all you have
to do is rsync the data from the old drive to the new drive.

Stefan Patric

unread,
Nov 12, 2009, 2:07:10 PM11/12/09
to
On Thu, 12 Nov 2009 14:22:42 +0000, Vince Coen wrote:

> Hello All!
>
> I have a Maxtor 500GB HDD in a case used as a media centre but after 12
> months in use, smartd is reporting that the drive is failing with many
> missing sectors with 1732 bad, 334 pending and 1398 reallocated.
>

> [snip]


>
> The question:
>
> The old drive has 4 partitions,
>

> [snip]


>
> What I want to to is transfer the lot over to the new drive and remove
> the failing HD.
>
> I am assuming I have to partition and format the new one similar to the
> old with the extra space going to partition 4 (data) but how do I copy
> the old drive over do I can replace and then just boot to the new one
> with everything working?

> [snip]


>
> Is there a tool in Linux that does it and does it require specifying
> each parttion at a time etc.

Yes. ddrescue. No. You can recover one partition at a time or the
whole drive at once.

First, back up all your data, if you can. Then install the new drive in
your system, and boot with a Linux LiveCD like SystemRescueCD (http://
www.sysresccd.org/), and using ddrescue copy the entire failing drive
onto the new drive. Then, if you desire, using the partition editor
that's on the LiveCD you can resize the partitions or use fdisk to add
new ones.


Stef

Vince Coen

unread,
Nov 23, 2009, 10:50:46 AM11/23/09
to
Hello General!

12 Nov 09 16:04, General Schvantzkoph wrote to All:

>> What I want to to is transfer the lot over to the new drive and
>> remove the failing HD.

GS> Partition the new drive and do a fresh install of Mythbuntu and then
GS> mount the old drives partitions under the new Mythbuntu. The all you
GS> have to do is rsync the data from the old drive to the new drive.

Yep, after trying some of the ghost type programs that all tried to read all
sectors (including the damaged and/or unused ones) which created loads of
errors. I used the same procedure you outlined although also had to export the
mysql db and use some of it to import (insert) into the new drive.

Only 1 problem, it seems to have forgotten all the programs previously
recorded. I thought I had the right table but obviously not).

There again if things worked first time, computers would get boring (or in my
case start looking for the invisible bugs).

Thanks for the help and all the suggestions folks,

Vince


0 new messages