LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-13-2005, 08:53 AM   #1
samjkd
LQ Newbie
 
Registered: Mar 2005
Location: india
Posts: 17

Rep: Reputation: 0
Linux booting


Hai

I have fedora core4 on my samsung HDD which is hdb( primary slave). When i changed my samsung HDD to hda (primary master) GRUB loader is not able to boot linux. whats the problem
 
Old 09-13-2005, 08:56 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Do you have another drive on the system your swapping it with? I'm guessing the problem is that grub no longer knows were to find the Stage2 files.
 
Old 09-13-2005, 03:19 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Grub keeps a device map to identify the drives. It is the /boot/grub/device.map

You cannot do the thing you have described in Linux because unlike Windows every partition is unique in Linux.

Your boot loader is with the primary partition so swapping it you have no access to the MBR. If the slave isn't bootable then the BIOS will summon the master to boot. However due to your swapping BIOS has to call your master as hdb and gave hda title to the slave. Got it?

Last edited by saikee; 09-14-2005 at 02:45 AM.
 
Old 09-14-2005, 12:14 AM   #4
samjkd
LQ Newbie
 
Registered: Mar 2005
Location: india
Posts: 17

Original Poster
Rep: Reputation: 0
Hai

Let me explain briefly. I have a samsung and a segate HDD. Segate is primary master and samsung is primary slave. I use samsung for testing purposes. so i removed my segate hdd which is primary maser. Then i installed fedora core on samsung hdd which is primary slave and i installed GRUB on samsung MBR (for this reason i removed segate which is primary master). Then i connected both the drives, if i wanted to boot linux i will press f8 and the choose samsung hdd(primary slave). the problem is that when i change the jumper settings of samsung hdd to make it primary master GRUB is not able to boot linux. whats the problem
 
Old 09-14-2005, 03:41 AM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
If you havdSeagate as the master and jumpered the the slave Samsung as another master your BIOS will be confused.

Unlike Windows any partition can be C, D, E and so on and their positions are determined purely by the order in the booting queue, Linux's partitions are uniquely named. The 4 primary partitions are always 1 to 4 and logical starts at the 5th partition regardless if any of them is created or not.

In a similar maner the first IDE is called hda, 2nd hdb, 3th hdc all according to the IDE channel you plug the disks.

Therefore when installed alone your Linux has address stamped inside that it was in hda, as you did remove the Seagate.

Putting your Seagate back into the box your Samsung will be detected as hdb if it boots at all. If Linux's boot loader were given access to the PC all it can do is to boot the hda1 on which it was created. So swapping disk in Linux is not as simple as in Windows. OK?

Now the cure-------------------

You can maintain your Samsung as the master, Seagate as the slave and dual boot the two.

The standard boot loader for FC4 is Grub. A text file is used to control its booting and it is always the /boot/grub/menu.lst. When you hook up the two as suggested, you can only boot FC4, right. That is OK, just log in as root (need root's privilege to amend system files).

In the desktop go to open /boot/grub/menu.lst with gedit or kwrite and add these 3 lines to the end

title the dude said this is my first dual boot to Windows/Linux
root (hd1,0)
chainloader +1

save the file. On re-boot whatever you got in the slave first partition will be booted by Grub, if it was bootable on its own before. This will work regardless if it is a Dos, Win3x, Win9x, 2k/XP, any Linux, any BSD or even Solaris.

Grub counts from 0 therefore (hd0,0)=hda1, (hd1,0)=hdb1 and so on.

The arrangement you have is what I described to dual boot Linux and WIndows but keeping Windows's MBR untouched as a virgin.
 
  


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
Triple Booting linux/linux/windows Flak Pyro Linux - Distributions 10 12-08-2003 07:46 PM
Tripple booting linux/linux/windows Flak Pyro Linux - General 1 12-05-2003 10:24 PM
triple booting linux linux and 2000 devashish Linux - Software 12 08-28-2003 06:44 AM
linux is not booting shanmugapriyan Linux - Software 1 08-06-2003 07:42 PM
Booting linux abzs Linux - General 2 01-06-2002 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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