LFS 7.1 installation on USB
Hi all, this is my first post on this forum but I've found a lot of useful answer here in this days.
I'm tryng to create a small LFS installation on a usb drive as base for my degree project. I've successfully installed LFS on a virtual machine and transferred it to my usb pendrive using rsync. It boots, but my grub.cfg is this: Quote:
Looking at some tutorial seems that I have all I need, but my LFS gives a kernel panic if I remove /dev/sdb1. I'm using Linux From Scratch 7.1 with kernel 3.2.6 Thank you all in advance and sorry for my english. |
Are you installing from usb or to the usb drive?
You set boot to hd0,1 which would be sda but you set root to sdb1 Correction you set root to (hd,1) then /boot/vmlinuzxxxxxroot sdb1 |
Quote:
"set root=(hd0,1)" outside the menuentry is a remains of LFS default bootloader, thank you for the advice I removed it. However seems that " set root='...' " inside menuentry has no effect on grub: I've done several trials and I can boot with "hd0,1" "hd1,1" "hd0,msdos1" "hd1,msdos1" and no "set root= ..." and all times my LFS starts. Probably is overrided by the option " --set=root <UUID> " Now I use a menu entry like this: Quote:
|
Hi
The pc would have to be set to boot from usb 1st not harddrive 1st |
Quote:
My problem is that in device order the USB in placed after HDDs, I even changend the boot order in USB -> CD -> HDD but the pendrive still remain /dev/sdb. I don't know if this is a standard or not, but means that grub cannot recognize the boot partition on some machines. I know that I can simply change the menuentry from grub pressing 'e', but is not the optimal solution, so I'm looking to use UUID or label instead of /dev/sdXY. Even a workaround is a good solution. |
Mine is set the same as you but it is permenantly connected to machine so no problem.
What would happen if you added extra menuentry allowing for different options maybe add an entry root=/dev/sdc1 /dev/sdd1 just thinking out loud |
Quote:
My ideas is to create a menuentry like this: Quote:
Should be file system modules, USB mass storage, USB UHCI, USB OHCI and some scsi modules, but are yet built in a default recent linux kernel. Another solution is to create a initrd image, and I have found this tutorial, but in LFS you shouldn't need an initrd, so this is plan B. Edit: another question: the configuration loaded by menuconfig is standard for a kernel version or is generated using machine information or host system information? I'm not shure, but I think that the default configs loaded for linux 3.2.6 in VM and in my physical system are a bit different. |
Quote:
|
All times are GMT -5. The time now is 10:04 AM. |