LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Booting problem VBOX (http://www.linuxquestions.org/questions/linux-from-scratch-13/booting-problem-vbox-4175438136/)

windsorjj 11-21-2012 12:03 PM

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.

EDDY1 11-21-2012 07:23 PM

(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

windsorjj 11-23-2012 01:55 AM

Quote:

Originally Posted by EDDY1 (Post 4834404)
(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/


stoat 11-23-2012 08:54 AM

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 --->).

windsorjj 11-24-2012 02:55 AM

Quote:

Originally Posted by stoat (Post 4835502)
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.


All times are GMT -5. The time now is 10:07 PM.