Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have 2 HDDs (160 GB and 250 GB)
I have a dual boot with Fedora 7 and Win XP.
The GRUB loads from 160 GB drive.
WinXP is in 160 GB HDD 's primary partition.
Fedora is in a logical partition in 250GB HDD.
I want to format the 160GB HDD and the 250 GB HDD cannot boot the linux by itself(as the bootloader is in 160 GB one).
I want to know if I could install GRUB on the 250 GB HDD without disturbing the partition or Fedora installation and be able to boot into Fedora if 250 GB HDD is alone connected ???
Note: Please move to appropriate section if not appropriate here.
Thank you eco.
But can you please explain that line by line?
in my case, grub.conf is as below.
#grub.conf
Code:
default=2
timeout=5
splashimage=(hd1,12)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.20-2925.9.fc7xen)
root (hd1,12)
kernel /xen.gz-2.6.20-2925.9.fc7
module /vmlinuz-2.6.20-2925.9.fc7xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
module /initrd-2.6.20-2925.9.fc7xen.img
title Fedora-base (2.6.21-1.3194.fc7)
root (hd1,12)
kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3194.fc7.img
title Other
rootnoverify (hd0,0)
chainloader +1
#partition info (from fdisk output, edited)
Code:
Disk /dev/sda: 160.0 GB
/dev/sda1 * FAT32 #Win98
/dev/sda2 Extended Partition
/dev/sda5 NTFS #WinXP
/dev/sda6 FAT32
/dev/sda7 NTFS
/dev/sda8 NTFS
/dev/sda9 NTFS
/dev/sda10 NTFS
/dev/sda11 NTFS
/dev/sda12 Linux #Ext3 just storage
Disk /dev/sdb: 250.0 GB
/dev/sdb1 FAT32
/dev/sdb2 Extended Partition
/dev/sdb5 NTFS
/dev/sdb6 NTFS
/dev/sdb7 NTFS
/dev/sdb8 NTFS
/dev/sdb9 NTFS
/dev/sdb10 NTFS
/dev/sdb11 NTFS
/dev/sdb12 NTFS
/dev/sdb13 * Linux #ext 3 /boot (Fedora 7)
/dev/sdb14 Linux LVM #ext 3 (all other linux partions under this)
I think there is nothing to change in your code for my situation.
Can I run as it is?
Is there a possibility of loosing the data in other (NTFS / FAT32) partitions in the drives?
Last edited by rajivb; 01-14-2009 at 08:21 AM.
Reason: added partition info
This should work as long as you keep the 160GB disk (sda) in the box.
You might also have noted that I set sdb to hd0 and not hd1. That's normal. The first grub line says hd0 is /dev/sdb. If you wanted to set an MBR on both disks, to boot your system, it would have to change but that's another story.
It is actually sdb13 if you can check the fdisk info I gave. I think grub starts counting from 0.
I have some doubts
1) Will I loose my present data?
2) I don't want the 250 GB HDD to depend on 160GB HDD to boot into linux. Can I directly boot into Fedora after this without attaching 160 GB HDD?
3) Can I do this from inside Fedora through Terminal?
I tried using the 250 GB HDD after executing the steps you mentioned before.
The 250 GB HDD now has the same grub menu as 160GB HDD but when I try to boot into linux or windows, it says
Code:
Error 18 : Selected cylinder exceeds maximum support by BIOS
and comes back to grub menu after pressing any of the keys.
So I tried to edit the first line in the first two options seperately changing it to hd0 from hd1, but still got the same message.
Then I got into GRUB command line and tried to execute the commands in the grub menu one by one. And it worked!!!
But I can't directly boot into the HDD by selecting one of the options.
Probably I should try changing grub.conf to have it boot from hd0.
Thanks a eco.
I am busy with other work. So I'll let you know as soon as I try this one.
The default=2 is the last option (Windows boot loader which of course is not present on 250 GB HDD).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.