LinuxQuestions.org
Help answer threads with 0 replies.
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 08-25-2010, 07:01 PM   #1
aarsh
Member
 
Registered: Mar 2010
Location: USA
Distribution: Ubuntu MATE
Posts: 182

Rep: Reputation: 18
Can I install Linux on External Hard Disk ?


Hello all !
I am using Transcend 320GB HDD. And on my PC I've installed MS Windows XP.
Now I want to install Linux on my External HDD , which would not effect my XP's installation or its boot loader. Yeah, I wanna make my XP stand-alone OS. and another purpose is also that I can carry my Linux OS with me and so I can boot Linux from any other PC.

So is there any way so that I can achieve my goal ?

Thank you.

please note :
I don't wanna the boot loader of XP to be modified.
It should be something like,If & only if I've inserted my External HDD, & I opt for booting from that HDD then ti should boot from that,otherwise it must boot normally...Also I don't want to install Linux with any Visualization S/W ...
AND IF I'VE NOT INSERTED MY EXTERNAL HDD THEN XP MUST BE BOOTED SMOOTHLY.

Last edited by aarsh; 08-28-2010 at 08:46 AM.
 
Old 08-25-2010, 07:18 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
unplug internal. plug in external. Install Linux. set your BIOS to prefer to boot from the external drive first. Plug internal back in.

That should do it.
 
1 members found this post helpful.
Old 08-25-2010, 08:54 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
You may also wish to look into using a Virtual Machine such as Virtualbox or VMware's VMplayer or even QEMU.

You could also use a boot cd or floppy which would then boot to the usb device.

As suggested above. You can install the linux in such a way that when you do boot normally you can select the boot device from the bios's boot menu either through bios or from Fx Key choice at boot.
 
Old 08-26-2010, 09:06 AM   #4
aarsh
Member
 
Registered: Mar 2010
Location: USA
Distribution: Ubuntu MATE
Posts: 182

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by AlucardZero View Post
unplug internal. plug in external. Install Linux. set your BIOS to prefer to boot from the external drive first. Plug internal back in.

That should do it.
But in this will my boot loader of XP will be effected ? Also would I be able to boot from my internal HDD ?
 
Old 08-26-2010, 09:40 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
Originally Posted by aarsh View Post
But in this will my boot loader of XP will be effected ?
Not if you do it the way I described. But you've confused me.

"I don't wan to the boot loader of XP." and "and if opt for booting from that , then and then it should." don't make any sense.

With the external connected, do you want the option of booting XP or not?

Quote:
Originally Posted by aarsh View Post
Also would I be able to boot from my internal HDD ?
Yes.


By the way? It's rude to go back and fundamentally edit your original post after people have replied. You have broken the flow and made jefro look silly.

Last edited by AlucardZero; 08-26-2010 at 09:43 AM.
 
Old 08-26-2010, 10:08 AM   #6
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
For Mint...

I just installed Mint on a USB HDD. My BIOS will either allow a one-time boot of a USB HDD or changing the boot order to boot a USB HDD before an internal HDD.

I made sure that Mint was installed on the USB HDD by changing the default Mint installation proposal using the Mint partitioner during installation. I further specified that the Mint bootloader be placed on the USB HDD.

I had to read carefully the notices and directions presented on the partitioning screen and understand the function of the partitioning tool.

Installing Mint or another linux his way lets me boot the USB HDD when it is attached and boot my other linux when the USB HDD is not plugged in at boot.

The choice of operation system is at the level of the BIOS, and the effect is the same as if booting a linux live-cd. The internal HDD is left unchanged and undisturbed.

Last edited by thorkelljarl; 08-26-2010 at 10:14 AM.
 
Old 08-26-2010, 07:58 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
If you use bios. You have to understand how your bios works. Most newer bios's don't care about which device you select as the first bootable device. It relays that info to the device so that the device now thinks it is first even if it is not.

So you can (and I do) use it all the time to install OS's to other devices without changing the original boot order.


You must know how your system works. In general if you have a boot screen option to select devices then the above method would work.
 
Old 08-26-2010, 10:52 PM   #8
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by AlucardZero View Post
unplug internal. plug in external. Install Linux. set your BIOS to prefer to boot from the external drive first. Plug internal back in.

That should do it.
correct me if i'm wrong though but a portion of GRUB is stored in /boot, so if the OP were to install linux on their external hd, install grub on the internal then unplug it, bye bye ability to load grub at all
though if you install grub on the root of the usb drive it should work either way
 
Old 08-26-2010, 11:17 PM   #9
pkhera_2001
Member
 
Registered: Mar 2006
Location: New Delhi, India
Distribution: Fedora, CentOS, RHEL, Ubuntu
Posts: 67

Rep: Reputation: 18
Hi!

Here is good link which describes that how to setup Ubuntu Linux OS on an external disk and how to use it.

http://pocketseo.com/scripts/43

Thanks,
 
Old 08-27-2010, 04:03 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Grub would be installed on the partition that the OS thought (or user selected) as the first boot device.

Newer bios's can select which one that is. The OS simply follows what it is told.
 
Old 08-28-2010, 08:52 AM   #11
aarsh
Member
 
Registered: Mar 2010
Location: USA
Distribution: Ubuntu MATE
Posts: 182

Original Poster
Rep: Reputation: 18
OK guys , I am done successfully. And this forum really help me out ! Cheers for that ! But the last small problem is that I want to access my Internal HDD ( On Which MS Windows XP (R) is installed ) . So for that think I've to mount that particular partition. So I am I right ?

If right then any of you genius guys, please illustrate with command.
Else correct me please...
 
Old 08-28-2010, 08:56 AM   #12
djsmiley2k
Member
 
Registered: Feb 2005
Location: Coventry, UK
Distribution: Home: Gentoo x86/amd64, Debian ppc. Work: Ubuntu, SuSe, CentOS
Posts: 343
Blog Entries: 1

Rep: Reputation: 72
aarsh you are correct

Firstly we need to find where your windows HDD is appearing - I'd presume its your only hard drive? If so then run:

Code:
dmesg | grep hd
and hopefully that'll bring up a line showing you where its been set (something along the lines of hda or sdb)

Then you can choose where you want to access it from (I choose /home/$user/windows for ease

Code:
mkdir ~/windows
sudo mount /dev/sda1 ~/windows
cd ~/windows
ls -la .
and you should see what you formularly knew as your "C:" drive.
 
Old 09-17-2010, 08:44 AM   #13
aarsh
Member
 
Registered: Mar 2010
Location: USA
Distribution: Ubuntu MATE
Posts: 182

Original Poster
Rep: Reputation: 18
hey I get it done..thanks for your response...

Now the only doubt here is that , I can not access my HDD (openSUSE 11.3 installed & bootable)thru MS Windows XP...

in future how can I format this HDD to use it as a normal data drive ?
 
  


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
help in fixing a external hard disk linux install aayudh Linux - Networking 3 11-24-2008 06:47 AM
how to install linux on ur external hard disk savitrasapre Linux - Software 1 08-18-2008 11:10 AM
Help me! I cannot install Suse from external hard disk sokha0001 Linux - Newbie 1 12-24-2007 02:50 AM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
install a usb external hard disk jik Linux - Newbie 3 08-03-2004 04:21 AM

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

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