LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-31-2008, 03:03 AM   #1
Mr_Shameless
Member
 
Registered: Aug 2006
Location: Asia
Distribution: Ubuntu
Posts: 59

Rep: Reputation: 15
how to install on external hard drive then boot from any computer?


Hi,

I had a look around this forum but haven't found any entry that answers to my problem. I'm sorry if this has already been explained before.

My goal:
  • I have an external hard disk and want to install linux on a portion of it, then i can use this drive to boot from any computer.
  • It doesn't need to have a comprehensive set of wizards like Ubuntus or PCLinuxOS. For example, i can just boot into the command line then from there type
    Code:
    Xorg -configure
    to configure xorg, then startx.

What i did:
  • I installed archlinux 2008.7 into my external hard drive, setting 20G for the root partition, 5G for the /home partition, and 1G for swap.
  • At the end of the installation, i installed GRUB to the external hdd's master boot record. The disk was recognized as /dev/sdb on my computer.

What i got when booting from the drive:
  • The computer could boot from my external HDD and load GRUB. But when i chose Arch from the list, it said "Failed to mount device"

Can any one help me solve this, or point me to some tutorials?

Btw, in GRUB's menu.lst, my booting partition was called (hd1,0). This won't work if I plug my HDD to other computers, will it?

Thank you very much

Last edited by Mr_Shameless; 05-31-2008 at 12:00 PM.
 
Old 05-31-2008, 11:03 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
The GRUB boot record probably has the wrong device. When you installed Linux on the external har drive the machine saw the drive as /dev/sda. If you had booted GRUB from your internal hard disk in interactive mode and used GRUB commands to list the hard drives then the external hard disk would probably have shown up as HD1. This is probably what is in the GRUB boot specification on the external hard drive. However, when you boot from that drive GRUB sees that drive as HD0. Therefore when it is looking for menu.lst on HD1 it is looking at the wrong disk.

I think that's the way it works. I don't play with GRUB in interactive mode very often. I have found that when running GRUB in interactive mode I use the geometry command to list visible boot devices and I use the find command to find the menu.lst file or the Linux kernel.

Either that or GRUB doesn't have a device driver to read the external hard drive.

Several of the larger distributions have step by step instructions for installing Linux on an external, removeable, bootable drive. Try the documentation for your distribution. If that doesn't work try the Gentoo documentation or the Debian documentation.

Last edited by stress_junkie; 05-31-2008 at 11:14 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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-05-2007 12:28 AM
Install of Mepis to external hard drive won't boot. pegazuz MEPIS 5 03-07-2007 01:41 PM
Boot Linux from external hard drive?? wootletootle Slackware 9 01-19-2007 06:46 AM
SUSE boot from external hard drive shikhar Suse/Novell 0 09-14-2006 05:12 AM
Daul Boot with external hard drive Haloony Linux - Newbie 7 01-05-2006 12:13 PM


All times are GMT -5. The time now is 04:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration