Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Hi all,
I really need help on this one.
I have a CPU that has a slot for a 2.5" HDD (20GB) and a compact flash (512 MB). Using the jumper settings on the CPU board, I have made the compact flash as a 'master' & the HDD as a slave.
I want to install RH Linux9.0 on both the HDD & CF. I first installed linux 9.0 on the CF by using the minimum packges required and placed the boot loader in the CF. After the successful installtion in CF, I rebooted the system without the bootable CD & it booted without any problem in CF.
Next I booted the system with the linux CD & installed the Linux in the HDD and this time, on asking, gave the option to install the boot loader in hda i.e the CF (HDD is hdb).Everything went on smoothly for installation.
Then, when i booted the system i saw only one entry in grub menu and the system is booting in the HDD by default. There is a option in the system BIOS to select the booting device. When I select the CF to boot from, it shows, GRUB Error 15.
I want two entries in the GRUB menu, one for the CF & the other for the HDD. And on selecting the respective entry the system should boot from the respective drive. I have linux 9.0 on both the drives. On googling the problem all solutions are for Win/Linux or Windows on one HDD & linux on other HDD. No search highlights on the same linux distribution on two diff. drives.
Expect help in this regards from the forum.
Lookng fwd for some reply
This might help. I just installed fedora 8 on a CF card. The designators in the grub.conf: root(hd0,0) and root (hd1,0) changed on my system based on the boot order in the bios. your /boot/grub/grub.conf should look something like this.
title CF
root(hd1,0)
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/VolGroup01/LogVol00
initrd /initrd-2.6.23.1-42.fc8.img
This boots both the CF card and the HD.
note - if the boot order changes and the it reads grub from the cf first rather that the drive, you will need to flip the (hd0,0) (hd1,0) around. If you plan on changing the boot order, you'd should get familiar with the command line part of grub, and rename the images form vmlinuz-2.6.23.15-137.fc8 to something link vmliuz
Hi graymon,
first of all, thanx a lot, for showing me some light.
But still, i have a question or two.
1. have you installed the same FC8 with the same kernel version? I got this doubt since the vmlinux & initrd file entries are different for hd0 & hd1.
2. Is it possible to rename the img files to some other names as u've mentioned or there are some limitations for this?
BTW I m going to try ur suggestions 2day. Hope it works.
Sorry about some of the confusion - I just cut and pasted the grub.conf file. I haven't booting into the CF card and "yum update"ed it So the kernel didn't match.
You can rename the kernel and initrd as long as grub.conf matches the actual filename. I usually don't touch them, so when yum updated the kernel, it knows where to find the old ones. But for things like putting rescue disks and installer disks on the flash card, i usually rename them.
kernel /vmlinuz
initrd /initrd
Good Luck, after some hacking around, it should work fine.
Hi graymon,
i tried your stuff but it didn't work. But by god's grace i seem to have found another solution.
Let me start from the first: I have a system in which a 512MB Compact Flash (CF) is a master and a 20GB 2.5" Hard Disk Drive (hdd-a laptop hdd) as a slave. My requirement was that i must be able to boot both, the CF & hdd, from a common GRUB menu that comes from the grub.conf file in the master i.e CF. It is to be noted that both, the CF & the hdd, has the same linux distribution (Red Hat Linux 9.0 kernel 2.4.20-8).
Solution:
First I installled Linux on the CF (master). Installed the grub (boot loader)on hda i.e CF (master). Then i installed linux on hdd (slave) by choosing the option of not installing the boot loader.
Then i rebooted the system and went to CF (hda).
Run the command "fdisk -l" that list all the disks with their partitions. It shows the CF as hda and hdd as hdb.
there is a /boot folder in CF. Create another folder '/boot1'. Now, mount the /boot partition of hdb (hard disk). You can find there three files viz. "initrd-(ver. no.).img", vimlinz-(ver. no.) & System.map-(ver. no.). Copy these files to '/boot1' folder in the CF.
Now there is time to modify the entries in the menu.lst file in the CF. You can reach the menu.lst file by typing the following command: cd /boot/grub. U can find the menu.lst in this grub folder. The final menu.lst will look as shown below:
#the following entry is for CF that is default
title Red Hat Linux (2.4.20-8) flash
root (hd0,0)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/123
initrd /boot/initrd-2.4.20-8.img
#the following entry is for HDD that I have added later
title Red Hat Linux (2.4.20-8) HDD
root (hd0,0)
kernel /boot1/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /boot1/initrd-2.4.20-8.img
After you make changes to the menu.lst file, save the changes and reboot the system.
You will see a grub menu that shows the following two lines:
Red Hat Linux (2.4.20-8) flash
Red Hat Linux (2.4.20-8) HDD
Select the required entry and you will be routed to either CF of 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.