{"id":635,"date":"2018-12-26T23:37:00","date_gmt":"2018-12-27T07:37:00","guid":{"rendered":"https:\/\/kb.terabyteunlimited.com\/kb-articles\/linux-wont-boot-after-moving-from-ide-to-sata-drive\/"},"modified":"2021-09-07T15:36:40","modified_gmt":"2021-09-07T22:36:40","slug":"linux-wont-boot-after-moving-from-ide-to-sata-drive","status":"publish","type":"lsvr_kba","link":"https:\/\/www.terabyteunlimited.com\/kb\/kb-articles\/linux-wont-boot-after-moving-from-ide-to-sata-drive\/","title":{"rendered":"Linux won&#8217;t Boot after Moving from IDE to SATA Drive"},"content":{"rendered":"<p><strong><font color=\"#ff5500\">Problem:<\/font><\/strong> <\/p>\r\n  <p>Linux installation was moved from an IDE drive to a SATA drive and no longer boots.<\/p>\r\n  <p><strong><font color=\"#ff5500\">Cause:<\/font><\/strong> <\/p>\r\n  <p>Older Linux versions (prior to kernel 2.16.19) used <em>hdx<\/em> references for IDE drives (e.g. \/dev\/hda, \/dev\/hdb2). Moving the installation to a SATA drive will prevent the OS from booting because <em>sdx<\/em> references are used for SATA drives (e.g. \/dev\/sda, \/dev\/sdb2). There can also be issues if the SATA controller is configured for AHCI mode and AHCI support isn't included in the OS.<\/p>\r\n  <p><strong><font color=\"#ff5500\">Solution:<\/font><\/strong><\/p>\r\n  <p>Update the booting configuration files for GRUB\/LILO. At the least, you may need to update root and a kernel parameter to reference the correct <em>sdx<\/em> drive instead of the original <em>hdx<\/em> drive (e.g. <em>\/dev\/hda1<\/em> may become <em>\/dev\/sda1<\/em>). Also update appropriate Linux configuration files (e.g. \/etc\/fstab).<\/p>\r\n  <p>If necessary, configure the SATA controller to use IDE mode or add AHCI support to the install.<\/p>\r\n  <p>Note: Newer versions of Linux (kernel version 2.16.19 or later) use <em>sdx<\/em> references for both IDE and SATA drives. Additionally, most recent versions reference drives\/partitions by UUID instead of using <em>sdx<\/em>. This allows the drives\/partitions to be found by ID match instead of position.<\/p>","protected":false},"excerpt":{"rendered":"<p>Problem: Linux installation was moved from an IDE drive to a SATA drive and no longer boots. Cause: Older Linux versions (prior to kernel 2.16.19) used hdx references for IDE drives (e.g. \/dev\/hda, \/dev\/hdb2). Moving the installation to a SATA drive will prevent the OS from booting because sdx references are used for SATA drives [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"lsvr_kba_cat":[1783],"lsvr_kba_tag":[2128],"class_list":["post-635","lsvr_kba","type-lsvr_kba","status-publish","hentry","lsvr_kba_cat-linux","lsvr_kba_tag-linux"],"_links":{"self":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/comments?post=635"}],"version-history":[{"count":1,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/635\/revisions"}],"predecessor-version":[{"id":6440,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba\/635\/revisions\/6440"}],"wp:attachment":[{"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/media?parent=635"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_cat?post=635"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/www.terabyteunlimited.com\/kb\/wp-json\/wp\/v2\/lsvr_kba_tag?post=635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}