LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
Making Linux Partition Bootable


Hi,

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.

Thanks
Heathcliff
 
Old 07-06-2010, 02:58 PM   #2
pixellany
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, 11:05 AM   #3
zhtway
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,
Heathcliff
 
Old 07-07-2010, 04:47 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
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, 05:43 PM   #5
saikee
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/device.map. 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 05:46 PM.
 
Old 07-07-2010, 09:05 PM   #6
aus9
LQ Guru
 
Registered: Oct 2003
Posts: 5,124

Rep: Reputation: Disabled
hi

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?
 
  


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


All times are GMT -5. The time now is 12:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration