Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


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

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


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, 10:12 PM   #2
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.
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.)

$ a2dismod php4
$ a2enmod php5

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


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

All times are GMT -5. The time now is 08:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration