Lars Bamberger wrote:
> ell sam wrote:
>   
>> I am having trouble booting from the kernel on my hd to load Linux from
>> my usb hd. I have installed everything and it works using the internal
>> hd kernel booting from grub passing the root=/dev/sdb6 to the kernel.
>>     
>
> I take it, you want to boot the kernel stored on you hd and have it use 
> another portable device as your root filesystem.
>
>   
>> I have tries root=UUID=<my
>> uuid numbers...> and root=LABEL=LFS and root=/dev/disk/by-uuid/<my
>> uuid...> and root=/dev/disk/by-label/LFS all don't work.
>>     
>
> I guess you are referring to the 'root=' kernel-parameter (and NOT the 
> grub parameter). That's important, because sometimes grub's and the 
> kernels naming scheme don't match. On one of my systems, (hd0) is 
> /dev/sdb at boottime and at runtime (hd1) is /dev/sdb. That caused some 
> confusion.
>
> So, first make sure that your grub setup does exactly what you want it 
> to. Be explicit in your grub configuration.
>
> Example menue.lst:
> root (hd0,0)  <-- grub's root parameter
> kernel (hd0,1)/linux-2.6.28.1 root=/dev/sdb1 <-- the kernel's root parameter
>
> In either case, the kernel knows nothing about anything else than the 
> standard device names. (See <kernel-source>/Documentation/devices.txt) 
> Make sure your kernel supports whatever device you'd like to use as root 
> filesystem and take a look at 
> <kernel-source>/Documentation/kernel-parameters.txt. You might want to 
> experiment with additional kernel parameters like 'rootwait' or 'rootdelay'.
>
>   
>> Or maybe in initramfs etc..
>>     
>
> I'd figure that you need an initramfs only if he kernel is unable to 
> detect the device your root filesystem is on.
>
> HTH
> Lars
>
>   
yes I have the kernel on my hd (hd0,5) and want the kernel to load the 
lfs system from external drive currently /dev/sdb6 and it works that 
way. my menu.lst in grub sets root as (hd0,5) and boots kernel with 
"root=/dev/sdb6" and lfs loads that way.
 The problem is if I add a drive /dev/sdb6 becomes /dev/sdc6 etc... so i 
want to change "root=/dev/sdb6" to "root=LABEL=LFS" or UUID.

I think the way to go is fix initramfs
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to