LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-05-2005, 10:18 AM   #1
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Installing grub to external USB hard drive for later use as internal hard drive


I've just finished building LFS on an external hard drive attached to my
laptop via a USB port.

My system recognizes the external drive as /dev/uba. I have put LFS on the
second partition of the drive, i.e., /dev/uba2 .

My problem: I'm now ready to configure and install Grub, but I need to know
how to set it up. One problem is that, after I finish getting everything
ready, I'm going to pull out my currently installed internal hard drive and
replace it with the one that I've built LFS on.

So, what is now /dev/uba will become /dev/hda.

In other words, what is presently an external USB hard drive will later become
an internal hard drive.

I *don't* want to write grub to the MBA or any partition of my currently
installed internal hard drive, as I use Lilo on that drive. Besides, that
drive won't be installed when I try to boot into LFS.

Any ideas? I'm poised to finish this three-day task, but I don't want to blow
it now!

Thanks.
 
Old 02-05-2005, 05:10 PM   #2
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Original Poster
Rep: Reputation: 31
Got it taken care of, thanks to Knoppix. I installed the external drive as my laptop's internal drive, then used Knoppix to get grub properly installed. The _Knoppix Hacks_ book that Santa Claus brought me has a good section on this.

Now I've got to figure out why my proc filesystem isn't mounting properly. But that's another story.
 
Old 12-10-2005, 08:48 AM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
If you install a Linux in one disk-order position and then use it in another disk-order position you must amend all the partition references in /etc/fstab.

It original root partition must be amended to reflect the new environment.

Not a big deal just editing a couple of lines. I have moved partition from a Sata to an IDE and at different partition number. It is one of the nice bit of Linux that you can always move the distro from partition to partition, from disk to disk and from computer to computer.

Some of my distros were installed 2 PC before my current one.
 
  


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
Installing Fedora Core 3 on an external USB hard drive tniemeie Fedora 3 05-25-2006 06:29 AM
External USB hard drive jhmorris47 Linux - Hardware 6 05-02-2006 04:14 PM
Installing Slack 9.0 on an external USB hard drive Elohist Slackware 5 08-03-2004 07:41 AM
XS Drive II external USB hard drive/card reader max74 Linux - Hardware 7 10-21-2003 10:41 PM
External USB hard drive bob10a Linux - General 3 08-09-2003 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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