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've realized there are a lot of people who have an old labtop, which doesn't have manufacturer support nowadays. When they plug a new hard drive to it, the system doesn't recognize the new hd and doesn't boot.
So the question is: Is there any way to install the boot loader (grub, for example), the kernel, the initrd and the /boot inside a bootable CD, so they can boot from it, where drivers are stored, so the system recognize the new hd and they can have the / mount point in the new hard drive?
It depends on why the system doesn't recognize the hard drive. If you are talking about a bios hard drive size limitation and putting a hard drive in that exceeds the bios size limit, you can usually work around that by partitioning the hard drive with a boot partition at the beginning of the hard drive that is smaller than the max size allowed by the bios.
You are right about linux not being bound by the bios hard drive size limit. Once the kernel loads, linux kisses the bios and its hard drive size limit goodbye. However, the bios will be in control until the kernel loads which is why you need your boot partition at the beginning and it must be smaller than the max allowed by the bios.
You can easily test whether linux will see the unrecognized hard drive by booting with any linux livecd and see if it sees the hard drive. A linux install cd should also see the hard drive; if not, you can't install linux on the system.
The reason would be that BIOS doesn't recognize the new hard drive. Then creating a smaller partition would not work, because BIOS doesn't recognize it, even if the partition size is smaller than BIOS recognize.
So I'm looking for a way to boot from CD, in which would be: boot loader, the kernel, initrd and /boot.
If the bios does not detect the drive in any manner, you can pretty much forget it. The hardware is incompatible with the drive, the drive was not installed properly or the drive is defective.
It's very easy to test like I stated above. Boot with a linux livecd and see if the hard drive is picked up. If it is, you can probably work out a boot cd with grub to get to it. If not, you are wasting your time; it's not going to work if the linux kernel on some livecd can't see it. Your potential boot cd has to load some linux kernel that can see the drive in the first place.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.