LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-12-2006, 04:03 AM   #1
fhansson
LQ Newbie
 
Registered: Jan 2006
Distribution: Ubuntu 5.10
Posts: 2

Rep: Reputation: 0
Change IDE disk to SATA


I have a little problem. I installed Ubuntu Linux 5.1 on my IDE drive (/dev/hdc1) and it works fine with GRUB. But now I want to use a adapter so I can use SATA interface on the motherboard. The problem is that that will also change the drive location to /media/sda1 and the system will not boot. How can I configure GRUB to boot from SATA instead of the IDE interface? Do I have to make any changes to my Ubuntu installation?


/Fredrik
 
Old 01-12-2006, 05:52 AM   #2
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
To my understanding there are a couple of files that you will need to change. The first is grub.conf. Anything associated with /dev/hdc1 will have to be changed to the location of your new hard drive (I'm not sure /media/sda1 is the correct mount point, make sure you check into that. The second file that will most likely need to be changed is /etc/fstab. At the moment it probably lists all your mount points with respect to /dev/hdc1 and this will have to be changed to the new mount points.

This will probably need to be done using a boot/Live CD of some sort so you can mount the partitions and edit the necessary files. To my knowledge I can not think of anything else to do, but someone else please ante up if I forgot something
 
Old 01-12-2006, 01:22 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by fhansson
I have a little problem. I installed Ubuntu Linux 5.1 on my IDE drive (/dev/hdc1) and it works fine with GRUB. But now I want to use a adapter so I can use SATA interface on the motherboard. The problem is that that will also change the drive location to /media/sda1 and the system will not boot. How can I configure GRUB to boot from SATA instead of the IDE interface? Do I have to make any changes to my Ubuntu installation?


/Fredrik
We would need more info to help you like how many drives are in the system, where is grub installed on (which hard drive and what is the boot order) and the output of sudo fdisk -l and your /boot/grub/menu.lst would be nice to see as well.
 
Old 01-13-2006, 03:11 AM   #4
fhansson
LQ Newbie
 
Registered: Jan 2006
Distribution: Ubuntu 5.10
Posts: 2

Original Poster
Rep: Reputation: 0
Ok, I solved the problem. It was not that complicated. The only thing to do was to add a new menu item in menu.lst with root=/dev/sda1 instead of /dev/hdc1 then run grub-install /dev/sda.

A note is that the drive appears as /media/sda in Ubuntu but the real mount point is /dev/sda..
 
  


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
IDE vs SATA? new.thing Linux - Hardware 5 07-12-2005 10:38 AM
Install Linux on SATA ide disk nixon_vb Linux - Hardware 3 07-01-2005 01:55 AM
How to create Dual boot disk on IDE & SATA bikerle Linux - Newbie 19 02-10-2005 08:35 AM
use ide-scsi to emulate an ide disk as a scsi disk free_ok_man Linux - Software 1 07-01-2003 05:08 PM
use ide-scsi to emulate an ide disk as a scsi disk free_ok_man Linux - Newbie 1 07-01-2003 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:51 PM.

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