LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-17-2006, 10:24 PM   #1
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
LFS 6.2 dual boot


Greetings. I find myself in quite a sticky situation. I am in chapter 6 of LFS 6.2, installing packages and everything has gone smoothly thus far. My host system is the LiveCD on a compaq laptop (1.8 Ghz 1 gig of ram). I deviated from the directions in the way I created the partitions. I used a bootable GParted CD to configure it. After that it has been by the book. My hard disk looks like this. (Read from top-bottom as beginning to end)

hda1: 30 GB Primary NTFS (Windows installed)
hda3: 1 GB Primary Linux Swap (Swap)
hda4: 30 gig Extended Partition
...hda5: 15 GB Logical FAT32 (empty for sharing b/w Linux and Windoze)
...hda6: 15 GB Logical ext3 (Linux is being build here)
hda2: 19 GB Primary FAT (Windows recovery partition)

The hda1 and hda2 shouldn't be touched, as they contain the more volatile operating system.

My question is - how can I get grub installed so that it will actually be used? My BIOS doesn't find it where it is. Will I always have to chroot into this environment from a live cd. I wouldn't terribly mind if I had to get such a disc, and write a script that would chroot me in. However, I would prefer it if that weren't necessary. Any thoughts? Seems like I'd seen a solution to this before, but couldn't find it in a search.

Thanks all.
 
Old 08-18-2006, 01:46 AM   #2
baikonur
Member
 
Registered: Oct 2005
Location: germany
Distribution: debian
Posts: 255
Blog Entries: 5

Rep: Reputation: 30
Quote:
The hda1 and hda2 shouldn't be touched, as they contain the more volatile operating system.
I've never experienced problems with writing GRUB in the master boot record of a windows partition. And if -- IF -- you would not be able to boot back into windows, simply run "fixmbr" and "fixboot" at the windows cmd prompt, for example after you bootet from your XP(?)-CD and it will write your mbr so you can boot windows again.
 
Old 08-18-2006, 02:10 AM   #3
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148

Original Poster
Blog Entries: 1

Rep: Reputation: 48
so, it would be okay to just write it there? My problem is that I'm running a Compaq laptop that didn't come with any WinXP install discs. All I got was a program on the laptop that would burn "recovery discs," which don't seem to be what I would need, though I could be misinformed.

Is it generally considered safe to put grub in the MBR? thanks.
 
Old 08-18-2006, 08:32 AM   #4
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Quick update - I finished LFS. My computer does not find grub where I put it (On my hda6), so I do intend to uninstall and reinstall grub, to put it in the mbr. I hope to find a decent utiltiy to back up the mbr first tho. Thanks for your help.
 
Old 08-18-2006, 09:20 AM   #5
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148

Original Poster
Blog Entries: 1

Rep: Reputation: 48
---Edit---
I fixed the problem about to be described and left it here only for people searching who had a similar problem

PROBLEM:

oh bother. So, I did make uninstall grub and remove the other files created/copied when I installed it. I cleaned out the source directory, and re-ungziped the source. I recompiled exactly as I had before, and all goes well, until I enter the grub menu to set "root" and "setup." I never get past root because, no matter how many times I try, "root (hd0,5)" always produces the error "selected disc does not exist" even though hda6 is what contains grub itself. (I did try hd0,5 hd0,4 and hd0,3 - same error)

I should add that the error is listed as "ERROR 21"
I should also mention that I did not recieve this error on my first build.
rootnoverify suppresses the error message, but I think all it's doing is ignoring the message, not fixing the problem.


SOLUTION:
Hehe, oops.
I'm building off the liveCD and I only chrooted into the environment, I didn't boot into it. This means that my bootscripts didn't get run, and thus /dev hadn't been populated. I forgot I had to go back and do that manually when I chrooted in. Advice: keep a track of everything that you would have to do manually when entering w/chroot and roll them all in a shell script named start.sh or something similar. It'll save you a little typing and possibly your sanity.

Last edited by PatrickNew; 08-18-2006 at 10:02 AM.
 
  


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
LFS and dual boot with other distro randomx Linux From Scratch 2 03-08-2006 07:03 PM
LFS on AMD dual core 64 bit CPU(S) astender Linux From Scratch 3 02-19-2006 04:53 PM
Installing dual Boot 98/Linux - WONT 'LILO' Dual Boot !? L1nux3d Linux - Laptop and Netbook 15 02-11-2006 05:36 AM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
Dual Boot LFS to FAT aarond Linux - General 2 07-21-2004 09:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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