LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-29-2018, 05:10 AM   #1
fizzyfizz
LQ Newbie
 
Registered: Jan 2018
Posts: 28

Rep: Reputation: Disabled
Migrating from IDE to SATA - drive fails to boot


I've recently cloned the contents of an old IDE drive onto a new SATA drive.

All appeared to work well but the SATA drive won't boot properly. It looks like it gets halfway but then stops.

Is there something I should've done during the clone to rectify this?

THANKS
 
Old 01-29-2018, 05:38 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,631

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Can you tell us HOW, exactly, you cloned your IDE drive to your SATA?
 
Old 01-29-2018, 05:40 AM   #3
fizzyfizz
LQ Newbie
 
Registered: Jan 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
sudo dd if=/dev/sdb of=/dev/sdc bs=1M conv=noerror
 
Old 01-29-2018, 05:45 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
Check your /etc/fstab to see if it was using a UUID on the old disk.
 
Old 01-29-2018, 05:49 AM   #5
fizzyfizz
LQ Newbie
 
Registered: Jan 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
I managed to clone the IDE drive to another IDE drive and that worked ok. It's just the IDE to SATA where there's a problem.
 
Old 01-29-2018, 07:02 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by fizzyfizz View Post
I managed to clone the IDE drive to another IDE drive and that worked ok. It's just the IDE to SATA where there's a problem.
Going to continue to be as well. Because IDE drives are /dev/hdxx (/dev/hda1, 2, etc.), and SATA is /dev/sdxx (/dev/sda1, etc.). When the system attempts to boot, everything is referencing device(s) that no longer exist.

Make it easy on yourself. Since you've got two hard drives now, do a fresh install to the SATA drive, get a cheap USB enclosure for your first IDE drive, and copy your data off after your system is built.
 
Old 01-29-2018, 07:06 AM   #7
fizzyfizz
LQ Newbie
 
Registered: Jan 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
So instead should I use..

sudo dd if=/dev/hdxx of=/dev/sdxx bs=1M conv=noerror

(I'm not very familiar with all this, sorry)
 
Old 01-29-2018, 08:11 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by fizzyfizz View Post
So instead should I use..

sudo dd if=/dev/hdxx of=/dev/sdxx bs=1M conv=noerror

(I'm not very familiar with all this, sorry)
No, you should NOT. Again, as said, you should do a FRESH INSTALL. Making the initial image isn't going to change...the image that you make is going to have a gazillion references to a hard drive/partition, that DOES NOT EXIST any longer. It probably won't work, and it won't be easy to MAKE it work even *IF* it's possible.

Again:
  1. Do a fresh install to your SATA drive
  2. Copy data from backup/old-drive to your new installation
 
Old 01-29-2018, 08:19 AM   #9
fizzyfizz
LQ Newbie
 
Registered: Jan 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
I can't do any fresh installs. The IDE drive is running FTP server software no longer available. Hence why I'm cloning the drive in the first place.

So am I better off keeping the IDE drives and giving up on the SATA idea?
 
Old 01-29-2018, 08:44 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by fizzyfizz View Post
I can't do any fresh installs. The IDE drive is running FTP server software no longer available. Hence why I'm cloning the drive in the first place.
So am I better off keeping the IDE drives and giving up on the SATA idea?
No, you are not. While I can appreciate your inexperience with things, what you're doing is only going to cause you MANY more problems in the future. You say the "FTP Server software no longer available". What software is this? For what version/distro of Linux?? Face the facts: at some point in the future, you WILL NOT be able to buy a new IDE drive, your old hardware *WILL* die, and if your current FTP software is already dead/unsupported, why are you still using it? You are going to be FORCED to upgrade at some point, so all the work you're putting in to keeping old junk alive is doing nothing to help you, your company, or your situation in the long run.

Provide details about what your actual goal(s) are; hardware, software, etc. What does this server DO? There are many FTP server programs for Linux, so if you're just concerned with FTP services, you have ample room to migrate.
 
Old 01-29-2018, 09:06 AM   #11
fizzyfizz
LQ Newbie
 
Registered: Jan 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
The software is run by a company that has discontinued support for their hardware FTP server device. The system allows us to send files to multiple recipients at the same time. Both internally and externally.

EG; We want to send a collection of photos to 20 recipients. We drag and drop the photos onto a 'group' of recipients. The FTP server then transmits those photos to all the recipients in one go without having to drag and drop 20 times. This can be achieved externally too.

The cost to replace this costs thousands of pounds. Money we don't have.

I've researched a replacement system many times but have always drawn a blank. If you know of a similar system, please let me know.
 
Old 01-29-2018, 09:25 AM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by fizzyfizz View Post
The software is run by a company that has discontinued support for their hardware FTP server device. The system allows us to send files to multiple recipients at the same time. Both internally and externally.

EG; We want to send a collection of photos to 20 recipients. We drag and drop the photos onto a 'group' of recipients. The FTP server then transmits those photos to all the recipients in one go without having to drag and drop 20 times. This can be achieved externally too.

The cost to replace this costs thousands of pounds. Money we don't have. I've researched a replacement system many times but have always drawn a blank. If you know of a similar system, please let me know.
Since you STILL haven't said what the name of this system is, what kind of Linux it's running, on what kind of hardware, with what kind of interface (in short, ZERO details), how do you think we'll be able to suggest anything??? And the FTP server isn't 'transmitting' them to the users...but putting the files into the users directories, so the users can pull them down. FTP isn't a push client.

FTP is horribly insecure, and has largely been replaced with SFTP/SCP. And you say "drag and drop"...from what kind of client, using what software? And if the VENDOR has stopped support, you are in the same boat as before; you are now just WAITING for your hardware to die. You don't have "thousands of pounds" now...but I'm sure you'll come up with those same funds in the future when the thing finally dies, right? Because you will then HAVE TO.

Change your software and hardware to something current. A standard desktop PC with Linux will have MORE than enough horsepower to run an FTP server. If you approach a problem with the "it's always been this way and always HAS TO BE this way", you are setting yourself up for failure. CrossFTP will give you commercial support for $50 per server.
 
Old 01-29-2018, 09:54 AM   #13
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
There is a parameter/bootlib override that you need to supply when booting to SATA if the SATA drive was not used originally to build the system. It is all to do with the switch to the optimised drivers part way through the boot process and where to find said drivers.

It was a common problem when SATA drives first came out.

Last edited by dave@burn-it.co.uk; 01-29-2018 at 09:57 AM.
 
Old 01-29-2018, 04:20 PM   #14
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by fizzyfizz View Post
All appeared to work well but the SATA drive won't boot properly. It looks like it gets halfway but then stops.
Explain - in detail. With messages and/or screenshots/photos.

I originally thought this should be do-able, but the more I thought about it the more problems I see (never having tried it). I had expected this to work with maybe some tweaks to grub parameters and fstab. But then there is the initrd support for SCSI - almost sure to be missing. That would have to be rectified prior to taking the clone. Very distro dependent.
And I guess it's grub classic.

Dave, do you have any more detail on that parameter ? (curiosity only).
 
Old 01-29-2018, 05:20 PM   #15
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
It was an awful long time ago when XP was around and mostly applied to Windows, but It was about changing the BIOS to AHCI mode and selecting the correct drive to boot from. There were several ways to do it with Windows and I suspect you need to check whether any other executables have seperate drivers for IDE and SATA (doubtful nowadays).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New machine with old disk fails to boot - SATA / IDE problem? JZL240I-U Linux - Hardware 13 10-26-2010 03:09 AM
Partition copy from SATA to IDE fails to boot (debian amd-64 rc2) siggma Linux - Server 2 03-01-2008 01:08 PM
SUSE USB installation boot up fails dep. on IDE or SATA oozie Linux - Kernel 0 10-23-2006 05:00 PM
Changing from SATA to IDE boot drive. purelithium Linux - General 7 02-09-2006 11:54 AM
After adding ide to SATA(via) machine, boot fails - Fedora core 2 Jemsquash Linux - Hardware 6 09-21-2004 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration