moving to a larger hard drive...

D. Hugh Redelmeier hugh-pmF8o41NoarQT0dZR+AlfA at public.gmane.org
Sat Dec 2 05:34:21 UTC 2006


| From: Aaron Vegh <aaronvegh-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org>

| I've got a mythtv system that had a 30GB drive. Predictably, I have
| now purchased a 320GB drive to replace it. Now, given the hassle
| involved in getting the system working (and it's just right!), you can
| imagine I'd much rather just duplicate the drive onto the larger one.
| However, the dd command proved less than useful! It created a
| duplicate but seemed to have made my drive 30GB in size.

I assume that you dd'ed hda to sda, not hda1 to sda1 etc: copied the
whole disk rather than the individual partitions.

You should be able to use fdisk to fix the partition table.  It should
see the rest of the disk.  You will then probably need to grow a
partition: another topic.

| Plus, the
| resulting drive wouldn't boot the computer (a problem with Grub,
| perhaps? It stalls at a flashing cursor on boot, suggesting it doesn't
| see a boot drive).
| 
| Further complicating factors include the fact that the old drive is
| IDE, the new drive is SATA2. We're moving from /dev/hda to /dev/sda.

I'm slightly beyond the edge of my knowledge here.

sda and hda are not interchangeable.

Grub comes in stages.  The boot sector part of it needs how to load
the next stage of it.  This is done by wiring-in sector addresses (the
logic to understand filesystems just does not fit in the space of a
boot sector).  Probably grub's boot sector can no longer find its
other stages.  Consider making a grub boot floppy and getting it to
load the kernel.

The kernel itself may not be happy.  I hope that is not the case.
Perhaps grub.conf will need to be changed (changing /dev/hdaX to
/dev/sdaX).  Perhaps fstab will need to be edited similarly.  You can
probably fix this from a knoppix live CD.

Once you've booted into your new system, you can probably run
grub-install to make booting work without the grub floppy.

If none of this made any sense, maybe you are attempting something too
difficult for you.  On the other hand, all you've got to lose is your
time.
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list