I have a question - I'd installed Mandriva2009.1 onto a 40GB ATA drive (sda1) for almost a year now, and now I wish I'd installed it on a SATA drive instead (sdc1 in this case).

I've made disk Image of the above drive (using Acronis), and now I want to restore this on the 500GB SATA drive (sdc1) so I don't have to re-install Mandriva2009.1

If I restore the disk image to SATA, do I edit the FSTAB / MTAB and change sda1 to sdc1 in order to boot from the SATA drive ?

I'm wondering if there will be improvement running it on sata instead of ata ! My aging 40GB ATA drive has been failing alot lately and I have been 'restoring' my disk image almost once a week due to my aging ATA drive freezing.

I'm not sure this is as simple as updating your fstab (you're not making changes to your mtab btw) as IIRC, you need to create a new initrd image too

There's only two entries you have in there though. The ones with #s basically comment things out, so the only entries you're showing are /proc and /tmp. You should be interested in the ones marked swap, /, and /home

I'm not sure this is as simple as updating your fstab (you're not making changes to your mtab btw) as IIRC, you need to create a new initrd image too

There's only two entries you have in there though. The ones with #s basically comment things out, so the only entries you're showing are /proc and /tmp. You should be interested in the ones marked swap, /, and /home

oh yea.. i edited out the swap, /, home and 3 other partitions to make my question simpler and less clutter

Here is a simple example.
root (hd0,0) is HDD #1 and partition #1 (zero based)
in the kernel line you will need to edit the /dev/hda1
splashimage I put at the bottom due to low priority to be fixed; it will need to be edited the same way as the root (hd0,0) line

This is not terribly hard to do and if grub fails usually you can boot into the grub prompt and fix it. I warn you that this is also not for the timid. While not difficult once you understand it all, if you are in the middle of a problem and don't understand how it all works it is easy to become very frustrated.

An easier suggestion may be to create a .tgz archive of /home, /etc, /var, /usr, and if necessary, /bin, /sbin, and /opt. Then install a base system on the sd cdrive and restore this backup.

Lodis: If they remove the ATA drive, then there shouldn't be any need to change grub.

Thinking about this more though, I wonder if simply symlinking /dev/sda to /dev/sdc will be a simple solution for this.

If I read what he is doing correctly the new drive will ID differently and therefore require grub edits.

He mentions a 40GB ATA drive, I assume this to be PATA, which would ID as /dev/hda.

He really needs to look at /etc/udev/rules.d/XXXXXXX.rules?? and see what his mappings are to those UUID's.If the original drive is PATA he will have to make edits to grub, if it was SATA then unplug the original drive and plug in the new one in the same port. Still might need grub edits but the odds are smaller at this point.

I'll prolly do this over the weekend or early next week - I'll edit the fstab and grub, then test it out. But as a last resort, I'll just install a fresh mandriva2009.1 to SATA drive as per your suggestion

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum