LinuxQuestions.org
Visit Jeremy's Blog.
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 11-21-2012, 12:03 PM   #1
windsorjj
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Rep: Reputation: Disabled
Question Booting problem VBOX


hello,
Does anyone here tried build lfs7.2 on VirtualBox? I am having problem booting it.
I used a separate virtualdisk for LFS and built it while working on xubuntu running on separate virtualdisk.
When i did fdisk -l, LFS was on sdb[sdb1(ext3),sdb2(swap)] & xubuntu was on sda[sda1(ext4),sda2(swap)].
So, i installed grub on sdb.
But, in the grub.cfg file i gave root as (hd0,1) as when i am booting only the LFS virtualdisk alone, then it will be hd0.

the booting starts, but it does not complete.
Any idea how i should troubleshoot this?

thanks.
 
Old 11-21-2012, 07:23 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
(hd0,1) should be (hd1,1)
You didn't have to install grub to lfs unless you're going to run in it's own machine.
You could've run
Quote:
update-grub
 
Old 11-23-2012, 01:55 AM   #3
windsorjj
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
(hd0,1) should be (hd1,1)
You didn't have to install grub to lfs unless you're going to run in it's own machine.
You could've run
set to (hd1,1) leads to no booting at all.
Gives error:
Code:
error: hd1 cannot get C/H/S values
With my original config, the booting starts but gives error when mounting swap & root partition.
When i built LFS it was on sdb & Xubuntu on sda. But, then i removed the xubuntu vdisk and am only booting from lfs vdisk. So, lfs vdisk is now sda. Grub config seems to be work well. But, problem seems to be during booting process as it is trying to mount sdb1 & sdb2; instead of sda1 & sda2.

With orig config as in first post i get this error:
Code:
.....(Normal log lines which appear during boot)........
................
................
Activating all swap.... /dev/sdb2 stat failed No such file or directory     [FAIL]
Checking file system ..fsck:ext3: No such file or directory while trying to open /dev/sdb1  [FAIL]

Failure: 
File system error was encountered that could not be fixed automatically. This syste cannot continue to boot & will therefore be halted until those errors are fixed manually by a system adminstrator. 
After you press Enter this system will be halted & powered off/

Last edited by windsorjj; 11-23-2012 at 02:09 AM.
 
Old 11-23-2012, 08:54 AM   #4
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Maybe focusing on the set root= command of grub.cfg made you overlook the root= parameter in the linux command line. Anyway, I've done that before. Also check /etc/fstab now that devices likely are being enumerated differently. Also check to make sure that you have built in (not modules) appropriate file system support including devtmpfs (CONFIG_DEVTMPFS=y found in Device Drivers --->Generic Driver Options --->).

Last edited by stoat; 11-23-2012 at 09:20 AM.
 
1 members found this post helpful.
Old 11-24-2012, 02:55 AM   #5
windsorjj
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by stoat View Post
Maybe focusing on the set root= command of grub.cfg made you overlook the root= parameter in the linux command line. Anyway, I've done that before. Also check /etc/fstab now that devices likely are being enumerated differently. Also check to make sure that you have built in (not modules) appropriate file system support including devtmpfs (CONFIG_DEVTMPFS=y found in Device Drivers --->Generic Driver Options --->).
Problme was in fstab. Corrected root & swap as sda1 & sda2. Now, LFS boots without any problems.
Thanks! stoat.
 
  


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
[SOLVED] vbox 4.0.2 - guest sabayon5.4 on win7 - mnt local gentoo from vbox sabayon? shinystuffrox Linux - Virtualization and Cloud 1 03-04-2011 02:10 AM
Vbox +Ubuntu 9.10 server ver Net problem [Nat+Bridge]| Ramesh922 Linux - Newbie 1 12-19-2010 01:33 AM
[SOLVED] vbox sharefolder problem RudraB Linux - Newbie 6 06-04-2010 01:29 AM
problem mounting cdrom for vbox install joutlancpa Slackware 4 05-06-2009 02:24 AM
Upgrading VBox 2.0.2 on Fedora 9 to VBox 2.0.6 fcquayso Linux - Newbie 2 12-10-2008 05:44 PM

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

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