Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-06-2010, 01:31 PM   #1
LQ Newbie
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
Making Linux Partition Bootable


I am very new to Linux.
I have a little problem with dual boot installation.

There are two Hard Drives.
Win XP is on First HDrive.
Redhat Linux was installed on over Windows XP on second HDisk.

And later after a few months, the computer did startup.
I want to get rid of XP and load the linux alone.

Is there any way we can move over or install Linux bootloader on second HDisk? I can take out First Hdrive.

Old 07-06-2010, 01:58 PM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Welcome to LQ;

Piece O'Cake.......

Boot into Linux

Run "fdisk -l" (no quotes---run it as root) and confirm how the drives are being seen. Let's assume that you Linux install is on sdb and sda is the one you are going to remove. Also verify which partition has /boot on it---let's assume sdb1. **
As root, run "grub" to start the grub shell, and then run these commands:

root (hd1,0) **
setup (hd1) **

Now, when you remove the other drive and start up again, what WAS sdb will now be sda, and you'll boot directly into Linux.

Note the numbering rules: To the Linux OS, sda is drive #1, and sda1 is the first partition on drive #1. To GRUB, hd0, means drive #1, and hd0,0 means the first partition on drive #1
Old 07-07-2010, 10:05 AM   #3
LQ Newbie
Registered: Jul 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Hi pixellany,

Thanks for your reply. Your post give me valuable information.

Actually, I made an typo error in my post. The computer didn't start up.
When redhat linux was installed, did GRUB replaced the Windows XP boot loader on the First HardDrive?
So, if the first HD is removed, GRUB will not be on the second HardDrive. Will GRUB be moved when the GRUB setup is run?

thanks again,
Old 07-07-2010, 03:47 PM   #4
Registered: Mar 2008
Posts: 18,550

Rep: Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778Reputation: 2778
You don't move grub you re-install it. You also have a choice of other loaders and chain loading schemes.
Old 07-07-2010, 04:43 PM   #5
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
It is a bit more complicated I am afraid.

If Red Hat Linux has been installed in the 2nd disk it would not like to find itself boot up as the 1st disk, even after you have correct the partition and boot disk reference in /etc/fstab, /boot/grub.grub.conf and /boot/grub/ If it Selinux kicks in it will prevent you form booting into the Linux, unless you disable Selinux.

Remeber if you removed the first disk sda the second disk sdb will take up the first disk status to become sda, unless you are using IDE disks for which the hdx will remain unchanged but to Grub your (hd1) would disappear to become (hd0).

If you can keep the first disk then there is less hassele.

Last edited by saikee; 07-07-2010 at 04:46 PM.
Old 07-07-2010, 08:05 PM   #6
LQ Addict
Registered: Oct 2003
Location: Australia
Distribution: MX 17
Posts: 5,298

Rep: Reputation: Disabled

I am not sure I can offer wiser words but attempt to.

If OP no longer needs any XP, why not install Redhat on first drive?

but that begs the question on which drive is faster?

IDE is slower than sata which is slower than SSD etc

so if zhtway would like to explore that opportunity gives us some specs or make your own decisions please?


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
Does making a partition bootable erase any data? svar Slackware 6 03-01-2010 03:02 AM
Making a USB stick bootable from a bootable cdrom cwwilson721 Slackware 2 10-23-2009 09:18 PM
Help: Making Cloned Partition Bootable ladyrico Linux - Newbie 5 02-23-2009 11:57 PM
Help: Making Cloned Partition Bootable ladyrico Linux - Newbie 1 02-21-2009 10:26 PM
making a partition bootable wenberg Linux - General 1 01-22-2004 09:57 AM > Forums > Linux Forums > Linux - Newbie

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