LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-28-2006, 12:38 AM   #1
dcypherd
LQ Newbie
 
Registered: Aug 2006
Posts: 7

Rep: Reputation: 0
External hard drive prolems


So I have this old sub-notebook that I am trying to put ubuntu onto. it doesn't have any external drives so installing linux is a little difficult. My plan was to put the laptops hard drive in an ext enclosure and then install linux onto while it is attached to my desktop. The problem with this is that during installation Ubuntu mounts the hard drive as sd1(??or sda can't remember.) and when I put the hard drive in the laptop it tries to mount a hard drive that is no longer sda(sd1?) instead of hda(hd1??) I tried changing the mount settings in fstab but that didn't work... Does any one have any other brilliant ideas.... I am so close I can taste the linuxieness... yumm
 
Old 08-28-2006, 02:35 AM   #2
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
You need to edit your lilo.conf (lilo) or menu.lst (grub) files to specify the root partition that Linux will boot from. An option is passed to the kernel at boot which tells it which partition is your root partition. You need to edit this option as well as /etc/fstab.

I'm not sure which bootloader Ubuntu uses, but locate the configuration file (whichever one it is)...
...if it's lilo.conf, then change the line "root = /dev/sda1" to "root = /dev/hda1", rerun lilo, and try it.
...if it's menu.lst, then change the kernel option "root=/dev/sda1" to "root=/dev/hda1", and try it.
Make sure you change /etc/fstab as well so that all /dev/sda* devices are /dev/hda*.

That ought to work...

Last edited by zhangmaike; 08-28-2006 at 02:37 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
External hard drive red929 Linux - Hardware 3 12-27-2005 04:17 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
External Hard Drive CrackX Linux - Hardware 1 07-10-2005 10:24 PM
XS Drive II external USB hard drive/card reader max74 Linux - Hardware 7 10-21-2003 10:41 PM

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

All times are GMT -5. The time now is 12:08 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