Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-15-2007, 11:59 AM   #1
Registered: Jun 2007
Posts: 44

Rep: Reputation: 15
Question Installing/deinstalling packages under Ubuntu & handling boot problems with Grub ...

Hello All,

I am very new to Linux (though have some background on
Tru64 Unix).

1. Recently, I installed Ubuntu on USB hard disk on
my PC which has Windows XP on it. During
installion I installed Grub on MBR. Due to this I
can not boot my PC to XP unless USB hard disk is
connected on it & then I choose Windows when menu
is presented. I want to get rid of this problem.
What is the safest & correct way of getting rid of
this problem (Grub does not go ahead if USB drive
is not connected)& be able to dual-boot. I can
re-install Ubuntu if needed. Kindly suggest.
2. I want to install LAMP under Ubuntu, due to no
experience on Ubuntu & with the help of my friend
who also does not have much experience on Ubuntu,
we started installing Apache & Mysql-Server under
Ubuntu. But seems this is not the correct way of
installing LAMP. Now, how can I De-instal these
packages & re-Install LAMP (latest Apache, PHP &
Mysql). In general where can I get information on
installing/deinstalling packages under Ubuntu,
listing the packages which are installed on my
machine under Ubuntu & listing of packages which
are available which can be installed under Ubuntu.

Sorry for such long query. If any links for tutorials on Ubuntu are available, kindly suggests.

Thanking you. Best regards, RAKESH
Old 07-15-2007, 01:43 PM   #2
Registered: Sep 2005
Posts: 49

Rep: Reputation: 15

I can only try to help with the GRUB issue. GRUB needs to load its files in order to be able to load other OSs, such as linux and XP. These files are located on the partition in which you installed linux. GRUB won't work without these files. Since these files are on the USB, GRUB won't work without it.

To get rid of this problem, you'll have to move GRUB's needed files onto the disk were you have XP. To do this, you'll need to create a linux partition there, then, from linux, re-install GRUB, using the commmand grub-install configuring it to install it's files on the linux partition on the XP disk. Read many of the available tutorials on configuring GRUB.

hint: grub-install --root-directory=/dev/"linux_partition_on_xp_drive" hd0

afterwards, update your menu.lst file, which should be in the /boot/grub folder on the linux partition on the xp disk.
Old 07-15-2007, 02:27 PM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
The link below may be useful for the GRUB issues.

The easiest way to install (and remove) SW is with the package manager. In the GUI menus, you may find either Synaptic or Adept (or both). In a terminal, it is simply "apt-get".

the package manager uses "repositories" to store all the different packages. You may want to edit the repositories--for a GUI client (Synaptic or Adept), this in in the menus. In a terminal, look for the file /etc/apt/sources.list


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
GRUB error 21 when trying to boot XP after installing Ubuntu 7.04 on seperate hdd neilksos Linux - Newbie 16 05-05-2008 08:07 AM
deinstalling windows installing ubuntu gibney Linux - Newbie 3 03-12-2007 03:55 AM
GRUB Problems On Installing Windows After Ubuntu!!! crash_override_me Ubuntu 10 06-21-2006 03:53 AM
Debian & Ubuntu installer - cannot select packages? Barry Bingham Debian 5 08-03-2005 08:14 PM
Fedora 2 & GRUB Dual Boot Problems with XP Farmer-Senship Linux - Newbie 1 08-21-2004 12:26 AM > Forums > Linux Forums > Linux - Software

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