LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 05:44 AM   #1
videoclock
LQ Newbie
 
Registered: Aug 2009
Posts: 16

Rep: Reputation: Disabled
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, 06:55 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
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, 12:11 PM   #3
videoclock
LQ Newbie
 
Registered: Aug 2009
Posts: 16

Original Poster
Rep: Reputation: Disabled
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, 01:15 PM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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, 06:20 PM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
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, 03:04 AM   #6
videoclock
LQ Newbie
 
Registered: Aug 2009
Posts: 16

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



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 08:55 PM
Dual Boot Setup - Booting Vista Changes Linux Boot Partition Type to Amoeba Chewie71 Linux - General 1 05-03-2007 02:43 PM
dual boot: only booting xp alf_frommars Fedora 9 03-30-2006 12:32 PM
Dual Boot, cd not booting... theethan77 Red Hat 1 05-30-2005 04:44 AM
boot.img not booting... maoinchina Linux - General 6 10-05-2003 12:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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