[SOLVED] Booting LFS on separate USB HDD + separate /boot parition
Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Like I said I don't have any experience with grub and using UUID's. It looks like you need to do a bit more then using a UUID=...... setting. I'm not 100% sure what does(n't) need to be done at this moment.
Here's your original grub.cfg file, changed to use sda:
Code:
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd0,4)
set root=(hd0,1)
menuentry "GNU/Linux, Linux 3.1-lfs-7.0" {
linux /vmlinuz-3.1-lfs-7.0 root=/dev/sda1 ro
linux /vmlinuz-3.1-lfs-7.0 root=/dev/sda4 ro
}
BTW Your /boot is a separate partition, set root should point to sda1, and your linux line should point to sda4 and the /boot part should be removed.
I also noticed this:
Quote:
error: no kernel specified
error: unknown command '/boot/vmlinux-3.1-lf
I do hope that that is a typo (the missing s-7.0 part).....
Last edited by druuna; 12-14-2011 at 08:01 AM.
Reason: Oops switched them around....
Hi drunna I found that having "root=/dev/sda1 ro" it then looked at the sda drive not the sdb.
As in "mine IS Ubuntu" not lfs it got confusing. I will try a new grub.cfg file to check
nivwusquorum I notice you have used ext4 file system did you select this while you were building the kernel?
I didn't know that by root they mean root partition, I tried (hd0,4) and (hd0,msdos4) .
@Spiky
Hmm.. That sounds interesting. I selected the drivers for ext4 in drivers config section. Is there any other place I should have selected it while configuring kernel?
I changed the root sdb to sda it didn't boot also changed fstab to sda still np luck switched it all back is all working.
nivwusquorum do you have 2 external drives and what is the output of
Ok as you are using ext4 file system it needs to be selected in the kernel.In general/settings/file system you need to enable ext4. If you look at the ext3 selections, I just copied the same 1,s them in ext4. I think there are 4 that have to be enabled,
well I have enable it there, I am sorry, I didn't remember that. Now I am trying different filesystem for boot partition, but still didn't get it to work...
ext4 should be ok as that is what your partition is formatted to. If you rebuild the kernel you need to check that each time. So if your fstab and grub.cfg are set. Not sure where else to go I have the same setup as you
You could put the drive into the laptop as the only drive to get it to boot that would sort out the fstab and grub.cfg files. Then you could sort out any other problems, meaning eliminate some things that cause problems. When I 1st done mine I built it on the usb option it wouldn't boot installed in laptop booted so the system all worked, just had to fiddle about with a few other things. Any thoughts on this ?? drunna.
There was a couple of options in the kernel as well SCSI device support.
Is scsi device support enabled? and scsi disk support enabled these are to do with usb drives mark them with a "Y" not "M"
ok, I will try to fiddle a little bit with kernel. Is it safe to rebuild kernel by just repeating steps from linux-3.1 section from LFS 7.0 book? I was also thinking about trying out to use my host system (ubuntu) kernel config file, just to see if it works.
Although it is a little bit weird to try to fix this issue by randomly trying to do some things. Is there any way to determine which file exactly grub cannot find and at what stage?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.