LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-29-2007, 03:18 PM   #1
gregmcavoy
Member
 
Registered: Apr 2003
Location: Northern California, USA
Distribution: Debian
Posts: 54

Rep: Reputation: 15
making a WD My Book external USB drive bootable


Greetings,

I'm running a LAMP machine with Debian and php4.4. I need the ability to run LAMP with php5.x in addition, but not all the time. My hope is to set up a Windows machine to, when needed, boot instead to Debian. I have a WD 500GB My Book external USB drive and want to configure it to be bootable (with grub?). I ran the Debian 4 netinst CD and was able to get the USB drive all set up--except I get a non-specific error when I try to install grub (or lilo) to /dev/sdb0 (which mounts as the root folder) from netinst. Can this be done? What's the process? Many thanks!!
 
Old 01-03-2008, 09:12 PM   #2
fastTalker
LQ Newbie
 
Registered: Feb 2006
Location: USA
Distribution: Debian Etch, Debian Lenny, Ubuntu Feisty
Posts: 28

Rep: Reputation: 15
can you not just add an entry to your grub list for your usb drive?

something like this. assuming your usb drive shows up second.
Code:
title    Windoze
map      (hd0) (hd1)
map      (hd1) (hd0)
root     (hd1,0)
chainloader +1
i believe there are ways to use php4 and php5 in parallel. i'm sure you can find plenty on google about that.

or if you are using apache 2 you can just enable and disable the modules with the following commands as you need. (assuming you have the php4 and php5 packages installed.)

Code:
$ a2dismod php4
$ a2enmod php5
or

Code:
$ a2dismod php5
$ a2enmod php4
afterwards restart apache
Code:
$ /etc/init.d/apache2 restart
 
  


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
Problems with WD My Book 1TB external drive BWebb Linux - Hardware 2 03-20-2008 01:34 AM
Installing linux on external usb drive -> How about making a tutorial? narson Slackware 20 05-01-2007 04:58 AM
Linux on 2GB (or 4GB) external USB Flash Drive (Stick) [Bootable / Expandable] phi DamnSmallLinux 3 04-17-2007 01:27 AM
Making a usb card(pen drive) bootable with damn small linux Digital Surgeon DamnSmallLinux 2 01-05-2007 07:56 PM
linux on non bootable external usb hdd webhideout Linux - Newbie 3 10-14-2005 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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