LinHES Forums
http://forums.linhes.org/

Upgrade PATA to SATA - How?
http://forums.linhes.org/viewtopic.php?f=11&t=14932
Page 1 of 1

Author:  lostmyshape [ Sat Apr 14, 2007 5:07 pm ]
Post subject:  Upgrade PATA to SATA - How?

i've searched and searched the forum and tried troubleshooting, etc. the closest i've come to an answer is this guide.

i currently have a system running really well on an 80 gig PATA drive. however, i suspect that drive is dying, so i bought a 500gig SATA. now, how do i go about moving my installation from one to the other? i'd like to boot from the SATA... in fact i'd like it to be the only drive.

using the guide above and countless posts here, i got, well, just about nowhere. i can't seem to get initrd to do anything but cause a kernel panic. i can get lilo to run, but that's as far as i get.

can anyone here guide me through this process?

would it work to simply use the backup script on the PATA, do a SATA install from CD, and then restore the backup on the SATA? or would that overwrite important things like the fstab?

thanks in advance.

Author:  tjc [ Sat Apr 14, 2007 7:19 pm ]
Post subject: 

See this thread for a better handle of what gets restored. /etc/fstab is _not_ in that list. http://mysettopbox.tv/phpBB2/viewtopic.php?t=10117

When I upgraded from my old machine to the new machine I did a backup on the old machine, installed on the new machine to get all the partitions layed out and make sure the hardware was working, copied the contents of /myth across, shoved the CD back in and did an autoupgrade using the backup that had been copied in /myth/backup. Yes, some of what I did by installing and upgrading was redundant, but it worked and didn't require lots of head scratching.

Author:  mjl [ Sat Apr 14, 2007 9:47 pm ]
Post subject: 

Hi,

Do a backup first! Also stay same version for the transition, do any upgrades once all is reestablished. Write down the hostname! Use the same hostname on the new build or all will fail.

I have done ide to ide but ide to sata should work also. Mine was similar to tjc's process. I did the auto install to build the drive and then only did the basic q&a process for the time, network, remote etc. When it goes into the setup screen, I esc both times. Once it is all complete, come the tricky part :)

If you can hang a second ide cable on the system, then set the old drive as a slave (hdd) Edit /etc/fstab to make a mount table for the old drive. Then mkdir /mnt/hdd1 & /mnt/hdd3 (assuming a standard install). mount /mnt/hdd1 mount /mnt/hdd3 I then copied all of hdd3 to /myth/ When it finished, do as root mythrestore then reboot.

nano -w /etc/fstab

(add these lines and should work)
/dev/hdd1 /mnt/hdd1 ext3 noauto,users,exec 0 0 (you may want something from the old world)
/dev/hdd3 /mnt/hdd3 ext3 noauto,users,exec 0 0 (your /myth stuff)

mkdir /mnt/hdd1
mkdir /mnt/hdd3

mount /mnt/hdd1
mount /mnt/hdd3

cp -a /mnt/hdd3/* /myth/ (go get a refreshment if a lot of recordings :) )

mythrestore
reboot
alternative method would be to use an external usb housing and substitute sdb1 & sdb3 for the hdd

The mythtv - mysql setup stuff is all stored in the backup. There may be a half dozen better ways but it work for me ide to ide.

Mike

Author:  lostmyshape [ Mon Apr 16, 2007 9:01 am ]
Post subject: 

thanks! it worked. i had to reinstall a bunch of libraries to get firefox and a few other installed programs working, so it took a while, but i was spinning my wheels trying to get lilo and initrd to play nice with my sata drive. the install cd did it all for me.

now i just have to get things set up again for my diskless frontend, but i think all that will entail is copying over some config files from the ide installation and running DHCP.

just wanted to send out another thanks for the help here and to cecil and the rest who developed knoppmyth... and made it so easy to install.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/