LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-13-2009, 06:44 AM   #1
videoclock
LQ Newbie
 
Registered: Aug 2009
Posts: 16

Rep: Reputation: 0
Booting /boot from a CD


Hi people!

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?

Is it possible in Linux?

Thanks in advance.
 
Old 08-13-2009, 07:55 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,495

Rep: Reputation: 193Reputation: 193
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.
 
Old 08-13-2009, 01:11 PM   #3
videoclock
LQ Newbie
 
Registered: Aug 2009
Posts: 16

Original Poster
Rep: Reputation: 0
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.

Does anyone know how to get it?

Regards.
 
Old 08-13-2009, 02:15 PM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Do you mean soemthing like a grub boot cd?

you put grub, grub4dos etc and use it to boot you installed systems?
 
Old 08-13-2009, 07:20 PM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,495

Rep: Reputation: 193Reputation: 193
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.
 
Old 08-14-2009, 04:04 AM   #6
videoclock
LQ Newbie
 
Registered: Aug 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Ok, thanks kilgoretrout and linus72!
I found these two sites where It's explained:
http://www.gnu.org/software/grub/man...le-CD-ROM.html
http://www.linuxquestions.org/questi...ble-cd-140074/

Regards.
 
  


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 /boot need boot flag when dual booting? dr_zayus69 Linux - Software 4 09-15-2007 09:55 PM
Dual Boot Setup - Booting Vista Changes Linux Boot Partition Type to Amoeba Chewie71 Linux - General 1 05-03-2007 03:43 PM
dual boot: only booting xp alf_frommars Fedora 9 03-30-2006 01:32 PM
Dual Boot, cd not booting... theethan77 Red Hat 1 05-30-2005 05:44 AM
boot.img not booting... maoinchina Linux - General 6 10-05-2003 01:53 AM


All times are GMT -5. The time now is 07:48 AM.

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